This commit was merged in pull request #72.
This commit is contained in:
@@ -12,3 +12,4 @@ export * from "./timmy-nostr-events";
|
||||
export * from "./nostr-trust-vouches";
|
||||
export * from "./relay-accounts";
|
||||
export * from "./relay-event-queue";
|
||||
export * from "./job-debates";
|
||||
|
||||
15
lib/db/src/schema/job-debates.ts
Normal file
15
lib/db/src/schema/job-debates.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { pgTable, text, timestamp } from "drizzle-orm/pg-core";
|
||||
import { jobs } from "./jobs";
|
||||
|
||||
export const jobDebates = pgTable("job_debates", {
|
||||
id: text("id").primaryKey(),
|
||||
jobId: text("job_id").notNull().references(() => jobs.id),
|
||||
argFor: text("arg_for").notNull(),
|
||||
argAgainst: text("arg_against").notNull(),
|
||||
verdict: text("verdict").notNull(),
|
||||
verdictAccepted: text("verdict_accepted").notNull(), // "true" | "false"
|
||||
verdictReason: text("verdict_reason").notNull(),
|
||||
createdAt: timestamp("created_at", { withTimezone: true }).defaultNow().notNull(),
|
||||
});
|
||||
|
||||
export type JobDebate = typeof jobDebates.$inferSelect;
|
||||
Reference in New Issue
Block a user