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 });