Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data models #25

Open
maximelafarie opened this issue Jul 31, 2020 · 1 comment
Open

Data models #25

maximelafarie opened this issue Jul 31, 2020 · 1 comment
Assignees
Labels
API back-end related issue front-end front-end related issue help wanted Extra attention is needed

Comments

@maximelafarie
Copy link
Owner

maximelafarie commented Jul 31, 2020

Here's a bunch of models we could use. Feel free to argue them!

User {
    id: string
    firstname: string
    lastname: string
    email: string
    role: Role
    createdAt: string
    password: string
    params: Params
}

Role {
    id|slug: string
    text: string
}

Leave {
    id: string
    date: string
    type: 'morning' | 'afternoon' | 'allday'
    accepted: boolean
    initiator: User.id
    createdAt: string
}

Params {
    id: string;
    user: User.id
    config: {
        emailNotif: boolean
        pushNotif: boolean
        darkMode: boolean
    }
}

GlobalConfig {
    country: string (use for public holidays)
}
@maximelafarie maximelafarie added API back-end related issue front-end front-end related issue help wanted Extra attention is needed labels Jul 31, 2020
@maximelafarie maximelafarie modified the milestone: First batch Jul 31, 2020
@BorbagUskada
Copy link
Collaborator

Seems ok to me, except that I would remove 'allday' and create 2 half-day instead which will be easier to handle

BorbagUskada pushed a commit that referenced this issue Aug 7, 2020
BorbagUskada pushed a commit that referenced this issue Aug 28, 2020
BorbagUskada pushed a commit that referenced this issue Aug 28, 2020
BorbagUskada pushed a commit that referenced this issue Aug 31, 2020
BorbagUskada pushed a commit that referenced this issue Aug 31, 2020
BorbagUskada pushed a commit that referenced this issue Aug 31, 2020
athos7933 added a commit that referenced this issue Aug 31, 2020
athos7933 added a commit that referenced this issue Sep 2, 2020
 #25 Modify post leave route to create multiple leaves at once
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API back-end related issue front-end front-end related issue help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants