user.js
362 Bytes
'use strict';
module.exports = function (sequelize, DataTypes) {
const User = sequelize.define(
'User',
{
id:{
type:DataTypes.STRING,
primaryKey: true,
},
pwd:{
type: DataTypes.STRING
},
},
{
classMethods: {},
tableName: 'user',
freezeTableName: true,
underscored: true,
timestamps: true,
}
);
return User;
};