Skip to content

Instantly share code, notes, and snippets.

@rizwan92
Created March 23, 2021 07:22
Show Gist options
  • Save rizwan92/d2ce38e0956a90ba0d2da43c936ee6a7 to your computer and use it in GitHub Desktop.
Save rizwan92/d2ce38e0956a90ba0d2da43c936ee6a7 to your computer and use it in GitHub Desktop.
billSchemaexample
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