compartment table

This commit is contained in:
2024-12-10 15:46:47 -05:00
parent ce27b7b869
commit 9ab8961518
3 changed files with 21 additions and 52 deletions

View File

@@ -0,0 +1,10 @@
import { pgTable, integer, varchar, text,uuid} from "drizzle-orm/pg-core";
import { sql } from "drizzle-orm";
import { timestamps } from "./helpers/columns.helpers";
export const compartment = pgTable("compartment", {
id: uuid().defaultRandom().primaryKey().notNull(),
name: varchar({ length: 100 }).notNull(),
description: varchar({ length: 300 }),
...timestamps
});