mirror of
https://github.com/linsa-io/linsa.git
synced 2026-04-18 06:29:49 +02:00
Implement setup task for worker admin environment and add new database schema and snapshot files
This commit is contained in:
@@ -297,6 +297,25 @@ export const stream_replays = pgTable("stream_replays", {
|
||||
export const selectStreamReplaySchema = createSelectSchema(stream_replays)
|
||||
export type StreamReplay = z.infer<typeof selectStreamReplaySchema>
|
||||
|
||||
// =============================================================================
|
||||
// Stream Comments (live chat for streams)
|
||||
// =============================================================================
|
||||
|
||||
export const stream_comments = pgTable("stream_comments", {
|
||||
id: uuid("id").primaryKey().defaultRandom(),
|
||||
stream_username: text("stream_username").notNull(), // Username of the streamer
|
||||
user_id: text("user_id")
|
||||
.notNull()
|
||||
.references(() => users.id, { onDelete: "cascade" }),
|
||||
content: text("content").notNull(),
|
||||
created_at: timestamp("created_at", { withTimezone: true })
|
||||
.defaultNow()
|
||||
.notNull(),
|
||||
})
|
||||
|
||||
export const selectStreamCommentSchema = createSelectSchema(stream_comments)
|
||||
export type StreamComment = z.infer<typeof selectStreamCommentSchema>
|
||||
|
||||
// =============================================================================
|
||||
// Stripe Billing
|
||||
// =============================================================================
|
||||
|
||||
Reference in New Issue
Block a user