diff options
author | Puyodead1 <puyodead@proton.me> | 2022-12-22 10:05:51 -0500 |
---|---|---|
committer | Puyodead1 <puyodead@proton.me> | 2023-03-18 19:09:51 -0400 |
commit | 21bfda32e452c05b8906bf318df7415d6cd5acd0 (patch) | |
tree | 997f6ff0dd5ec6969cfea270776e4d96f1d82820 /src/util/entities/ConnectedAccount.ts | |
parent | Merge pull request #1005 from Xanderplayz18/patch-1 (diff) | |
download | server-21bfda32e452c05b8906bf318df7415d6cd5acd0.tar.xz |
add connections
Diffstat (limited to 'src/util/entities/ConnectedAccount.ts')
-rw-r--r-- | src/util/entities/ConnectedAccount.ts | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/src/util/entities/ConnectedAccount.ts b/src/util/entities/ConnectedAccount.ts index 9f0ce35e..70923d2c 100644 --- a/src/util/entities/ConnectedAccount.ts +++ b/src/util/entities/ConnectedAccount.ts @@ -27,6 +27,9 @@ export type PublicConnectedAccount = Pick< @Entity("connected_accounts") export class ConnectedAccount extends BaseClass { + @Column() + external_id: string; + @Column({ nullable: true }) @RelationId((account: ConnectedAccount) => account.user) user_id: string; @@ -41,16 +44,16 @@ export class ConnectedAccount extends BaseClass { access_token: string; @Column({ select: false }) - friend_sync: boolean; + friend_sync: boolean = false; @Column() name: string; @Column({ select: false }) - revoked: boolean; + revoked: boolean = false; @Column({ select: false }) - show_activity: boolean; + show_activity: boolean = true; @Column() type: string; @@ -59,5 +62,17 @@ export class ConnectedAccount extends BaseClass { verified: boolean; @Column({ select: false }) - visibility: number; + visibility: boolean = true; + + @Column({ type: "simple-array" }) + integrations: string[]; + + @Column({ type: "simple-json", name: "metadata" }) + metadata_: any; + + @Column() + metadata_visibility: boolean = true; + + @Column() + two_way_link: boolean = false; } |