mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 07:48:37 +01:00
update
This commit is contained in:
18
shared/schema/integrations/IntegrationsCredentialsSchema.ts
Normal file
18
shared/schema/integrations/IntegrationsCredentialsSchema.ts
Normal 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);
|
||||
Reference in New Issue
Block a user