access_role.js 496 B

1234567891011121314151617181920212223
  1. /* indent size: 2 */
  2. module.exports = app => {
  3. const DataTypes = app.Sequelize;
  4. const Model = app.model.define('AccessRole', {
  5. role_id: {
  6. type: DataTypes.INTEGER(10).UNSIGNED,
  7. primaryKey: true
  8. },
  9. access_id: {
  10. type: DataTypes.STRING(5000),
  11. }
  12. }, {
  13. tableName: 'szj_access_role'
  14. });
  15. Model.associate = function() {
  16. }
  17. //同步:没有就新建,有就不变
  18. Model.sync();
  19. return Model;
  20. };