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: { id: {
type: 'string', type: 'number',
unique: true, unique: true,
autoIncrement: true, autoIncrement: true,
columnName: '_id' columnName: '_id'

View File

@ -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'

View File

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