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