@topgroup/diginext
Version:
A BUILD SERVER & CLI to deploy apps to any Kubernetes clusters.
33 lines (32 loc) • 1.09 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.appSchema = void 0;
const mongoose_1 = require("mongoose");
const Base_1 = require("./Base");
exports.appSchema = new mongoose_1.Schema({
...Base_1.baseSchemaDefinitions,
name: { type: String },
image: { type: String },
slug: { type: String },
createdBy: { type: String },
lastUpdatedBy: { type: String },
git: {
provider: { type: String },
repoURL: { type: String },
repoSSH: { type: String },
},
framework: {
name: { type: String },
slug: { type: String },
repoURL: { type: String },
repoSSH: { type: String },
version: { type: String },
},
environment: { type: Map, of: String },
deployEnvironment: { type: Map },
latestBuild: { type: String },
buildNumber: { type: Number, default: 1 },
projectSlug: { type: String },
gitProvider: { type: mongoose_1.Schema.Types.ObjectId, ref: "git_providers" },
archivedAt: { type: Date },
}, { collection: "apps", timestamps: true });