paperclip/packages/db/src/schema/projects.ts

10 lines
406 B
TypeScript
Raw Normal View History

import { pgTable, uuid, text, timestamp } from "drizzle-orm/pg-core";
export const projects = pgTable("projects", {
id: uuid("id").primaryKey().defaultRandom(),
name: text("name").notNull(),
description: text("description"),
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
});