24 lines
365 B
TypeScript
24 lines
365 B
TypeScript
import {
|
|
Column,
|
|
Entity,
|
|
PrimaryColumn
|
|
} from 'typeorm';
|
|
|
|
@Entity('room_user_roles')
|
|
export class RoomUserRoleEntity {
|
|
@PrimaryColumn('text')
|
|
roomId!: string;
|
|
|
|
@PrimaryColumn('text')
|
|
userKey!: string;
|
|
|
|
@PrimaryColumn('text')
|
|
roleId!: string;
|
|
|
|
@Column('text')
|
|
userId!: string;
|
|
|
|
@Column('text', { nullable: true })
|
|
oderId!: string | null;
|
|
}
|