modeling database

This commit is contained in:
2024-11-19 15:21:30 -05:00
parent c3643915ce
commit c2360fddcd
8 changed files with 61 additions and 2 deletions

View File

@@ -0,0 +1,9 @@
import { pgTable, integer, varchar } from "drizzle-orm/pg-core";
import { sql } from "drizzle-orm";
import { timestamps } from "./columns.helpers";
export const accounts = pgTable("base_table", {
id: integer().primaryKey().generatedAlwaysAsIdentity({ name: "base_id_seq", startWith: 1, increment: 1, minValue: 1, maxValue: 2147483647, cache: 1 }),
...timestamps
})