@brimble/models 3.8.189 → 3.8.191
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.
|
@@ -22,6 +22,7 @@ const PlanConfigurationSchema = new mongoose_1.Schema({
|
|
|
22
22
|
password_enabled: { type: Boolean, required: false, default: true },
|
|
23
23
|
autoscaling_enabled: { type: Boolean, default: false, required: false },
|
|
24
24
|
region: { type: mongoose_1.Schema.Types.ObjectId, ref: "Region", required: false },
|
|
25
|
+
allowed_regions: { type: [String], required: false, default: undefined },
|
|
25
26
|
multi_region: { type: Boolean, default: false },
|
|
26
27
|
unlimited_projects: { type: Boolean, default: false },
|
|
27
28
|
ai_debug_enabled: { type: Boolean, default: false, required: false },
|
package/dist/project/index.js
CHANGED
|
@@ -7,7 +7,6 @@ const projectSchema = new mongoose_1.Schema({
|
|
|
7
7
|
name: {
|
|
8
8
|
type: String,
|
|
9
9
|
required: true,
|
|
10
|
-
unique: true,
|
|
11
10
|
},
|
|
12
11
|
uuid: Number,
|
|
13
12
|
user_id: {
|
|
@@ -283,6 +282,10 @@ const projectSchema = new mongoose_1.Schema({
|
|
|
283
282
|
type: String,
|
|
284
283
|
default: "0 0 * * * *",
|
|
285
284
|
},
|
|
285
|
+
backup_timezone: {
|
|
286
|
+
type: String,
|
|
287
|
+
default: "UTC",
|
|
288
|
+
},
|
|
286
289
|
free_tier_expires_at: {
|
|
287
290
|
type: Date,
|
|
288
291
|
default: null,
|
|
@@ -537,5 +540,15 @@ projectSchema.index({ free_tier_expires_at: 1, serviceType: 1, status: 1 }, {
|
|
|
537
540
|
partialFilterExpression: { free_tier_expires_at: { $type: "date" } },
|
|
538
541
|
name: "free_tier_lifecycle",
|
|
539
542
|
});
|
|
543
|
+
projectSchema.index({ team: 1, project_environment: 1, name: 1 }, {
|
|
544
|
+
unique: true,
|
|
545
|
+
partialFilterExpression: { team: { $type: "objectId" }, isDeleted: { $ne: true } },
|
|
546
|
+
name: "team_env_project_name",
|
|
547
|
+
});
|
|
548
|
+
projectSchema.index({ user_id: 1, project_environment: 1, name: 1 }, {
|
|
549
|
+
unique: true,
|
|
550
|
+
partialFilterExpression: { team: null, isDeleted: { $ne: true } },
|
|
551
|
+
name: "personal_env_project_name",
|
|
552
|
+
});
|
|
540
553
|
exports.default = (0, mongoose_1.model)("Project", projectSchema);
|
|
541
554
|
exports.DeletedProject = (0, mongoose_1.model)("DeletedProject", projectSchema);
|
|
@@ -78,6 +78,7 @@ export interface IProject extends Document {
|
|
|
78
78
|
backupEnabled: boolean;
|
|
79
79
|
backup_mode: "automatic" | "manual";
|
|
80
80
|
backup_schedule: string;
|
|
81
|
+
backup_timezone: string;
|
|
81
82
|
http2: boolean;
|
|
82
83
|
free_tier_expires_at?: Date | null;
|
|
83
84
|
free_tier_expiry_notified_at?: Date | null;
|