You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
uml-task/dao/model/userModel.js

27 lines
572 B

const sequelize = require("../dbConnect")
const {
DataTypes
} = require("sequelize")
module.exports = sequelize.define("user", {
loginId: {
type: DataTypes.STRING,
allowNull: false
},
loginPwd: {
type: DataTypes.STRING,
allowNull: false
},
sex: DataTypes.STRING,
brithday: DataTypes.STRING,
region: DataTypes.STRING,
number: DataTypes.STRING,
isAdmin: {
type: DataTypes.BOOLEAN,
defaultValue: false
}
}, {
freezeTableName: true,
createdAt: false,
updatedAt: false,
})