@reachu/database 1.0.14 → 1.0.16

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.
Files changed (74) hide show
  1. package/dist/entity/modules/templates/AuthInfo.d.ts +14 -0
  2. package/dist/entity/modules/templates/AuthInfo.js +63 -0
  3. package/dist/entity/modules/templates/AuthInfo.js.map +1 -0
  4. package/dist/entity/modules/templates/AuthMethod.d.ts +8 -0
  5. package/dist/entity/modules/templates/AuthMethod.js +42 -0
  6. package/dist/entity/modules/templates/AuthMethod.js.map +1 -0
  7. package/dist/entity/modules/templates/AuthMethodTemplateChannel.d.ts +14 -0
  8. package/dist/entity/modules/templates/AuthMethodTemplateChannel.js +66 -0
  9. package/dist/entity/modules/templates/AuthMethodTemplateChannel.js.map +1 -0
  10. package/dist/entity/modules/templates/EndpointTemplateChannel.d.ts +7 -0
  11. package/dist/entity/modules/templates/EndpointTemplateChannel.js +37 -0
  12. package/dist/entity/modules/templates/EndpointTemplateChannel.js.map +1 -0
  13. package/dist/entity/modules/templates/TemplateChannel.d.ts +27 -0
  14. package/dist/entity/modules/templates/TemplateChannel.js +126 -0
  15. package/dist/entity/modules/templates/TemplateChannel.js.map +1 -0
  16. package/dist/entity/modules/templates/UserTemplateChannel.d.ts +13 -0
  17. package/dist/entity/modules/templates/UserTemplateChannel.js +57 -0
  18. package/dist/entity/modules/templates/UserTemplateChannel.js.map +1 -0
  19. package/dist/entity/modules/templates/schemeOrder/ReachuSchemeConfigOrder.d.ts +12 -0
  20. package/dist/entity/modules/templates/schemeOrder/ReachuSchemeConfigOrder.js +56 -0
  21. package/dist/entity/modules/templates/schemeOrder/ReachuSchemeConfigOrder.js.map +1 -0
  22. package/dist/entity/modules/templates/schemeOrder/TemplateChannelSchemeConfigOrder.d.ts +12 -0
  23. package/dist/entity/modules/templates/schemeOrder/TemplateChannelSchemeConfigOrder.js +56 -0
  24. package/dist/entity/modules/templates/schemeOrder/TemplateChannelSchemeConfigOrder.js.map +1 -0
  25. package/dist/entity/modules/templates/schemeOrder/TemplateChannelSchemeConfigOrderMapped.d.ts +12 -0
  26. package/dist/entity/modules/templates/schemeOrder/TemplateChannelSchemeConfigOrderMapped.js +56 -0
  27. package/dist/entity/modules/templates/schemeOrder/TemplateChannelSchemeConfigOrderMapped.js.map +1 -0
  28. package/dist/entity/modules/templates/schemeProduct/ReachuSchemeConfigProduct.d.ts +12 -0
  29. package/dist/entity/modules/templates/schemeProduct/ReachuSchemeConfigProduct.js +56 -0
  30. package/dist/entity/modules/templates/schemeProduct/ReachuSchemeConfigProduct.js.map +1 -0
  31. package/dist/entity/modules/templates/schemeProduct/TemplateChannelSchemeConfigProduct.d.ts +11 -0
  32. package/dist/entity/modules/templates/schemeProduct/TemplateChannelSchemeConfigProduct.js +52 -0
  33. package/dist/entity/modules/templates/schemeProduct/TemplateChannelSchemeConfigProduct.js.map +1 -0
  34. package/dist/entity/modules/templates/schemeProduct/TemplateChannelSchemeConfigProductMapped.d.ts +11 -0
  35. package/dist/entity/modules/templates/schemeProduct/TemplateChannelSchemeConfigProductMapped.js +52 -0
  36. package/dist/entity/modules/templates/schemeProduct/TemplateChannelSchemeConfigProductMapped.js.map +1 -0
  37. package/dist/entity/modules/templates/schemeVariant/ReachuSchemeConfigVariant.d.ts +12 -0
  38. package/dist/entity/modules/templates/schemeVariant/ReachuSchemeConfigVariant.js +56 -0
  39. package/dist/entity/modules/templates/schemeVariant/ReachuSchemeConfigVariant.js.map +1 -0
  40. package/dist/entity/modules/templates/schemeVariant/TemplateChannelSchemeConfigVariant.d.ts +12 -0
  41. package/dist/entity/modules/templates/schemeVariant/TemplateChannelSchemeConfigVariant.js +56 -0
  42. package/dist/entity/modules/templates/schemeVariant/TemplateChannelSchemeConfigVariant.js.map +1 -0
  43. package/dist/entity/modules/templates/schemeVariant/TemplateChannelSchemeConfigVariantMapped.d.ts +12 -0
  44. package/dist/entity/modules/templates/schemeVariant/TemplateChannelSchemeConfigVariantMapped.js +56 -0
  45. package/dist/entity/modules/templates/schemeVariant/TemplateChannelSchemeConfigVariantMapped.js.map +1 -0
  46. package/dist/migrations/1680581444059-template.d.ts +6 -0
  47. package/dist/migrations/1680581444059-template.js +111 -0
  48. package/dist/migrations/1680581444059-template.js.map +1 -0
  49. package/dist/repositories/index.d.ts +2 -0
  50. package/dist/repositories/index.js +17 -1
  51. package/dist/repositories/index.js.map +1 -1
  52. package/dist/repositories/templates/index.d.ts +46 -0
  53. package/dist/repositories/templates/index.js +119 -0
  54. package/dist/repositories/templates/index.js.map +1 -0
  55. package/dist/tsconfig.tsbuildinfo +335 -4
  56. package/package.json +3 -3
  57. package/src/entity/modules/templates/AuthInfo.ts +48 -0
  58. package/src/entity/modules/templates/AuthMethod.ts +24 -0
  59. package/src/entity/modules/templates/AuthMethodTemplateChannel.ts +52 -0
  60. package/src/entity/modules/templates/EndpointTemplateChannel.ts +27 -0
  61. package/src/entity/modules/templates/TemplateChannel.ts +155 -0
  62. package/src/entity/modules/templates/UserTemplateChannel.ts +51 -0
  63. package/src/entity/modules/templates/schemeOrder/ReachuSchemeConfigOrder.ts +43 -0
  64. package/src/entity/modules/templates/schemeOrder/TemplateChannelSchemeConfigOrder.ts +44 -0
  65. package/src/entity/modules/templates/schemeOrder/TemplateChannelSchemeConfigOrderMapped.ts +43 -0
  66. package/src/entity/modules/templates/schemeProduct/ReachuSchemeConfigProduct.ts +43 -0
  67. package/src/entity/modules/templates/schemeProduct/TemplateChannelSchemeConfigProduct.ts +40 -0
  68. package/src/entity/modules/templates/schemeProduct/TemplateChannelSchemeConfigProductMapped.ts +40 -0
  69. package/src/entity/modules/templates/schemeVariant/ReachuSchemeConfigVariant.ts +44 -0
  70. package/src/entity/modules/templates/schemeVariant/TemplateChannelSchemeConfigVariant.ts +44 -0
  71. package/src/entity/modules/templates/schemeVariant/TemplateChannelSchemeConfigVariantMapped.ts +44 -0
  72. package/src/migrations/1680581444059-template.ts +96 -0
  73. package/src/repositories/index.ts +36 -0
  74. package/src/repositories/templates/index.ts +64 -0
