Group of fields
Closed this issue · 0 comments
tshemsedinov commented
We can group fields into named sets. For JavaScript it means nested data structures. But for databases fields names should be unique as if fields are not grouped. For example:
({
login: { type: 'string', unique: true, length: 30 },
fullName: {
givenName: { type: 'string', required: false },
middleName: { type: 'string', required: false },
surname: { type: 'string', required: false },
},
birth: {
birthDate: 'string',
birthPlace: 'string',
},
});