This commit is contained in:
Andras Bacsai
2021-05-16 21:54:44 +02:00
committed by GitHub
parent 23a4ebb74a
commit adcd68c1ab
68 changed files with 2466 additions and 1194 deletions

17
src/models/Deployment.ts Normal file
View File

@@ -0,0 +1,17 @@
import mongoose from 'mongoose';
const { Schema } = mongoose;
const DeploymentSchema = new Schema({
deployId: { type: String, required: true },
nickname: { type: String, required: true },
repoId: { type: Number, required: true },
organization: { type: String, required: true },
name: { type: String, required: true },
branch: { type: String, required: true },
domain: { type: String, required: true },
progress: { type: String, require: true, default: 'queued' }
});
DeploymentSchema.set('timestamps', true);
export default mongoose.models['deployment'] || mongoose.model('deployment', DeploymentSchema);