user groups
This commit is contained in:
parent
d55828a952
commit
41564c7956
33
util/src/entities/Group.ts
Normal file
33
util/src/entities/Group.ts
Normal file
@ -0,0 +1,33 @@
|
||||
import { Column, Entity, JoinColumn, ManyToOne, RelationId } from "typeorm";
|
||||
|
||||
import { BaseClass } from "./BaseClass";
|
||||
|
||||
@Entity("groups")
|
||||
export class UserGroup extends BaseClass {
|
||||
@Column({ nullable: true })
|
||||
parent?: BigInt;
|
||||
|
||||
@Column()
|
||||
color: number;
|
||||
|
||||
@Column()
|
||||
hoist: boolean;
|
||||
|
||||
@Column()
|
||||
mentionable: boolean;
|
||||
|
||||
@Column()
|
||||
name: string;
|
||||
|
||||
@Column()
|
||||
rights: BigInt;
|
||||
|
||||
@Column()
|
||||
position: number;
|
||||
|
||||
@Column({ nullable: true })
|
||||
icon: BigInt;
|
||||
|
||||
@Column({ nullable: true })
|
||||
unicode_emoji: BigInt;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user