summaryrefslogtreecommitdiff
path: root/src/models/contractor/contractor.schema.ts
blob: e3f7de6b2e046ebec7cb5049fd8ab7960302515e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 });