summary refs log tree commit diff
diff options
context:
space:
mode:
authorErkin Alp Güney <erkinalp9035@gmail.com>2022-05-15 09:12:28 +0300
committerErkin Alp Güney <erkinalp9035@gmail.com>2022-05-15 09:12:28 +0300
commit297115f4c5e626f72bd14f5021465204711424e5 (patch)
treed6c7ff9b41618ea5792e97d23dc92a844558cbcf
parentMerge branch 'master' of https://github.com/fosscord/fosscord-server (diff)
downloadserver-297115f4c5e626f72bd14f5021465204711424e5.tar.xz
user groups
-rw-r--r--util/src/entities/Group.ts33
1 files changed, 33 insertions, 0 deletions
diff --git a/util/src/entities/Group.ts b/util/src/entities/Group.ts
new file mode 100644
index 00000000..b24d38cf
--- /dev/null
+++ b/util/src/entities/Group.ts
@@ -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;
+}