
const Sequelize = require("sequelize");
// 系统用户表
module.exports = (db) => {
  return db.define("sys_user", {
    name: {
      type: Sequelize.STRING(100),
      allowNull: false,
      defaultValue: "",
  },
    password: {
      type: Sequelize.STRING(100),
      allowNull: false,
      defaultValue: "",
  },
    roleId: {
      type: Sequelize.INTEGER,
      allowNull: false,
  },
  });
};


