cafe-for-cats / mobile

client-side code for the project 📱
1 stars 0 forks source link

As a developer, i can use new API endpoints in order to create a protest. #75

Closed martiangirlie closed 3 years ago

martiangirlie commented 3 years ago

New User Schema:

{
    _id: ObjectId,
    username: String,
    password: String,
    associated_protests: [
        {
            protest_id: ObjectId,
            access_level: String,
        }
    ]
}

New Protest Schema:

{
    _id: ObjectId,
    title: String,
    associated_users: [
        {
            user_id: ObjectId
        }
    ]   
}