@brimble/models 2.4.2 → 2.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/project/index.js
CHANGED
|
@@ -141,6 +141,15 @@ const projectSchema = new mongoose_1.Schema({
|
|
|
141
141
|
type: Date,
|
|
142
142
|
default: null,
|
|
143
143
|
},
|
|
144
|
+
replica_ready: {
|
|
145
|
+
type: Boolean,
|
|
146
|
+
default: false
|
|
147
|
+
},
|
|
148
|
+
autoscaling_group: {
|
|
149
|
+
ref: "AutoScalingGroup",
|
|
150
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
151
|
+
required: false,
|
|
152
|
+
}
|
|
144
153
|
}, { timestamps: true });
|
|
145
154
|
exports.default = (0, mongoose_1.model)("Project", projectSchema);
|
|
146
155
|
exports.DeletedProject = (0, mongoose_1.model)("DeletedProject", projectSchema);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Document } from "mongoose";
|
|
1
|
+
import { Document, Types } from "mongoose";
|
|
2
2
|
import { GIT_TYPE, PROJECT_STATUS, ServiceType } from "../../enum";
|
|
3
3
|
import { IDomain } from "../domain";
|
|
4
4
|
import { IEnv } from "../env";
|
|
@@ -71,5 +71,7 @@ export interface IProject extends Document {
|
|
|
71
71
|
serviceType?: ServiceType;
|
|
72
72
|
last_backup_url?: string;
|
|
73
73
|
last_backup_at?: Date;
|
|
74
|
+
replica_ready: boolean;
|
|
75
|
+
autoscaling_group: Types.ObjectId;
|
|
74
76
|
isPaid: boolean;
|
|
75
77
|
}
|
package/package.json
CHANGED
package/project/index.ts
CHANGED
|
@@ -141,6 +141,15 @@ const projectSchema = new Schema(
|
|
|
141
141
|
type: Date,
|
|
142
142
|
default: null,
|
|
143
143
|
},
|
|
144
|
+
replica_ready: {
|
|
145
|
+
type: Boolean,
|
|
146
|
+
default: false
|
|
147
|
+
},
|
|
148
|
+
autoscaling_group: {
|
|
149
|
+
ref: "AutoScalingGroup",
|
|
150
|
+
type: Schema.Types.ObjectId,
|
|
151
|
+
required: false,
|
|
152
|
+
}
|
|
144
153
|
},
|
|
145
154
|
{ timestamps: true },
|
|
146
155
|
);
|
package/types/project/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Document } from "mongoose";
|
|
1
|
+
import { Document, Types } from "mongoose";
|
|
2
2
|
import { GIT_TYPE, PROJECT_STATUS, ServiceType } from "../../enum";
|
|
3
3
|
import { IDomain } from "../domain";
|
|
4
4
|
import { IEnv } from "../env";
|
|
@@ -72,5 +72,7 @@ export interface IProject extends Document {
|
|
|
72
72
|
serviceType?: ServiceType;
|
|
73
73
|
last_backup_url?: string;
|
|
74
74
|
last_backup_at?: Date;
|
|
75
|
+
replica_ready: boolean;
|
|
76
|
+
autoscaling_group: Types.ObjectId;
|
|
75
77
|
isPaid: boolean;
|
|
76
78
|
}
|