This commit is contained in:
John Yeo
2025-09-29 11:15:23 +01:00
parent 1103fd8ca2
commit 3d0e4f94f2
61 changed files with 1820 additions and 261 deletions

View File

@@ -1,4 +1,4 @@
// import { z } from "zod";
// import { z } from "zod/v4";
// import { EntityBalance, EntityBalanceSchema } from "../../../index.js";
// import { jsonb } from "drizzle-orm/pg-core";

View File

@@ -1,6 +1,6 @@
import { relations } from "drizzle-orm";
import { rollovers } from "./rolloverTable.js";
import { customerEntitlements } from "../cusEntTable.js";
import { rollovers } from "./rolloverTable.js";
export const rolloverRelations = relations(rollovers, ({ one }) => ({
customer_entitlement: one(customerEntitlements, {

View File

@@ -1,13 +1,13 @@
import { z } from "zod";
import { customerEntitlements } from "../cusEntTable.js";
import {
foreignKey,
pgTable,
numeric,
jsonb,
text,
index,
jsonb,
numeric,
pgTable,
text,
} from "drizzle-orm/pg-core";
import { z } from "zod/v4";
import { customerEntitlements } from "../cusEntTable.js";
export const EntityRolloverBalanceSchema = z.object({
id: z.string(),