more database design

This commit is contained in:
2024-11-20 09:02:38 -05:00
parent 429d6d2b26
commit 7ccc6d10e8
14 changed files with 41 additions and 26 deletions

View File

@@ -1,6 +1,6 @@
import { pgTable, integer, varchar, text, decimal } from "drizzle-orm/pg-core";
import { sql } from "drizzle-orm";
import { timestamps } from "./columns.helpers";
import { timestamps } from "./helpers/columns.helpers";
export const Product = pgTable("products", {
id: integer().primaryKey().generatedAlwaysAsIdentity({ name: "products_id_seq", startWith: 1, increment: 1, minValue: 1, maxValue: 2147483647, cache: 1 }),