UNPKG

@topgroup/diginext

Version:

A BUILD SERVER & CLI to deploy apps to any Kubernetes clusters.

66 lines (65 loc) 2.04 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.workspaceSchema = void 0; const mongoose_1 = require("mongoose"); const Base_1 = require("./Base"); exports.workspaceSchema = new mongoose_1.Schema({ ...Base_1.baseSchemaDefinitions, name: { type: String }, slug: { type: String }, public: { type: Boolean }, image: { type: String }, domain: { type: String }, dx_key: { type: String }, dx_id: { type: String }, owner: { type: mongoose_1.Schema.Types.ObjectId, ref: "users" }, settings: { activity: { retention: { type: { type: String }, value: { type: Number }, }, }, ai: { enabled: { type: Boolean }, apiBaseUrl: { type: String }, model: { type: String }, apiKey: { type: String }, }, database: mongoose_1.Schema.Types.Mixed, database_backup: { retention: { type: { type: String }, value: { type: Number }, }, }, system_log: { retention: { type: { type: String }, value: { type: Number }, }, }, cloud_storage: { provider: { type: String }, region: { type: String }, bucket: { type: String }, accessKey: { type: String }, secretKey: { type: String }, endpoint: { type: String }, baseUrl: { type: String }, basePath: { type: String }, }, notification: { jojo: { enabled: { type: Boolean }, apiKey: { type: String }, events: { type: [String] }, }, elasticEmail: { enabled: { type: Boolean }, apiKey: { type: String }, events: { type: [String] }, }, }, }, }, { collection: "workspaces", timestamps: true });