import SimpleSchema from 'simpl-schema'

const schema = new SimpleSchema({
  ownerId: { type: String, required: true },
  name: { type: String, required: true },
  description: { type: String },
  amount: { type: Number },
  limit: { type: Number },
  image: { type: String },
  createdDate: { type: Date },
  modifiedDate: { type: Date }
}, { requiredByDefault: false })

export default schema.newContext()