O_O
All checks were successful
Docker Deploy / build-and-push (push) Successful in 4m2s

This commit is contained in:
2026-01-20 10:32:14 -07:00
parent b5ac2e0608
commit 82b45fdfe4
8 changed files with 718 additions and 1 deletions

View File

@@ -33,6 +33,8 @@ export const organizations = sqliteTable("organizations", {
state: text("state"),
zip: text("zip"),
country: text("country"),
defaultTaxRate: real("default_tax_rate").default(0),
defaultCurrency: text("default_currency").default("USD"),
createdAt: integer("created_at", { mode: "timestamp" }).$defaultFn(
() => new Date(),
),
@@ -132,6 +134,7 @@ export const timeEntries = sqliteTable(
startTime: integer("start_time", { mode: "timestamp" }).notNull(),
endTime: integer("end_time", { mode: "timestamp" }),
description: text("description"),
invoiceId: text("invoice_id"),
isManual: integer("is_manual", { mode: "boolean" }).default(false),
createdAt: integer("created_at", { mode: "timestamp" }).$defaultFn(
() => new Date(),
@@ -160,6 +163,7 @@ export const timeEntries = sqliteTable(
),
clientIdIdx: index("time_entries_client_id_idx").on(table.clientId),
startTimeIdx: index("time_entries_start_time_idx").on(table.startTime),
invoiceIdIdx: index("time_entries_invoice_id_idx").on(table.invoiceId),
}),
);
@@ -172,6 +176,7 @@ export const tags = sqliteTable(
organizationId: text("organization_id").notNull(),
name: text("name").notNull(),
color: text("color"),
rate: integer("rate").default(0),
createdAt: integer("created_at", { mode: "timestamp" }).$defaultFn(
() => new Date(),
),