mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
* DRY schema stitching code * Use same `.env` configuration file for cypress tests That last part I couldn't improve a lot. I thought it might be possible with cypress to import all files from a folder. But since it must be browser compatible and our backend is not using webpack or anything, it remains a goal unreached. close #2773 close #2774
14 lines
410 B
JavaScript
14 lines
410 B
JavaScript
export default {
|
|
email: { type: 'string', primary: true, lowercase: true, email: true },
|
|
createdAt: { type: 'string', isoDate: true, default: () => new Date().toISOString() },
|
|
verifiedAt: { type: 'string', isoDate: true },
|
|
nonce: { type: 'string', token: true },
|
|
belongsTo: {
|
|
type: 'relationship',
|
|
relationship: 'BELONGS_TO',
|
|
target: 'User',
|
|
direction: 'out',
|
|
eager: true,
|
|
},
|
|
}
|