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.
42 lines
868 B
42 lines
868 B
6 months ago
|
const Sequelize = require('sequelize');
|
||
|
module.exports = function(sequelize, DataTypes) {
|
||
|
return sequelize.define('lauchuserpasswd', {
|
||
|
passwdId: {
|
||
|
autoIncrement: true,
|
||
|
type: DataTypes.INTEGER,
|
||
|
allowNull: false,
|
||
|
primaryKey: true,
|
||
|
comment: "密码记录ID"
|
||
|
},
|
||
|
uuid: {
|
||
|
type: DataTypes.UUID,
|
||
|
allowNull: false,
|
||
|
comment: "用户ID"
|
||
|
},
|
||
|
passwd: {
|
||
|
type: DataTypes.STRING(255),
|
||
|
allowNull: false,
|
||
|
comment: "用户密码"
|
||
|
},
|
||
|
createTime: {
|
||
|
type: DataTypes.DATE,
|
||
|
allowNull: false,
|
||
|
comment: "创建时间"
|
||
|
}
|
||
|
}, {
|
||
|
sequelize,
|
||
|
tableName: 'lauchuserpasswd',
|
||
|
timestamps: false,
|
||
|
indexes: [
|
||
|
{
|
||
|
name: "PRIMARY",
|
||
|
unique: true,
|
||
|
using: "BTREE",
|
||
|
fields: [
|
||
|
{ name: "passwdId" },
|
||
|
]
|
||
|
},
|
||
|
]
|
||
|
});
|
||
|
};
|