Files
wwjcloud-nest-v1/wwjcloud/src/common/rbac/entities/sys-role.entity.ts
万物街 f30d64e6cc feat: 初始化 WWJ Cloud 企业级框架项目
- 后端:基于 NestJS 的分层架构设计
- 前端:基于 VbenAdmin + Element Plus 的管理系统
- 支持 SaaS + 独立版双架构模式
- 完整的用户权限管理系统
- 系统设置、文件上传、通知等核心功能
- 多租户支持和插件化扩展架构
2025-08-23 13:20:01 +08:00

41 lines
1.3 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn } from 'typeorm';
import { ApiProperty } from '@nestjs/swagger';
@Entity('sys_role')
export class SysRole {
@ApiProperty({ description: '角色ID' })
@PrimaryGeneratedColumn({ name: 'role_id', type: 'int', unsigned: true })
roleId: number;
@ApiProperty({ description: '站点ID' })
@Column({ name: 'site_id', type: 'int', default: 0 })
siteId: number;
@ApiProperty({ description: '角色名称' })
@Column({ name: 'role_name', type: 'varchar', length: 255, default: '' })
roleName: string;
@ApiProperty({ description: '角色描述' })
@Column({ name: 'remark', type: 'varchar', length: 255, default: '' })
remark: string;
@ApiProperty({ description: '权限规则' })
@Column({ name: 'rules', type: 'text' })
rules: string;
@ApiProperty({ description: '状态1正常 0禁用' })
@Column({ name: 'status', type: 'tinyint', default: 1 })
status: number;
@ApiProperty({ description: '创建时间' })
@CreateDateColumn({ name: 'create_time', type: 'int' })
createTime: number;
@ApiProperty({ description: '更新时间' })
@UpdateDateColumn({ name: 'update_time', type: 'int' })
updateTime: number;
@ApiProperty({ description: '删除时间' })
@Column({ name: 'delete_time', type: 'int', default: 0 })
deleteTime: number;
}