Closed martiangirlie closed 3 years ago
associated_protest
protest_id
access_level
Leader
type AccessLevelRoles = 'Unassigned' | 'Attendee' | 'Organizer' | 'Leader'
{ _id: ObjectId, username: String, password: String, associated_protests: [ { protest_id: ObjectId, access_level: String, } ] }
{ _id: ObjectId, title: String, associated_users: [ { user_id: ObjectId } ] }
associated_protest
object appended that contains theprotest_id
and an initialaccess_level
ofLeader
.type AccessLevelRoles = 'Unassigned' | 'Attendee' | 'Organizer' | 'Leader'
New User Schema:
New Protest Schema: