@topgroup/diginext
Version:
A BUILD SERVER & CLI to deploy apps to any Kubernetes clusters.
14 lines (13 loc) • 603 B
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.teamSchema = void 0;
const mongoose_1 = require("mongoose");
const Base_1 = require("./Base");
exports.teamSchema = new mongoose_1.Schema({
...Base_1.baseSchemaDefinitions,
name: { type: String, required: true },
image: { type: String },
owner: { type: mongoose_1.Schema.Types.ObjectId, ref: "users" },
project: { type: mongoose_1.Schema.Types.ObjectId, ref: "projects" },
workspace: { type: mongoose_1.Schema.Types.ObjectId, ref: "workspaces" },
}, { collection: "teams", timestamps: true });