import { Table, Column, Model, DataType } from "sequelize-typescript"; @Table({ tableName: "rbacRoles" }) export class RbacRole extends Model { @Column({ type: DataType.INTEGER, primaryKey: true, autoIncrement: true, allowNull: false, comment: "ID" }) id: number; @Column({ type: DataType.STRING(50), allowNull: false, comment: "名称" }) name: string; @Column({ type: DataType.JSON, comment: "资源" }) resources: object; @Column({ type: DataType.TEXT, comment: "描述" }) description: string; }