This commit is contained in:
root 2020-07-15 20:32:42 +00:00
parent 666943d4f1
commit 51208cad8d
27 changed files with 1003 additions and 678 deletions

View file

@ -29,11 +29,6 @@ class AllowedString extends mongoose.SchemaType {
// @ts-ignore
mongoose.Schema.Types['AllowedString'] = AllowedString
const ScheduleIntervalBoundary = {
hour: { type: Number },
minute: { type: Number }
}
const Media = {
location: { type: String },
type: {
@ -41,8 +36,10 @@ const Media = {
name: 'MediaType',
allowedValues: ['cover', 'thumbnail', 'video', 'image']
},
originalFileName: { type: String },
key: { type: String },
contentType: { type: String }
contentType: { type: String },
size: { type: Number } // size of the file in bytes
}
const OrganizationVersion = {
@ -68,8 +65,8 @@ const OrganizationVersion = {
description: { type: String },
when: [{
day: { type: String }, // (Lundi,Mardi,Mercredi,Jeudi,Vendredi,Samedi,Dimanche)
from: ScheduleIntervalBoundary,
to: ScheduleIntervalBoundary
from: { type: String },
to: { type: String }
}]
}],
pricing: [{