UNPKG

cloud-ide-model-schema

Version:

Pachage for schema management of Cloud IDEsys LMS

27 lines (26 loc) 749 B
import mongoose from "mongoose"; export interface IApiKey { _id?: string; akey_name: string; akey_api_key: string; akey_api_secret?: string; akey_permissions: string[]; akey_rate_limit?: { requests_per_minute?: number; requests_per_hour?: number; requests_per_day?: number; }; akey_expiry_date?: Date; akey_last_used?: Date; akey_status: 'active' | 'revoked' | 'expired'; akey_created_by?: string; akey_created_at?: Date; akey_updated_at?: Date; akey_isactive?: boolean; } declare const CApiKey: mongoose.Model<IApiKey, {}, {}, {}, mongoose.Document<unknown, {}, IApiKey, {}> & IApiKey & Required<{ _id: string; }> & { __v: number; }, any>; export { CApiKey };