mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-10-07 00:02:06 +00:00
12 lines
391 B
TypeScript
12 lines
391 B
TypeScript
import { z } from "zod";
|
|
|
|
export const assetSchema = z.object({
|
|
assetCode: z.string().min(1, "Asset code is required"),
|
|
name: z.string().min(1, "Name is required"),
|
|
description: z.string().optional(),
|
|
accountId: z.number().nullable().optional(),
|
|
locationId: z.number().nullable().optional(),
|
|
isActive: z.boolean(),
|
|
});
|
|
|
|
export type AssetFormValues = z.infer<typeof assetSchema>;
|