From 6c99b833e443ba1531845a7fcf4f74247a0837bc Mon Sep 17 00:00:00 2001 From: Frank Date: Tue, 7 Oct 2025 09:17:05 -0400 Subject: wip: zen --- packages/console/core/src/schema/user.sql.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'packages/console/core/src/schema/user.sql.ts') diff --git a/packages/console/core/src/schema/user.sql.ts b/packages/console/core/src/schema/user.sql.ts index 121199f72..7fd7f5e1e 100644 --- a/packages/console/core/src/schema/user.sql.ts +++ b/packages/console/core/src/schema/user.sql.ts @@ -1,4 +1,4 @@ -import { mysqlTable, uniqueIndex, varchar, int, mysqlEnum, index } from "drizzle-orm/mysql-core" +import { mysqlTable, uniqueIndex, varchar, int, mysqlEnum, index, bigint } from "drizzle-orm/mysql-core" import { timestamps, ulid, utc, workspaceColumns } from "../drizzle/types" import { workspaceIndexes } from "./workspace.sql" @@ -15,6 +15,9 @@ export const UserTable = mysqlTable( timeSeen: utc("time_seen"), color: int("color"), role: mysqlEnum("role", UserRole).notNull(), + monthlyLimit: int("monthly_limit"), + monthlyUsage: bigint("monthly_usage", { mode: "number" }), + timeMonthlyUsageUpdated: utc("time_monthly_usage_updated"), }, (table) => [ ...workspaceIndexes(table), -- cgit v1.2.3