summaryrefslogtreecommitdiff
path: root/src/models/contractor/contractor.schema.ts
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2021-03-14 07:06:18 +0300
committereug-vs <eug-vs@keemail.me>2021-03-14 07:06:18 +0300
commitac9698ea0de17ab2d1fbfafead0f33295a402e28 (patch)
tree839767b2c34b5be47223274bf47ee1aa42c83cd8 /src/models/contractor/contractor.schema.ts
parent1b86dcef9fd537db800e0df2c2f3889ffbc69723 (diff)
downloadcommercel-api-ac9698ea0de17ab2d1fbfafead0f33295a402e28.tar.gz
feat: add Contractors service
Diffstat (limited to 'src/models/contractor/contractor.schema.ts')
-rw-r--r--src/models/contractor/contractor.schema.ts18
1 files changed, 18 insertions, 0 deletions
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 });
+