@brimble/models 3.7.5 → 3.7.6
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.
|
@@ -18,5 +18,10 @@ const loadBalancerPortSchema = new mongoose_1.Schema({
|
|
|
18
18
|
ref: "Project",
|
|
19
19
|
required: true,
|
|
20
20
|
},
|
|
21
|
+
region_id: {
|
|
22
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
23
|
+
ref: "Region",
|
|
24
|
+
required: true,
|
|
25
|
+
},
|
|
21
26
|
}, { timestamps: true });
|
|
22
27
|
exports.default = (0, mongoose_1.model)("LoadBalancerPort", loadBalancerPortSchema, "load_balancer_ports");
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { Document } from "mongoose";
|
|
2
2
|
import { IProject } from "./project";
|
|
3
|
+
import { IRegion } from "./region";
|
|
3
4
|
import { IServer } from "./server";
|
|
4
5
|
export interface ILoadBalancerPort extends Document {
|
|
5
6
|
port: number;
|
|
6
7
|
server_id: IServer;
|
|
7
8
|
project_id: IProject;
|
|
9
|
+
region_id: IRegion;
|
|
8
10
|
createdAt: Date;
|
|
9
11
|
updatedAt: Date;
|
|
10
12
|
}
|
package/load-balancer-port.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { Document } from "mongoose";
|
|
2
2
|
import { IProject } from "./project";
|
|
3
|
+
import { IRegion } from "./region";
|
|
3
4
|
import { IServer } from "./server";
|
|
4
5
|
|
|
5
6
|
export interface ILoadBalancerPort extends Document {
|
|
6
7
|
port: number;
|
|
7
8
|
server_id: IServer;
|
|
8
9
|
project_id: IProject;
|
|
10
|
+
region_id: IRegion;
|
|
9
11
|
createdAt: Date;
|
|
10
12
|
updatedAt: Date;
|
|
11
13
|
}
|