UNPKG

@topgroup/diginext

Version:

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

42 lines (41 loc) 1.44 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.baseSchemaDefinitions = void 0; const mongoose_1 = require("mongoose"); exports.baseSchemaDefinitions = { slug: { type: String, unique: true }, active: { type: Boolean, default: true }, public: { type: Boolean, default: true }, metadata: { type: Object }, ownerSlug: { type: String }, owner: { type: mongoose_1.Schema.Types.ObjectId, ref: "users", }, ownerId: { type: mongoose_1.Schema.Types.ObjectId, ref: "users" }, project: { type: mongoose_1.Schema.Types.ObjectId, ref: "projects", }, projectId: { type: mongoose_1.Schema.Types.ObjectId, ref: "projects" }, workspace: { type: mongoose_1.Schema.Types.ObjectId, ref: "workspaces", }, workspaceId: { type: mongoose_1.Schema.Types.ObjectId, ref: "workspaces" }, workspaceSlug: { type: String }, updatedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: "users", }, updatedById: { type: mongoose_1.Schema.Types.ObjectId, ref: "users" }, deletedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: "users", }, deletedById: { type: mongoose_1.Schema.Types.ObjectId, ref: "users" }, createdAt: { type: Date, default: Date.now }, updatedAt: { type: Date, default: Date.now }, deletedAt: { type: Date }, migratedAt: { type: Date }, };