Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let UserSchema = new Schema({
- username: {
- type: String,
- unique: true,
- required: true
- },
- mail:{
- type: String,
- unique: true,
- required: true
- },
- informations:{
- name:{
- type: String
- },
- surname: {
- type: String
- },
- password: {
- type: String,
- required: true
- },
- social:{
- discord: {
- type: String
- },
- youtube: {
- type: String
- },
- twitter: {
- type: String
- },
- }
- },
- account:{
- activation_code:{
- type: String
- },
- activated: {
- type: Boolean,
- default: false
- }
- },
- profil:{
- picture: {
- type: String
- },
- description: {
- type: String
- },
- comments: [
- {
- date: {
- type: Date,
- default: Date.now
- },
- content: {
- type: String
- },
- note: {
- type: Number
- }
- }
- ],
- karma:{
- noteMoyenne: {
- type: Number,
- },
- notes: [Number]
- }
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement