mirror of
https://github.com/soconnor0919/beenvoice.git
synced 2026-02-05 00:06:36 -05:00
Make hourly rate optional for clients and invoices
This commit is contained in:
@@ -42,7 +42,7 @@ const createClientSchema = z.object({
|
||||
.max(100, "Country name is too long")
|
||||
.optional()
|
||||
.or(z.literal("")),
|
||||
defaultHourlyRate: z.number().min(0, "Rate must be positive").default(100),
|
||||
defaultHourlyRate: z.number().min(0, "Rate must be positive").optional(),
|
||||
});
|
||||
|
||||
const updateClientSchema = createClientSchema.partial().extend({
|
||||
|
||||
@@ -108,7 +108,7 @@ export const clients = createTable(
|
||||
state: d.varchar({ length: 50 }),
|
||||
postalCode: d.varchar({ length: 20 }),
|
||||
country: d.varchar({ length: 100 }),
|
||||
defaultHourlyRate: d.real().notNull().default(100.0),
|
||||
defaultHourlyRate: d.real(),
|
||||
createdById: d
|
||||
.varchar({ length: 255 })
|
||||
.notNull()
|
||||
|
||||
Reference in New Issue
Block a user