This commit is contained in:
@@ -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(),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user