2025-11-23 23:35:41 -06:00
|
|
|
import { integer, uuid, pgTable, varchar, date } from "drizzle-orm/pg-core";
|
2025-11-14 17:47:23 -06:00
|
|
|
|
2025-11-23 23:35:41 -06:00
|
|
|
export const articles = pgTable("articles", {
|
|
|
|
|
id: uuid().notNull().primaryKey().defaultRandom(),
|
2025-11-14 17:47:23 -06:00
|
|
|
name: varchar({ length: 255 }).notNull(),
|
2025-11-23 23:35:41 -06:00
|
|
|
date: date({ mode: "date" }).notNull(),
|
|
|
|
|
text: varchar({ length: 9999 }).notNull()
|
2025-11-14 17:47:23 -06:00
|
|
|
});
|
|
|
|
|
|