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

[Comment] Specify DB layout #3

Open
greatman opened this issue Jul 30, 2014 · 3 comments
Open

[Comment] Specify DB layout #3

greatman opened this issue Jul 30, 2014 · 3 comments

Comments

@greatman
Copy link
Member

Database layout:

The user/password fields is created automatically by mongoose module

var userSchema = new Schema({
    email: {type: String, required: true}, //The account email
    resetKey: {type: String, required: true}, //Used for email password resets
    enabled: {type: Boolean, default: false, required: true}, //If the account is enabled
    plugins: [type: String], //The plugin UUID list.
    isMod: {type: Boolean, default: false},
    isAdmin: {type: Boolean, default: false}
});
@Ribesg Ribesg changed the title Database layout [Comment] Specify DB layout Jul 30, 2014
@Ribesg
Copy link
Member

Ribesg commented Jul 30, 2014

Now it's a Working task :)

@greatman
Copy link
Member Author

Current layout can be seen there: https://github.com/Statik-Metrics/Statik-Website/blob/722788aa84adb35028ca2556ffde2460c33e63a8/models/user.js

Basicly it support oauth now.

@greatman
Copy link
Member Author

greatman commented Aug 3, 2014

plugin field got updated so it got a UUID & name.

Should now be fairly stable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants