mirror of
https://github.com/vale981/Vulcan
synced 2025-03-09 12:16:37 -04:00
41 lines
No EOL
697 B
JavaScript
41 lines
No EOL
697 B
JavaScript
const schema = {
|
|
createdAt: {
|
|
type: Date,
|
|
canRead: ['guests'],
|
|
optional: true,
|
|
onInsert: () => {
|
|
return new Date()
|
|
}
|
|
},
|
|
name: {
|
|
type: String,
|
|
canRead: ['guests'],
|
|
insertableBy: ['guests'],
|
|
},
|
|
userId: {
|
|
type: String,
|
|
optional: true,
|
|
},
|
|
description: {
|
|
type: String,
|
|
optional: true,
|
|
},
|
|
unique: {
|
|
type: Boolean,
|
|
optional: true,
|
|
},
|
|
important: {
|
|
// marking an event as important means it should never be erased
|
|
type: Boolean,
|
|
optional: true,
|
|
},
|
|
properties: {
|
|
type: Object,
|
|
optional: true,
|
|
blackbox: true,
|
|
canRead: ['guests'],
|
|
insertableBy: ['guests'],
|
|
},
|
|
};
|
|
|
|
export default schema; |