This commit is contained in:
Emily
2024-09-27 20:33:49 +02:00
parent 8e3ad2920f
commit 3c77a727cd
37 changed files with 815 additions and 491752 deletions

View File

@@ -0,0 +1,18 @@
import { model, Schema, Types } from 'mongoose';
export type TIntegrationsCredentials = {
_id: Schema.Types.ObjectId,
project_id: Schema.Types.ObjectId,
supabase_url: string,
supabase_anon_key: string,
supabase_service_role_key: string,
}
const IntegrationsCredentialsSchema = new Schema<TIntegrationsCredentials>({
project_id: { type: Types.ObjectId, index: 1 },
supabase_url: { type: String },
supabase_anon_key: { type: String },
supabase_service_role_key: { type: String },
});
export const IntegrationsCredentialsModel = model<TIntegrationsCredentials>('integrations_credentials', IntegrationsCredentialsSchema);