-
Notifications
You must be signed in to change notification settings - Fork 24
[TODO] Create models for MongoDB #101
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Milestone
Description
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Projects
StatusShow more project fields
Todo
Add these models,
/src/models/Stream.js
Stores: title, category, tags, streamerId, isLive
chatDisabled, viewerCount, thumbnail, createdAt
/src/models/ModerationAction.js
Stores: moderatorId, targetUserId, actionType (mute, ban, timeout, promote, etc.), duration (for timeout), reason, timestamp
/src/models/ChatMessage.js
Stores: userId, streamId, message, timestamp, deleted (for mod actions)
/src/models/RoleChange.js
Stores: userId, oldRole, newRole, changedBy, timestamp
/src/models/Ban.js
Stores: userId, streamId, reason, bannedBy, expiresAt
/src/models/Timeout.js
Stores: userId, streamId, expiresAt, reason, moderatorId