From 5e86d7ab9c5200d794c3adb2b422d20a2aefd2ce Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Sat, 13 Aug 2022 02:00:50 +0200 Subject: restructure to single project --- util/src/entities/ConnectedAccount.ts | 42 ----------------------------------- 1 file changed, 42 deletions(-) delete mode 100644 util/src/entities/ConnectedAccount.ts (limited to 'util/src/entities/ConnectedAccount.ts') diff --git a/util/src/entities/ConnectedAccount.ts b/util/src/entities/ConnectedAccount.ts deleted file mode 100644 index 09ae30ab..00000000 --- a/util/src/entities/ConnectedAccount.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { Column, Entity, JoinColumn, ManyToOne, RelationId } from "typeorm"; -import { BaseClass } from "./BaseClass"; -import { User } from "./User"; - -export interface PublicConnectedAccount extends Pick {} - -@Entity("connected_accounts") -export class ConnectedAccount extends BaseClass { - @Column({ nullable: true }) - @RelationId((account: ConnectedAccount) => account.user) - user_id: string; - - @JoinColumn({ name: "user_id" }) - @ManyToOne(() => User, { - onDelete: "CASCADE", - }) - user: User; - - @Column({ select: false }) - access_token: string; - - @Column({ select: false }) - friend_sync: boolean; - - @Column() - name: string; - - @Column({ select: false }) - revoked: boolean; - - @Column({ select: false }) - show_activity: boolean; - - @Column() - type: string; - - @Column() - verified: boolean; - - @Column({ select: false }) - visibility: number; -} -- cgit 1.5.1