You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
docker-infisical/backend/src/models/organization.ts

27 lines
430 B

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