summary refs log tree commit diff
path: root/util/src/entities/ConnectedAccount.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-24 16:34:46 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-24 16:34:46 +0200
commitb86032a001b45d3f345820b84ba4489981116919 (patch)
treec583ad6608be9393e88ea85f4aeb3f747e72c1d3 /util/src/entities/ConnectedAccount.ts
parentgenerate schema (diff)
downloadserver-b86032a001b45d3f345820b84ba4489981116919.tar.xz
:sparkles: typeorm entities
Diffstat (limited to 'util/src/entities/ConnectedAccount.ts')
-rw-r--r--util/src/entities/ConnectedAccount.ts29
1 files changed, 29 insertions, 0 deletions
diff --git a/util/src/entities/ConnectedAccount.ts b/util/src/entities/ConnectedAccount.ts
new file mode 100644
index 00000000..6aa2b401
--- /dev/null
+++ b/util/src/entities/ConnectedAccount.ts
@@ -0,0 +1,29 @@
+import { Column, Entity } from "typeorm";
+import { BaseClass } from "./BaseClass";
+
+@Entity("connected_accounts")
+export class ConnectedAccount extends BaseClass {
+	@Column()
+	access_token: string;
+
+	@Column()
+	friend_sync: boolean;
+
+	@Column()
+	name: string;
+
+	@Column()
+	revoked: boolean;
+
+	@Column()
+	show_activity: boolean;
+
+	@Column()
+	type: string;
+
+	@Column()
+	verifie: boolean;
+
+	@Column()
+	visibility: number;
+}