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