summary refs log tree commit diff
path: root/src/util/entities/Group.ts
blob: 23aaabf261755b806aed65a1c9883b22a3b3e28b (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
import { Column, Entity } 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;
}