mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
37 lines
No EOL
567 B
JavaScript
37 lines
No EOL
567 B
JavaScript
import SimpleSchema from 'simpl-schema';
|
|
|
|
const Newsletters = new Mongo.Collection('newsletters');
|
|
|
|
const schema = {
|
|
_id: {
|
|
type: String,
|
|
},
|
|
createdAt: {
|
|
type: Date,
|
|
optional: true,
|
|
},
|
|
userId: {
|
|
type: String,
|
|
optional: true,
|
|
},
|
|
scheduledAt: {
|
|
type: Date,
|
|
optional: true,
|
|
},
|
|
subject: {
|
|
type: String,
|
|
optional: true,
|
|
},
|
|
html: {
|
|
type: String,
|
|
optional: true,
|
|
},
|
|
provider: {
|
|
type: String,
|
|
optional: true,
|
|
},
|
|
}
|
|
|
|
Newsletters.attachSchema(new SimpleSchema(schema));
|
|
|
|
export default Newsletters; |