mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-16 06:45:28 +00:00
27 lines
434 B
TypeScript
27 lines
434 B
TypeScript
import { Schema, Types, model } 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;
|