@@ -0,0 +1,96 @@
1
+ import {MigrationInterface, QueryRunner} from "typeorm";
2
+
3
+ export class template1680581444059 implements MigrationInterface {
4
+ name = 'template1680581444059'
5
+
6
+ public async up(queryRunner: QueryRunner): Promise<void> {
7
+ await queryRunner.query(`CREATE TABLE \`auth_method\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`name\` varchar(255) NOT NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
8
+ await queryRunner.query(`CREATE TABLE \`endpoint_template_channel\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`user_template_channel_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
9
+ await queryRunner.query(`CREATE TABLE \`user_template_channel\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`user_id\` int NULL, \`auth_info_id\` int NULL, \`template_channel_id\` int NULL, UNIQUE INDEX \`REL_455258feb4a200be5c8a70b339\` (\`auth_info_id\`), PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
10
+ await queryRunner.query(`CREATE TABLE \`reachu_scheme_config_product\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`name\` varchar(255) NULL, \`url\` varchar(255) NULL, \`version\` int NULL, \`user_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
11
+ await queryRunner.query(`CREATE TABLE \`template_channel_scheme_config_product\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`url\` varchar(255) NULL, \`version\` int NULL, \`user_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
12
+ await queryRunner.query(`CREATE TABLE \`template_channel_scheme_config_product_mapped\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`url\` varchar(255) NULL, \`version\` int NULL, \`user_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
13
+ await queryRunner.query(`CREATE TABLE \`reachu_scheme_config_variant\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`name\` varchar(255) NULL, \`url\` varchar(255) NULL, \`version\` int NULL, \`user_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
14
+ await queryRunner.query(`CREATE TABLE \`template_channel_scheme_config_variant\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`name\` varchar(255) NULL, \`url\` varchar(255) NULL, \`version\` int NULL, \`user_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
15
+ await queryRunner.query(`CREATE TABLE \`template_channel_scheme_config_variant_mapped\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`name\` varchar(255) NULL, \`url\` varchar(255) NULL, \`version\` int NULL, \`user_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
16
+ await queryRunner.query(`CREATE TABLE \`reachu_scheme_config_order\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`name\` varchar(255) NULL, \`url\` varchar(255) NULL, \`version\` int NULL, \`user_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
17
+ await queryRunner.query(`CREATE TABLE \`template_channel_scheme_config_order\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`name\` varchar(255) NULL, \`url\` varchar(255) NULL, \`version\` int NULL, \`user_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
18
+ await queryRunner.query(`CREATE TABLE \`template_channel_scheme_config_order_mapped\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`name\` varchar(255) NULL, \`url\` varchar(255) NULL, \`version\` int NULL, \`user_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
19
+ await queryRunner.query(`CREATE TABLE \`template_channel\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`auth_method_template_channel_id\` int NULL, \`reachu_scheme_config_product_id\` int NULL, \`template_channel_scheme_config_product_id\` int NULL, \`template_channel_scheme_config_product_mapped_id\` int NULL, \`reachu_scheme_config_variant_id\` int NULL, \`template_channel_scheme_config_variant_id\` int NULL, \`template_channel_scheme_config_variant_mapped_id\` int NULL, \`reachu_scheme_config_order_id\` int NULL, \`template_channel_scheme_config_order_id\` int NULL, \`template_channel_scheme_config_order_mapped_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
20
+ await queryRunner.query(`CREATE TABLE \`auth_method_template_channel\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`url\` varchar(255) NOT NULL, \`connection\` tinyint NOT NULL DEFAULT 0, \`response\` varchar(21844) NULL, \`auth_method_id\` int NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
21
+ await queryRunner.query(`CREATE TABLE \`auth_info\` (\`created_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), \`updated_at\` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), \`id\` int NOT NULL AUTO_INCREMENT, \`deleted_at\` datetime(6) NULL, \`token\` varchar(255) NULL, \`api_key\` varchar(255) NULL, \`basic\` varchar(255) NULL, \`public_key\` varchar(255) NULL, \`private_key\` varchar(255) NULL, \`auth_method_template_channel_id\` int NULL, \`user_template_channel_id\` int NULL, UNIQUE INDEX \`REL_683d04174f79d63872cd9abbfd\` (\`user_template_channel_id\`), PRIMARY KEY (\`id\`)) ENGINE=InnoDB`);
22
+ await queryRunner.query(`ALTER TABLE \`endpoint_template_channel\` ADD CONSTRAINT \`FK_cbd08f071be55e529553f09f874\` FOREIGN KEY (\`user_template_channel_id\`) REFERENCES \`user_template_channel\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
23
+ await queryRunner.query(`ALTER TABLE \`user_template_channel\` ADD CONSTRAINT \`FK_114bc8cb4e46a50e8a9626355a7\` FOREIGN KEY (\`user_id\`) REFERENCES \`user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
24
+ await queryRunner.query(`ALTER TABLE \`user_template_channel\` ADD CONSTRAINT \`FK_455258feb4a200be5c8a70b339e\` FOREIGN KEY (\`auth_info_id\`) REFERENCES \`auth_info\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
25
+ await queryRunner.query(`ALTER TABLE \`user_template_channel\` ADD CONSTRAINT \`FK_912b09a7728135878db3b33de92\` FOREIGN KEY (\`template_channel_id\`) REFERENCES \`template_channel\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
26
+ await queryRunner.query(`ALTER TABLE \`reachu_scheme_config_product\` ADD CONSTRAINT \`FK_80ec149ced8f257a6434c1fdc4e\` FOREIGN KEY (\`user_id\`) REFERENCES \`user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
27
+ await queryRunner.query(`ALTER TABLE \`template_channel_scheme_config_product\` ADD CONSTRAINT \`FK_4e6c0da15fcb5bf8b74f844648b\` FOREIGN KEY (\`user_id\`) REFERENCES \`user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
28
+ await queryRunner.query(`ALTER TABLE \`template_channel_scheme_config_product_mapped\` ADD CONSTRAINT \`FK_82186c0f4a69ee515391e82c1da\` FOREIGN KEY (\`user_id\`) REFERENCES \`user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
29
+ await queryRunner.query(`ALTER TABLE \`reachu_scheme_config_variant\` ADD CONSTRAINT \`FK_a550af3fd83c3ca772283b1129e\` FOREIGN KEY (\`user_id\`) REFERENCES \`user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
30
+ await queryRunner.query(`ALTER TABLE \`template_channel_scheme_config_variant\` ADD CONSTRAINT \`FK_e7aa7e20a010421f18a9f6c3bdd\` FOREIGN KEY (\`user_id\`) REFERENCES \`user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
31
+ await queryRunner.query(`ALTER TABLE \`template_channel_scheme_config_variant_mapped\` ADD CONSTRAINT \`FK_5ca9c77d9515b7765e9673e3126\` FOREIGN KEY (\`user_id\`) REFERENCES \`user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
32
+ await queryRunner.query(`ALTER TABLE \`reachu_scheme_config_order\` ADD CONSTRAINT \`FK_2ed80e8cd6250b31a68accbfe82\` FOREIGN KEY (\`user_id\`) REFERENCES \`user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
33
+ await queryRunner.query(`ALTER TABLE \`template_channel_scheme_config_order\` ADD CONSTRAINT \`FK_763d49a32a0c34f6767f794eb78\` FOREIGN KEY (\`user_id\`) REFERENCES \`user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
34
+ await queryRunner.query(`ALTER TABLE \`template_channel_scheme_config_order_mapped\` ADD CONSTRAINT \`FK_94f86aa13c2f3a48f2bb48f0e6e\` FOREIGN KEY (\`user_id\`) REFERENCES \`user\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
35
+ await queryRunner.query(`ALTER TABLE \`template_channel\` ADD CONSTRAINT \`FK_326d68a0e78903191bed82d0bff\` FOREIGN KEY (\`auth_method_template_channel_id\`) REFERENCES \`auth_method_template_channel\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
36
+ await queryRunner.query(`ALTER TABLE \`template_channel\` ADD CONSTRAINT \`FK_207386be2462e09d61c1353426e\` FOREIGN KEY (\`reachu_scheme_config_product_id\`) REFERENCES \`reachu_scheme_config_product\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
37
+ await queryRunner.query(`ALTER TABLE \`template_channel\` ADD CONSTRAINT \`FK_3b8814a4f6dfa52d58bd183ef55\` FOREIGN KEY (\`template_channel_scheme_config_product_id\`) REFERENCES \`template_channel_scheme_config_product\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
38
+ await queryRunner.query(`ALTER TABLE \`template_channel\` ADD CONSTRAINT \`FK_316373936bf596a2967bf9675c2\` FOREIGN KEY (\`template_channel_scheme_config_product_mapped_id\`) REFERENCES \`template_channel_scheme_config_product_mapped\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
39
+ await queryRunner.query(`ALTER TABLE \`template_channel\` ADD CONSTRAINT \`FK_c9aee887bb40cccca88e89dc18b\` FOREIGN KEY (\`reachu_scheme_config_variant_id\`) REFERENCES \`reachu_scheme_config_variant\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
40
+ await queryRunner.query(`ALTER TABLE \`template_channel\` ADD CONSTRAINT \`FK_d38276429b2cb065bf67871cb1a\` FOREIGN KEY (\`template_channel_scheme_config_variant_id\`) REFERENCES \`template_channel_scheme_config_variant\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
41
+ await queryRunner.query(`ALTER TABLE \`template_channel\` ADD CONSTRAINT \`FK_2ad9c7fead69a170d00ad6d24b1\` FOREIGN KEY (\`template_channel_scheme_config_variant_mapped_id\`) REFERENCES \`template_channel_scheme_config_variant_mapped\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
42
+ await queryRunner.query(`ALTER TABLE \`template_channel\` ADD CONSTRAINT \`FK_5d66d1af47756bbaa1f55ba2833\` FOREIGN KEY (\`reachu_scheme_config_order_id\`) REFERENCES \`reachu_scheme_config_order\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
43
+ await queryRunner.query(`ALTER TABLE \`template_channel\` ADD CONSTRAINT \`FK_fe06e511a45ea175c5b144376f3\` FOREIGN KEY (\`template_channel_scheme_config_order_id\`) REFERENCES \`template_channel_scheme_config_order\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
44
+ await queryRunner.query(`ALTER TABLE \`template_channel\` ADD CONSTRAINT \`FK_86aaea9dfc68a30288195d69560\` FOREIGN KEY (\`template_channel_scheme_config_order_mapped_id\`) REFERENCES \`template_channel_scheme_config_order_mapped\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
45
+ await queryRunner.query(`ALTER TABLE \`auth_method_template_channel\` ADD CONSTRAINT \`FK_023d8f31e6c39f54ce7c73c2692\` FOREIGN KEY (\`auth_method_id\`) REFERENCES \`auth_method\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
46
+ await queryRunner.query(`ALTER TABLE \`auth_info\` ADD CONSTRAINT \`FK_857c2457632fd40c3b44fcff4cc\` FOREIGN KEY (\`auth_method_template_channel_id\`) REFERENCES \`auth_method_template_channel\`(\`id\`) ON DELETE CASCADE ON UPDATE NO ACTION`);
47
+ await queryRunner.query(`ALTER TABLE \`auth_info\` ADD CONSTRAINT \`FK_683d04174f79d63872cd9abbfd2\` FOREIGN KEY (\`user_template_channel_id\`) REFERENCES \`user_template_channel\`(\`id\`) ON DELETE NO ACTION ON UPDATE NO ACTION`);
48
+ }
49
+
50
+ public async down(queryRunner: QueryRunner): Promise<void> {
51
+ await queryRunner.query(`ALTER TABLE \`auth_info\` DROP FOREIGN KEY \`FK_683d04174f79d63872cd9abbfd2\``);
52
+ await queryRunner.query(`ALTER TABLE \`auth_info\` DROP FOREIGN KEY \`FK_857c2457632fd40c3b44fcff4cc\``);
53
+ await queryRunner.query(`ALTER TABLE \`auth_method_template_channel\` DROP FOREIGN KEY \`FK_023d8f31e6c39f54ce7c73c2692\``);
54
+ await queryRunner.query(`ALTER TABLE \`template_channel\` DROP FOREIGN KEY \`FK_86aaea9dfc68a30288195d69560\``);
55
+ await queryRunner.query(`ALTER TABLE \`template_channel\` DROP FOREIGN KEY \`FK_fe06e511a45ea175c5b144376f3\``);
56
+ await queryRunner.query(`ALTER TABLE \`template_channel\` DROP FOREIGN KEY \`FK_5d66d1af47756bbaa1f55ba2833\``);
57
+ await queryRunner.query(`ALTER TABLE \`template_channel\` DROP FOREIGN KEY \`FK_2ad9c7fead69a170d00ad6d24b1\``);
58
+ await queryRunner.query(`ALTER TABLE \`template_channel\` DROP FOREIGN KEY \`FK_d38276429b2cb065bf67871cb1a\``);
59
+ await queryRunner.query(`ALTER TABLE \`template_channel\` DROP FOREIGN KEY \`FK_c9aee887bb40cccca88e89dc18b\``);
60
+ await queryRunner.query(`ALTER TABLE \`template_channel\` DROP FOREIGN KEY \`FK_316373936bf596a2967bf9675c2\``);
61
+ await queryRunner.query(`ALTER TABLE \`template_channel\` DROP FOREIGN KEY \`FK_3b8814a4f6dfa52d58bd183ef55\``);
62
+ await queryRunner.query(`ALTER TABLE \`template_channel\` DROP FOREIGN KEY \`FK_207386be2462e09d61c1353426e\``);
63
+ await queryRunner.query(`ALTER TABLE \`template_channel\` DROP FOREIGN KEY \`FK_326d68a0e78903191bed82d0bff\``);
64
+ await queryRunner.query(`ALTER TABLE \`template_channel_scheme_config_order_mapped\` DROP FOREIGN KEY \`FK_94f86aa13c2f3a48f2bb48f0e6e\``);
65
+ await queryRunner.query(`ALTER TABLE \`template_channel_scheme_config_order\` DROP FOREIGN KEY \`FK_763d49a32a0c34f6767f794eb78\``);
66
+ await queryRunner.query(`ALTER TABLE \`reachu_scheme_config_order\` DROP FOREIGN KEY \`FK_2ed80e8cd6250b31a68accbfe82\``);
67
+ await queryRunner.query(`ALTER TABLE \`template_channel_scheme_config_variant_mapped\` DROP FOREIGN KEY \`FK_5ca9c77d9515b7765e9673e3126\``);
68
+ await queryRunner.query(`ALTER TABLE \`template_channel_scheme_config_variant\` DROP FOREIGN KEY \`FK_e7aa7e20a010421f18a9f6c3bdd\``);
69
+ await queryRunner.query(`ALTER TABLE \`reachu_scheme_config_variant\` DROP FOREIGN KEY \`FK_a550af3fd83c3ca772283b1129e\``);
70
+ await queryRunner.query(`ALTER TABLE \`template_channel_scheme_config_product_mapped\` DROP FOREIGN KEY \`FK_82186c0f4a69ee515391e82c1da\``);
71
+ await queryRunner.query(`ALTER TABLE \`template_channel_scheme_config_product\` DROP FOREIGN KEY \`FK_4e6c0da15fcb5bf8b74f844648b\``);
72
+ await queryRunner.query(`ALTER TABLE \`reachu_scheme_config_product\` DROP FOREIGN KEY \`FK_80ec149ced8f257a6434c1fdc4e\``);
73
+ await queryRunner.query(`ALTER TABLE \`user_template_channel\` DROP FOREIGN KEY \`FK_912b09a7728135878db3b33de92\``);
74
+ await queryRunner.query(`ALTER TABLE \`user_template_channel\` DROP FOREIGN KEY \`FK_455258feb4a200be5c8a70b339e\``);
75
+ await queryRunner.query(`ALTER TABLE \`user_template_channel\` DROP FOREIGN KEY \`FK_114bc8cb4e46a50e8a9626355a7\``);
76
+ await queryRunner.query(`ALTER TABLE \`endpoint_template_channel\` DROP FOREIGN KEY \`FK_cbd08f071be55e529553f09f874\``);
77
+ await queryRunner.query(`DROP INDEX \`REL_683d04174f79d63872cd9abbfd\` ON \`auth_info\``);
78
+ await queryRunner.query(`DROP TABLE \`auth_info\``);
79
+ await queryRunner.query(`DROP TABLE \`auth_method_template_channel\``);
80
+ await queryRunner.query(`DROP TABLE \`template_channel\``);
81
+ await queryRunner.query(`DROP TABLE \`template_channel_scheme_config_order_mapped\``);
82
+ await queryRunner.query(`DROP TABLE \`template_channel_scheme_config_order\``);
83
+ await queryRunner.query(`DROP TABLE \`reachu_scheme_config_order\``);
84
+ await queryRunner.query(`DROP TABLE \`template_channel_scheme_config_variant_mapped\``);
85
+ await queryRunner.query(`DROP TABLE \`template_channel_scheme_config_variant\``);
86
+ await queryRunner.query(`DROP TABLE \`reachu_scheme_config_variant\``);
87
+ await queryRunner.query(`DROP TABLE \`template_channel_scheme_config_product_mapped\``);
88
+ await queryRunner.query(`DROP TABLE \`template_channel_scheme_config_product\``);
89
+ await queryRunner.query(`DROP TABLE \`reachu_scheme_config_product\``);
90
+ await queryRunner.query(`DROP INDEX \`REL_455258feb4a200be5c8a70b339\` ON \`user_template_channel\``);
91
+ await queryRunner.query(`DROP TABLE \`user_template_channel\``);
92
+ await queryRunner.query(`DROP TABLE \`endpoint_template_channel\``);
93
+ await queryRunner.query(`DROP TABLE \`auth_method\``);
94
+ }
95
+
96
+ }
@@ -70,6 +70,24 @@ import {
70
70
  ShippingRepository,
71
71
  } from './shipping';
72
72
 
73
+ import {
74
+ AuthInfoRepository,
75
+ AuthMethodRepository,
76
+ AuthMethodTemplateChannelRepository,
77
+ EndpointTemplateChannelRepository,
78
+ ReachuSchemeConfigOrderRepository,
79
+ ReachuSchemeConfigProductRepository,
80
+ ReachuSchemeConfigVariantRepository,
81
+ TemplateChannelRepository,
82
+ TemplateChannelSchemeConfigOrderMappedRepository,
83
+ TemplateChannelSchemeConfigOrderRepository,
84
+ TemplateChannelSchemeConfigProductMappedRepository,
85
+ TemplateChannelSchemeConfigProductRepository,
86
+ TemplateChannelSchemeConfigVariantMappedRepository,
87
+ TemplateChannelSchemeConfigVariantRepository,
88
+ UserTemplateChannelRepository,
89
+ } from './templates';
90
+
73
91
  import { Repository, EntityRepository } from 'typeorm';
74
92
 
75
93
  @EntityRepository(CategoryImages)
@@ -243,4 +261,22 @@ export {
243
261
  PriceDataRepository,
244
262
  };
245
263
 
264
+ export {
265
+ AuthInfoRepository,
266
+ AuthMethodRepository,
267
+ AuthMethodTemplateChannelRepository,
268
+ EndpointTemplateChannelRepository,
269
+ ReachuSchemeConfigOrderRepository,
270
+ ReachuSchemeConfigProductRepository,
271
+ ReachuSchemeConfigVariantRepository,
272
+ TemplateChannelRepository,
273
+ TemplateChannelSchemeConfigOrderMappedRepository,
274
+ TemplateChannelSchemeConfigOrderRepository,
275
+ TemplateChannelSchemeConfigProductMappedRepository,
276
+ TemplateChannelSchemeConfigProductRepository,
277
+ TemplateChannelSchemeConfigVariantMappedRepository,
278
+ TemplateChannelSchemeConfigVariantRepository,
279
+ UserTemplateChannelRepository,
280
+ };
281
+
246
282
  export { ProductShippingRepository, ShippingCountryRepository, ShippingRepository };
@@ -0,0 +1,64 @@
1
+ import { EntityRepository, Repository } from 'typeorm';
2
+ import AuthInfo from '../../entity/modules//templates/AuthInfo';
3
+ import AuthMethod from 'src/entity/modules/templates/AuthMethod';
4
+ import AuthMethodTemplateChannel from 'src/entity/modules/templates/AuthMethodTemplateChannel';
5
+ import EndpointTemplateChannel from 'src/entity/modules/templates/EndpointTemplateChannel';
6
+ import TemplateChannel from 'src/entity/modules/templates/TemplateChannel';
7
+ import UserTemplateChannel from 'src/entity/modules/templates/UserTemplateChannel';
8
+
9
+ import ReachuSchemeConfigOrder from 'src/entity/modules/templates/schemeOrder/ReachuSchemeConfigOrder';
10
+ import TemplateChannelSchemeConfigOrder from 'src/entity/modules/templates/schemeOrder/TemplateChannelSchemeConfigOrder';
11
+ import TemplateChannelSchemeConfigOrderMapped from 'src/entity/modules/templates/schemeOrder/TemplateChannelSchemeConfigOrderMapped';
12
+
13
+ import ReachuSchemeConfigProduct from 'src/entity/modules/templates/schemeProduct/ReachuSchemeConfigProduct';
14
+ import TemplateChannelSchemeConfigProduct from 'src/entity/modules/templates/schemeProduct/TemplateChannelSchemeConfigProduct';
15
+ import TemplateChannelSchemeConfigProductMapped from 'src/entity/modules/templates/schemeProduct/TemplateChannelSchemeConfigProductMapped';
16
+
17
+ import ReachuSchemeConfigVariant from 'src/entity/modules/templates/schemeVariant/ReachuSchemeConfigVariant';
18
+ import TemplateChannelSchemeConfigVariant from 'src/entity/modules/templates/schemeVariant/TemplateChannelSchemeConfigVariant';
19
+ import TemplateChannelSchemeConfigVariantMapped from 'src/entity/modules/templates/schemeVariant/TemplateChannelSchemeConfigVariantMapped';
20
+
21
+ @EntityRepository(AuthInfo)
22
+ export class AuthInfoRepository extends Repository<AuthInfo> {}
23
+
24
+ @EntityRepository(AuthMethod)
25
+ export class AuthMethodRepository extends Repository<AuthMethod> {}
26
+
27
+ @EntityRepository(AuthMethodTemplateChannel)
28
+ export class AuthMethodTemplateChannelRepository extends Repository<AuthMethodTemplateChannel> {}
29
+
30
+ @EntityRepository(EndpointTemplateChannel)
31
+ export class EndpointTemplateChannelRepository extends Repository<EndpointTemplateChannel> {}
32
+
33
+ @EntityRepository(TemplateChannel)
34
+ export class TemplateChannelRepository extends Repository<TemplateChannel> {}
35
+
36
+ @EntityRepository(UserTemplateChannel)
37
+ export class UserTemplateChannelRepository extends Repository<UserTemplateChannel> {}
38
+
39
+ @EntityRepository(ReachuSchemeConfigOrder)
40
+ export class ReachuSchemeConfigOrderRepository extends Repository<ReachuSchemeConfigOrder> {}
41
+
42
+ @EntityRepository(TemplateChannelSchemeConfigOrder)
43
+ export class TemplateChannelSchemeConfigOrderRepository extends Repository<TemplateChannelSchemeConfigOrder> {}
44
+
45
+ @EntityRepository(TemplateChannelSchemeConfigOrderMapped)
46
+ export class TemplateChannelSchemeConfigOrderMappedRepository extends Repository<TemplateChannelSchemeConfigOrderMapped> {}
47
+
48
+ @EntityRepository(ReachuSchemeConfigProduct)
49
+ export class ReachuSchemeConfigProductRepository extends Repository<ReachuSchemeConfigProduct> {}
50
+
51
+ @EntityRepository(TemplateChannelSchemeConfigProduct)
52
+ export class TemplateChannelSchemeConfigProductRepository extends Repository<TemplateChannelSchemeConfigProduct> {}
53
+
54
+ @EntityRepository(TemplateChannelSchemeConfigProductMapped)
55
+ export class TemplateChannelSchemeConfigProductMappedRepository extends Repository<TemplateChannelSchemeConfigProductMapped> {}
56
+
57
+ @EntityRepository(ReachuSchemeConfigVariant)
58
+ export class ReachuSchemeConfigVariantRepository extends Repository<ReachuSchemeConfigVariant> {}
59
+
60
+ @EntityRepository(TemplateChannelSchemeConfigVariant)
61
+ export class TemplateChannelSchemeConfigVariantRepository extends Repository<TemplateChannelSchemeConfigVariant> {}
62
+
63
+ @EntityRepository(TemplateChannelSchemeConfigVariantMapped)
64
+ export class TemplateChannelSchemeConfigVariantMappedRepository extends Repository<TemplateChannelSchemeConfigVariantMapped> {}