Changeset b615094 for database/drizzle/schema/builds.ts
- Timestamp:
- 12/20/25 01:31:36 (7 months ago)
- Branches:
- main
- Children:
- 0d447f6
- Parents:
- b69759d
- File:
-
- 1 edited
-
database/drizzle/schema/builds.ts (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
database/drizzle/schema/builds.ts
rb69759d rb615094 1 import { pgTable, serial, integer, text, numeric, boolean, date, primaryKey} from "drizzle-orm/pg-core";1 import {pgTable, serial, integer, text, numeric, boolean, date, primaryKey, check} from "drizzle-orm/pg-core"; 2 2 import { usersTable } from "./users"; 3 3 import { componentsTable } from "./components"; 4 import {sql} from "drizzle-orm"; 4 5 5 6 export const buildsTable = pgTable("build", { … … 52 53 (t) => ({ 53 54 pk: primaryKey({ columns: [t.buildId, t.userId] }), 55 checkValue: check("check_value", sql`${t.value} BETWEEN 1 AND 5`), 54 56 }), 55 57 );
Note:
See TracChangeset
for help on using the changeset viewer.
