@topgroup/diginext
Version:
A BUILD SERVER & CLI to deploy apps to any Kubernetes clusters.
25 lines (24 loc) • 1 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.projectSchema = void 0;
const mongoose_1 = require("mongoose");
const Base_1 = require("./Base");
exports.projectSchema = new mongoose_1.Schema({
...Base_1.baseSchemaDefinitions,
name: { type: String },
isDefault: { type: Boolean },
image: { type: String },
slug: { type: String },
apiKey: { type: String },
clientId: { type: String },
clientSecret: { type: String },
createdBy: { type: String },
lastUpdatedBy: { type: String },
latestBuild: { type: mongoose_1.Schema.Types.ObjectId, ref: "builds" },
latestBuildTag: { type: String },
appSlugs: { type: [String] },
apps: [{ type: mongoose_1.Schema.Types.ObjectId, ref: "apps" }],
owner: { type: mongoose_1.Schema.Types.ObjectId, ref: "users" },
workspace: { type: mongoose_1.Schema.Types.ObjectId, ref: "workspaces" },
archivedAt: { type: Date },
}, { collection: "projects", timestamps: true });