gbowne1 / gbowne1/codestream

[TODO] Create models for MongoDB

Open
#101 0 comments 0 reactions 0 assignees View on GitHub
bug enhancement help wanted
Dominant language
JavaScript
Stars
9
Forks
24
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.