model id is a number
parent
0cdca62c36
commit
2002d3ebd7
|
@ -13,7 +13,7 @@ module.exports = {
|
|||
// ╠═╝╠╦╝║║║║║ ║ ║╚╗╔╝║╣ ╚═╗
|
||||
// ╩ ╩╚═╩╩ ╩╩ ╩ ╩ ╚╝ ╚═╝╚═╝
|
||||
id: {
|
||||
type: 'string',
|
||||
type: 'number',
|
||||
unique: true,
|
||||
autoIncrement: true,
|
||||
columnName: '_id'
|
||||
|
|
|
@ -26,7 +26,7 @@ async function hashPassword (passport) {
|
|||
module.exports = {
|
||||
attributes: {
|
||||
id: {
|
||||
type: 'string',
|
||||
type: 'number',
|
||||
unique: true,
|
||||
autoIncrement: true,
|
||||
columnName: '_id'
|
||||
|
|
|
@ -12,7 +12,7 @@ module.exports = {
|
|||
// ╠═╝╠╦╝║║║║║ ║ ║╚╗╔╝║╣ ╚═╗
|
||||
// ╩ ╩╚═╩╩ ╩╩ ╩ ╩ ╚╝ ╚═╝╚═╝
|
||||
id: {
|
||||
type: 'string',
|
||||
type: 'number',
|
||||
unique: true,
|
||||
autoIncrement: true,
|
||||
columnName: '_id'
|
||||
|
@ -21,8 +21,7 @@ module.exports = {
|
|||
type: 'string',
|
||||
unique: true,
|
||||
required: true
|
||||
},
|
||||
password: 'string'
|
||||
}
|
||||
|
||||
// ╔═╗╔╦╗╔╗ ╔═╗╔╦╗╔═╗
|
||||
// ║╣ ║║║╠╩╗║╣ ║║╚═╗
|
||||
|
|
Loading…
Reference in New Issue