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.
23 lines
489 B
23 lines
489 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
|
|
}, {
|
|
freezeTableName: true,
|
|
createdAt: false,
|
|
updatedAt: false,
|
|
}) |