Add playlist, video and ad skeleton
This commit is contained in:
parent
e87c4bb146
commit
5f73ec72bc
20 changed files with 414 additions and 65 deletions
|
|
@ -1,3 +1,5 @@
|
|||
const roles = require("../config/role.config");
|
||||
|
||||
module.exports = mongoose => {
|
||||
let schema = mongoose.Schema({
|
||||
login: String,
|
||||
|
|
@ -5,8 +7,9 @@ module.exports = mongoose => {
|
|||
mail: String,
|
||||
role: {
|
||||
type: Number,
|
||||
default: 0
|
||||
}
|
||||
default: roles.User
|
||||
},
|
||||
playlists: []
|
||||
},
|
||||
{ timestamps: true }
|
||||
);
|
||||
|
|
|
|||
Reference in a new issue