and so it begins

This commit is contained in:
user
2025-10-20 18:59:38 +03:00
parent f5b99afc8f
commit e239b3bbf6
53 changed files with 4813 additions and 2887 deletions

View File

@@ -1,17 +1,17 @@
import { relations } from "drizzle-orm";
import {
pgTable,
serial,
varchar,
decimal,
boolean,
timestamp,
date,
decimal,
integer,
json,
pgTable,
serial,
text,
date,
timestamp,
varchar,
} from "drizzle-orm/pg-core";
import { user } from "./auth.out";
import { relations } from "drizzle-orm";
export * from "./auth.out";
@@ -60,6 +60,21 @@ export const order = pgTable("order", {
updatedAt: timestamp("updated_at").defaultNow(),
});
export const product = pgTable("product", {
id: serial("id").primaryKey(),
title: varchar("title", { length: 64 }).notNull(),
description: text("description").notNull(),
longDescription: text("long_description").notNull(),
price: decimal("price", { precision: 12, scale: 2 })
.$type<string>()
.default("0"),
discountPrice: decimal("discount_price", { precision: 12, scale: 2 })
.$type<string>()
.default("0"),
createdAt: timestamp("created_at").defaultNow(),
updatedAt: timestamp("updated_at").defaultNow(),
});
export const passengerPII = pgTable("passenger_pii", {
id: serial("id").primaryKey(),
firstName: varchar("first_name", { length: 64 }).notNull(),