Created
March 23, 2021 07:22
-
-
Save rizwan92/d2ce38e0956a90ba0d2da43c936ee6a7 to your computer and use it in GitHub Desktop.
billSchemaexample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const BillsSchema = { | |
title: "bills schema", | |
description: "bills schema", | |
version: 0, | |
type: "object", | |
properties: { | |
_id: { | |
type: "string", | |
primary: true, | |
}, | |
accountId: { | |
type: "string", | |
}, | |
outletId: { | |
type: "string", | |
}, | |
billNumber: { | |
type: "number", | |
}, | |
orderType: { | |
type: "string", | |
}, | |
customerName: { | |
type: "string", | |
}, | |
customerNumber: { | |
type: "string", | |
}, | |
tableId: { | |
type: "string", | |
}, | |
discount: { | |
type: "number", | |
}, | |
discountType: { | |
type: "string", | |
}, | |
discountedAmount: { | |
type: "string", | |
}, | |
paymentMethod: { | |
type: "string", | |
}, | |
total: { | |
type: "number", | |
}, | |
actualAmount: { | |
type: "number", | |
}, | |
taxedAmount: { | |
type: "number", | |
}, | |
currency: { | |
type: "string", | |
}, | |
tax: { | |
type: "boolean", | |
}, | |
taxes: { | |
type: "array", | |
}, | |
outlet: { | |
type: "object", | |
}, | |
products: { | |
type: "object", | |
}, | |
createdAt: { | |
type: "string", | |
format: "date-time", | |
index: true, | |
}, | |
updatedAt: { | |
type: "string", | |
format: "date-time", | |
}, | |
}, | |
indexes: ["createdAt"], | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment