mirror of
https://gitea.gofwd.group/dstrawsb/ballistic-builder.git
synced 2025-12-05 18:26:45 -05:00
11 lines
395 B
TypeScript
11 lines
395 B
TypeScript
import { pgTable, integer, varchar, text,uuid} from "drizzle-orm/pg-core";
|
|
import { sql } from "drizzle-orm";
|
|
import { timestamps } from "../../drizzle/schema/helpers/columns.helpers";
|
|
|
|
export const compartment = pgTable("compartment", {
|
|
id: uuid().defaultRandom().primaryKey().notNull(),
|
|
name: varchar({ length: 100 }).notNull(),
|
|
description: varchar({ length: 300 }),
|
|
...timestamps
|
|
});
|