Wolfgang Huß d40dd94868 Implement showDonations in the database
- Add to backend tests.
2021-04-15 10:51:01 +02:00

16 lines
421 B
JavaScript

import { v4 as uuid } from 'uuid'
export default {
id: { type: 'string', primary: true, default: uuid },
showDonations: { type: 'boolean' },
goal: { type: 'number' },
progress: { type: 'number' },
createdAt: { type: 'string', isoDate: true, default: () => new Date().toISOString() },
updatedAt: {
type: 'string',
isoDate: true,
required: true,
default: () => new Date().toISOString(),
},
}