mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +00:00
added Release
db model
This commit is contained in:
parent
aeae8b8fc6
commit
b7d057958b
38
shared/classes/DbModels/release/index.js
Normal file
38
shared/classes/DbModels/release/index.js
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
export default {
|
||||||
|
name: "Release",
|
||||||
|
collection: "releases",
|
||||||
|
schema: {
|
||||||
|
user_id: {
|
||||||
|
type: String,
|
||||||
|
required: true
|
||||||
|
},
|
||||||
|
title: {
|
||||||
|
type: String,
|
||||||
|
required: true
|
||||||
|
},
|
||||||
|
type: {
|
||||||
|
type: String,
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
list: {
|
||||||
|
type: Object,
|
||||||
|
default: [],
|
||||||
|
required: true
|
||||||
|
},
|
||||||
|
cover: {
|
||||||
|
type: String,
|
||||||
|
default: "https://storage.ragestudio.net/comty-static-assets/default_song.png"
|
||||||
|
},
|
||||||
|
created_at: {
|
||||||
|
type: Date,
|
||||||
|
required: true
|
||||||
|
},
|
||||||
|
publisher: {
|
||||||
|
type: Object,
|
||||||
|
},
|
||||||
|
public: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user