From ac9698ea0de17ab2d1fbfafead0f33295a402e28 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sun, 14 Mar 2021 07:06:18 +0300 Subject: feat: add Contractors service --- src/models/contractor/contractor.schema.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/models/contractor/contractor.schema.ts (limited to 'src/models/contractor/contractor.schema.ts') diff --git a/src/models/contractor/contractor.schema.ts b/src/models/contractor/contractor.schema.ts new file mode 100644 index 0000000..e3f7de6 --- /dev/null +++ b/src/models/contractor/contractor.schema.ts @@ -0,0 +1,18 @@ +import { Document, Schema, Types } from 'mongoose'; + +export interface ContractorSchema extends Document { + name: string; + fullName: string; + vatId: string; + type: string; + debt: number; +} + +export const contractorSchema = new Schema({ + name: String, + fullName: String, + vatId: String, + type: String, + debt: Number +}, { timestamps: true }); + -- cgit v1.2.3