Ocelot-Social/backend/src/models/UnverifiedEmailAddress.js
2020-01-20 10:58:33 +01:00

13 lines
346 B
JavaScript

export default {
email: { type: 'string', lowercase: true, email: true },
createdAt: { type: 'string', isoDate: true, default: () => new Date().toISOString() },
nonce: { type: 'string', token: true },
belongsTo: {
type: 'relationship',
relationship: 'BELONGS_TO',
target: 'User',
direction: 'out',
eager: true,
},
}