mirror of
https://gitea.gofwd.group/dstrawsb/ballistic-builder.git
synced 2025-12-06 02:36:44 -05:00
compartment table
This commit is contained in:
10
src/db/schema/Compartment.ts
Normal file
10
src/db/schema/Compartment.ts
Normal 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
|
||||
});
|
||||
Reference in New Issue
Block a user