mirror of
https://github.com/zhigang1992/deployd.git
synced 2026-05-23 12:57:26 +08:00
32 lines
758 B
JavaScript
32 lines
758 B
JavaScript
module.exports = {
|
|
|
|
Collection: {
|
|
defaultPath: '/my-objects',
|
|
require: './types/collection'
|
|
},
|
|
|
|
UserCollection: {
|
|
label: 'Users Collection',
|
|
defaultPath: '/users',
|
|
require: './types/user-collection',
|
|
settings: {
|
|
email: {
|
|
description: 'the unique email of the user',
|
|
type: 'string',
|
|
pattern: "[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?",
|
|
required: true,
|
|
unique: true,
|
|
minLength: 5,
|
|
order: 0
|
|
},
|
|
password: {
|
|
description: "the user's password",
|
|
type: 'string',
|
|
required: true,
|
|
minLength: 5,
|
|
order: 1
|
|
}
|
|
}
|
|
}
|
|
|
|
}; |