import { Schema, model, Types } from 'mongoose'; export interface IOrganization { _id: Types.ObjectId; name: string; customerId?: string; } const organizationSchema = new Schema( { name: { type: String, required: true }, customerId: { type: String } }, { timestamps: true } ); const Organization = model('Organization', organizationSchema); export default Organization;