@brimble/models 2.8.9 → 2.9.1
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/compute.ts +12 -0
- package/dist/compute.js +12 -0
- package/dist/types/compute.d.ts +2 -0
- package/package.json +1 -1
- package/types/compute.ts +2 -0
package/compute.ts
CHANGED
|
@@ -2,12 +2,20 @@ import { model, Schema } from "mongoose";
|
|
|
2
2
|
import { IComputeChange } from "./types/compute";
|
|
3
3
|
|
|
4
4
|
const ComputeChangeSchema = new Schema({
|
|
5
|
+
project_name: {
|
|
6
|
+
type: String,
|
|
7
|
+
required: false,
|
|
8
|
+
},
|
|
5
9
|
project_id: {
|
|
6
10
|
type: Schema.Types.ObjectId,
|
|
7
11
|
ref: "Project",
|
|
8
12
|
required: true,
|
|
9
13
|
index: true,
|
|
10
14
|
},
|
|
15
|
+
deleted: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
default: false,
|
|
18
|
+
},
|
|
11
19
|
user_id: {
|
|
12
20
|
type: Schema.Types.ObjectId,
|
|
13
21
|
ref: "User",
|
|
@@ -52,6 +60,10 @@ const ComputeChangeSchema = new Schema({
|
|
|
52
60
|
persistentStorageCost: { type: Number, default: 0 },
|
|
53
61
|
totalCost: { type: Number, default: 0 },
|
|
54
62
|
},
|
|
63
|
+
project_deleted_at: {
|
|
64
|
+
type: Date,
|
|
65
|
+
required: false,
|
|
66
|
+
},
|
|
55
67
|
billed: {
|
|
56
68
|
type: Boolean,
|
|
57
69
|
default: false,
|
package/dist/compute.js
CHANGED
|
@@ -2,12 +2,20 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const mongoose_1 = require("mongoose");
|
|
4
4
|
const ComputeChangeSchema = new mongoose_1.Schema({
|
|
5
|
+
project_name: {
|
|
6
|
+
type: String,
|
|
7
|
+
required: false,
|
|
8
|
+
},
|
|
5
9
|
project_id: {
|
|
6
10
|
type: mongoose_1.Schema.Types.ObjectId,
|
|
7
11
|
ref: "Project",
|
|
8
12
|
required: true,
|
|
9
13
|
index: true,
|
|
10
14
|
},
|
|
15
|
+
deleted: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
default: false,
|
|
18
|
+
},
|
|
11
19
|
user_id: {
|
|
12
20
|
type: mongoose_1.Schema.Types.ObjectId,
|
|
13
21
|
ref: "User",
|
|
@@ -52,6 +60,10 @@ const ComputeChangeSchema = new mongoose_1.Schema({
|
|
|
52
60
|
persistentStorageCost: { type: Number, default: 0 },
|
|
53
61
|
totalCost: { type: Number, default: 0 },
|
|
54
62
|
},
|
|
63
|
+
project_deleted_at: {
|
|
64
|
+
type: Date,
|
|
65
|
+
required: false,
|
|
66
|
+
},
|
|
55
67
|
billed: {
|
|
56
68
|
type: Boolean,
|
|
57
69
|
default: false,
|
package/dist/types/compute.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { IUser } from "./user";
|
|
|
5
5
|
export interface IComputeChange {
|
|
6
6
|
_id?: string;
|
|
7
7
|
project_name: string;
|
|
8
|
+
deleted: boolean;
|
|
8
9
|
project_id: IProject;
|
|
9
10
|
user_id: IUser;
|
|
10
11
|
team_id?: ITeam;
|
|
@@ -31,5 +32,6 @@ export interface IComputeChange {
|
|
|
31
32
|
persistentStorageCost: number;
|
|
32
33
|
totalCost: number;
|
|
33
34
|
};
|
|
35
|
+
project_deleted_at?: Date;
|
|
34
36
|
billed: boolean;
|
|
35
37
|
}
|
package/package.json
CHANGED
package/types/compute.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { IUser } from "./user";
|
|
|
6
6
|
export interface IComputeChange {
|
|
7
7
|
_id?: string;
|
|
8
8
|
project_name: string;
|
|
9
|
+
deleted: boolean;
|
|
9
10
|
project_id: IProject;
|
|
10
11
|
user_id: IUser;
|
|
11
12
|
team_id?: ITeam;
|
|
@@ -32,5 +33,6 @@ export interface IComputeChange {
|
|
|
32
33
|
persistentStorageCost: number;
|
|
33
34
|
totalCost: number;
|
|
34
35
|
};
|
|
36
|
+
project_deleted_at?: Date;
|
|
35
37
|
billed: boolean;
|
|
36
38
|
}
|