Project import from github
All checks were successful
Production Build and Deploy / Build (push) Successful in 1m7s
Production Build and Deploy / Deploy (push) Successful in 21s

This commit is contained in:
Liviu Burcusel 2026-01-14 16:29:05 +01:00
commit 0add58254d
Signed by: liviu
GPG key ID: 6CDB37A4AD2C610C
179 changed files with 23756 additions and 0 deletions

View file

@ -0,0 +1,21 @@
import { relations } from "drizzle-orm";
import { jsonb, pgTable, text, uuid } from "drizzle-orm/pg-core";
import { user } from "./auth";
export const memberData = pgTable("member_data", {
id: uuid()
.primaryKey()
.references(() => user.id, { onDelete: "cascade" }),
country: text(),
info: jsonb(),
address: jsonb(),
billing: jsonb(),
});
export const memberDataRelations = relations(memberData, ({ one }) => ({
user: one(user, {
fields: [memberData.id],
references: [user.id],
}),
}));