mirror of
https://github.com/CaramelFur/Picsur.git
synced 2026-02-19 04:36:49 +01:00
17 lines
476 B
TypeScript
17 lines
476 B
TypeScript
import { ERole } from 'picsur-shared/dist/entities/role.entity';
|
|
import { Column, Entity, Index, PrimaryGeneratedColumn } from 'typeorm';
|
|
import { Permissions } from '../dto/permissions.dto';
|
|
|
|
@Entity()
|
|
export class ERoleBackend extends ERole {
|
|
@PrimaryGeneratedColumn("uuid")
|
|
override id: string;
|
|
|
|
@Index()
|
|
@Column({ nullable: false, unique: true })
|
|
override name: string;
|
|
|
|
@Column('text', { nullable: false, array: true })
|
|
override permissions: Permissions;
|
|
}
|