@brimble/models 1.5.30 → 1.5.31

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.
@@ -1 +0,0 @@
1
- $ rm -rf dist && tsc -p .
package/brimble.json DELETED
@@ -1,3 +0,0 @@
1
- {
2
- "project": {}
3
- }
package/dist/tenancy.d.ts DELETED
@@ -1,4 +0,0 @@
1
- /// <reference types="mongoose" />
2
- import { ITenancy } from "./types";
3
- declare const _default: import("mongoose").Model<ITenancy, {}, {}>;
4
- export default _default;
package/dist/tenancy.js DELETED
@@ -1,32 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const mongoose_1 = require("mongoose");
4
- const tenancySchema = new mongoose_1.Schema({
5
- user: {
6
- type: mongoose_1.Schema.Types.ObjectId,
7
- ref: "User",
8
- required: true,
9
- },
10
- team: {
11
- ref: "Team",
12
- type: mongoose_1.Schema.Types.ObjectId,
13
- },
14
- server: {
15
- type: mongoose_1.Schema.Types.ObjectId,
16
- ref: "Server",
17
- required: true,
18
- },
19
- username: {
20
- type: String,
21
- required: true,
22
- },
23
- password: {
24
- type: String,
25
- required: true,
26
- },
27
- is_activated: {
28
- type: Boolean,
29
- default: false,
30
- },
31
- }, { timestamps: true });
32
- exports.default = (0, mongoose_1.model)("Tenancy", tenancySchema);
@@ -1,13 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { IServer } from "./server";
3
- import { ITeam } from "./team";
4
- import { IUser } from "./user";
5
- export interface ITenancy extends Document {
6
- user: IUser;
7
- team: ITeam;
8
- server: IServer;
9
- username: string;
10
- password: string;
11
- is_activated: boolean;
12
- directory: string;
13
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
package/tenancy.ts DELETED
@@ -1,36 +0,0 @@
1
- import { model, Schema } from "mongoose";
2
- import { ITenancy } from "./types";
3
-
4
- const tenancySchema = new Schema(
5
- {
6
- user: {
7
- type: Schema.Types.ObjectId,
8
- ref: "User",
9
- required: true,
10
- },
11
- team: {
12
- ref: "Team",
13
- type: Schema.Types.ObjectId,
14
- },
15
- server: {
16
- type: Schema.Types.ObjectId,
17
- ref: "Server",
18
- required: true,
19
- },
20
- username: {
21
- type: String,
22
- required: true,
23
- },
24
- password: {
25
- type: String,
26
- required: true,
27
- },
28
- is_activated: {
29
- type: Boolean,
30
- default: false,
31
- },
32
- },
33
- { timestamps: true },
34
- );
35
-
36
- export default model<ITenancy>("Tenancy", tenancySchema);
package/types/tenancy.ts DELETED
@@ -1,20 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { IServer } from "./server";
3
- import { ITeam } from "./team";
4
- import { IUser } from "./user";
5
-
6
- export interface ITenancy extends Document {
7
- user: IUser;
8
-
9
- team: ITeam;
10
-
11
- server: IServer;
12
-
13
- username: string;
14
-
15
- password: string;
16
-
17
- is_activated: boolean;
18
-
19
- directory: string;
20
- }