16 lines
631 B
TypeScript
16 lines
631 B
TypeScript
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;
|