import mongoose, { Model } from 'mongoose';

export interface ICRMProspectInfoNote {
  name: string;
  text: string;
}

export type CRMProspectInfoNoteModel = Model<ICRMProspectInfoNote>;

export const CRMProspectInfoNoteSchema = new mongoose.Schema<ICRMProspectInfoNote, CRMProspectInfoNoteModel>(
  {
    name: {
      type: String,
    },
    text: {
      type: String,
    },
  },
  {
    timestamps: false,
    versionKey: false,
    _id: false,
  },
);
