Ocelot-Social/backend/src/models/UnverifiedEmailAddress.ts
2023-06-12 13:25:21 +02:00

13 lines
346 B
TypeScript

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,
},
}