@aurispec/core-backend 1.0.34 → 1.0.35
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/database/migrations/1775435445758-modified_plans_table.d.ts +7 -0
- package/dist/database/migrations/1775435445758-modified_plans_table.d.ts.map +1 -0
- package/dist/database/migrations/1775435445758-modified_plans_table.js +19 -0
- package/dist/models/PlanModel.d.ts +1 -1
- package/dist/models/PlanModel.d.ts.map +1 -1
- package/dist/models/PlanModel.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MigrationInterface, QueryRunner } from "typeorm";
|
|
2
|
+
export declare class ModifiedPlansTable1775435445758 implements MigrationInterface {
|
|
3
|
+
name: string;
|
|
4
|
+
up(queryRunner: QueryRunner): Promise<void>;
|
|
5
|
+
down(queryRunner: QueryRunner): Promise<void>;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=1775435445758-modified_plans_table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1775435445758-modified_plans_table.d.ts","sourceRoot":"","sources":["../../../src/database/migrations/1775435445758-modified_plans_table.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE1D,qBAAa,+BAAgC,YAAW,kBAAkB;IACtE,IAAI,SAAoC;IAE3B,EAAE,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAO3C,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;CAO7D"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ModifiedPlansTable1775435445758 = void 0;
|
|
4
|
+
class ModifiedPlansTable1775435445758 {
|
|
5
|
+
name = 'ModifiedPlansTable1775435445758';
|
|
6
|
+
async up(queryRunner) {
|
|
7
|
+
await queryRunner.query(`ALTER TABLE "plan_features" ADD "admin_id" integer`);
|
|
8
|
+
await queryRunner.query(`ALTER TABLE "plans" ADD "admin_id" integer`);
|
|
9
|
+
await queryRunner.query(`CREATE TYPE "public"."plans_status_enum" AS ENUM('ACTIVE', 'INACTIVE')`);
|
|
10
|
+
await queryRunner.query(`ALTER TABLE "plans" ADD "status" "public"."plans_status_enum" NOT NULL DEFAULT 'INACTIVE'`);
|
|
11
|
+
}
|
|
12
|
+
async down(queryRunner) {
|
|
13
|
+
await queryRunner.query(`ALTER TABLE "plans" DROP COLUMN "status"`);
|
|
14
|
+
await queryRunner.query(`DROP TYPE "public"."plans_status_enum"`);
|
|
15
|
+
await queryRunner.query(`ALTER TABLE "plans" DROP COLUMN "admin_id"`);
|
|
16
|
+
await queryRunner.query(`ALTER TABLE "plan_features" DROP COLUMN "admin_id"`);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.ModifiedPlansTable1775435445758 = ModifiedPlansTable1775435445758;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UserModel } from "./UserModel";
|
|
2
2
|
import { PlanFeatureModel } from "./PlanFeatureModel";
|
|
3
3
|
import { BaseModel } from "./BaseModel";
|
|
4
|
-
import { STATUS } from "
|
|
4
|
+
import { STATUS } from "../common/enums";
|
|
5
5
|
export declare class PlanModel extends BaseModel {
|
|
6
6
|
name: string;
|
|
7
7
|
monthly: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlanModel.d.ts","sourceRoot":"","sources":["../../src/models/PlanModel.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AACtC,OAAO,EAAC,gBAAgB,EAAC,MAAO,oBAAoB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"PlanModel.d.ts","sourceRoot":"","sources":["../../src/models/PlanModel.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AACtC,OAAO,EAAC,gBAAgB,EAAC,MAAO,oBAAoB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,qBAEa,SAAU,SAAQ,SAAS;IAEtC,IAAI,EAAG,MAAM,CAAC;IAGd,OAAO,EAAG,MAAM,CAAC;IAGjB,MAAM,EAAG,MAAM,CAAC;IAGhB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,QAAQ,EAAG,MAAM,CAAC;IAOlB,MAAM,EAAG,MAAM,CAAC;IAGhB,WAAW,EAAG,MAAM,CAAC;IAGrB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAGlC,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAGjC,KAAK,EAAG,SAAS,EAAE,CAAC;IAGpB,YAAY,EAAG,gBAAgB,EAAE,CAAC;CACnC"}
|
package/dist/models/PlanModel.js
CHANGED
|
@@ -14,7 +14,7 @@ const typeorm_1 = require("typeorm");
|
|
|
14
14
|
const UserModel_1 = require("./UserModel");
|
|
15
15
|
const PlanFeatureModel_1 = require("./PlanFeatureModel");
|
|
16
16
|
const BaseModel_1 = require("./BaseModel");
|
|
17
|
-
const enums_1 = require("
|
|
17
|
+
const enums_1 = require("../common/enums");
|
|
18
18
|
let PlanModel = class PlanModel extends BaseModel_1.BaseModel {
|
|
19
19
|
name;
|
|
20
20
|
monthly;
|