[Closes #8] Added authentication
Some checks failed
Production Build and Deploy / Build (push) Failing after 44s
Production Build and Deploy / Deploy (push) Has been skipped

This commit is contained in:
Liviu Burcusel 2026-01-07 11:11:35 +01:00
parent 6eefa137bb
commit 97211cdccd
Signed by: liviu
GPG key ID: 6CDB37A4AD2C610C
65 changed files with 5831 additions and 440 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],
}),
}));