blob: d5ac115d4efcb73e185d0882d43dea7e49d9b3ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
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: {
type: Number,
default: 0
}
}, { timestamps: true });
|