model id is a number

pull/13/head
unknown 2018-10-31 17:05:27 -04:00
parent 0cdca62c36
commit 2002d3ebd7
3 changed files with 4 additions and 5 deletions

View File

@ -13,7 +13,7 @@ module.exports = {
// ╠═╝╠╦╝║║║║║ ║ ║╚╗╔╝║╣ ╚═╗
// ╩ ╩╚═╩╩ ╩╩ ╩ ╩ ╚╝ ╚═╝╚═╝
id: {
type: 'string',
type: 'number',
unique: true,
autoIncrement: true,
columnName: '_id'

View File

@ -26,7 +26,7 @@ async function hashPassword (passport) {
module.exports = {
attributes: {
id: {
type: 'string',
type: 'number',
unique: true,
autoIncrement: true,
columnName: '_id'

View File

@ -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'
}
// ╔═╗╔╦╗╔╗ ╔═╗╔╦╗╔═╗
// ║╣ ║║║╠╩╗║╣ ║║╚═╗