export type DbFields = { [K in keyof T]-?: T[K] | null; } export interface OrderFields { currency?: string; customerId?: string; customerName?: string; creationDate?: Date; email?: string; lastModified?: Date; orderId?: string; orderNo?: string; orderStatusId?: number; orderTotal?: number; productTotal?: number; recordCreated?: Date; recordUpdated?: Date; region?: string; shippingTotal?: number; siteId?: string; taxTotal?: number; } export type NewOrderData = DbFields & { orderStatusId: number; orderNo: string; } export type OrderData = DbFields & { orderId: number; orderStatusId: number; recordCreated: Date; recordUpdated: Date; }