category select; publish article form part

This commit is contained in:
2025-03-08 20:12:22 +01:00
parent 96b989799a
commit 47a79cd171
14 changed files with 1154 additions and 111 deletions
+2
View File
@@ -1,6 +1,7 @@
import { createId } from "@paralleldrive/cuid2";
import { relations, sql } from "drizzle-orm";
import {
boolean,
index,
integer,
pgTableCreator,
@@ -30,6 +31,7 @@ export const articles = createTable(
authorId: varchar("author_id", { length: 255 }),
content: text("content"),
categoryId: varchar("category_id", { length: 255 }),
published: boolean("published").default(false),
createdAt: timestamp("created_at", { withTimezone: true })
.default(sql`CURRENT_TIMESTAMP`)
.notNull(),