summary refs log tree commit diff
path: root/src/util/entities/StreamSession.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/entities/StreamSession.ts')
-rw-r--r--src/util/entities/StreamSession.ts39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/util/entities/StreamSession.ts b/src/util/entities/StreamSession.ts
deleted file mode 100644

index 1dca2424..00000000 --- a/src/util/entities/StreamSession.ts +++ /dev/null
@@ -1,39 +0,0 @@ -import { Column, Entity, JoinColumn, ManyToOne, RelationId } from "typeorm"; -import { BaseClass } from "./BaseClass"; -import { User } from "./User"; -import { Stream } from "./Stream"; - -@Entity({ - name: "stream_sessions", -}) -export class StreamSession extends BaseClass { - @Column() - @RelationId((session: StreamSession) => session.stream) - stream_id: string; - - @JoinColumn({ name: "stream_id" }) - @ManyToOne(() => Stream, { - onDelete: "CASCADE", - }) - stream: Stream; - - @Column() - @RelationId((session: StreamSession) => session.user) - user_id: string; - - @JoinColumn({ name: "user_id" }) - @ManyToOne(() => User, { - onDelete: "CASCADE", - }) - user: User; - - @Column({ nullable: true }) - token: string; - - // this is for gateway session - @Column() - session_id: string; - - @Column({ default: false }) - used: boolean; -}