blob: b32c2d6deac68131713e546d3facb3aa9050422d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
import { Column, Entity, JoinColumn, ManyToOne, RelationId } from "typeorm";
import { BaseClass } from "./BaseClass";
import { Guild } from "./Guild";
import { User } from "./User";
@Entity("groups")
export class UserGroup extends BaseClass {
@Column()
color: number;
@Column()
hoist: boolean;
@JoinColumn({ name: "controller", referencedColumnName: "id" })
@ManyToOne(() => User)
controller?: User;
@Column()
mentionable_by?: string;
@Column()
name: string;
@Column()
rights: string;
@Column({ nullable: true })
icon: string;
@Column({ type: "simple-json", nullable: true })
tags?: {
bot_id?: string;
integration_id?: string;
premium_subscriber?: boolean;
};
@Column({ nullable: true })
parent?: string;
@Column({ type: "simple-array", nullable: true})
associciations: string[];
}
|