podverse-orm 5.0.3 → 5.0.5

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 (115) hide show
  1. package/LICENSE +661 -0
  2. package/README.md +37 -0
  3. package/dist/entities/account/accountCredentials.d.ts.map +1 -1
  4. package/dist/entities/account/accountCredentials.js +3 -2
  5. package/dist/entities/account/accountFCMDevice.d.ts.map +1 -1
  6. package/dist/entities/account/accountFCMDevice.js +2 -1
  7. package/dist/entities/account/accountFollowingAddByRSSChannel.d.ts.map +1 -1
  8. package/dist/entities/account/accountFollowingAddByRSSChannel.js +4 -3
  9. package/dist/entities/account/accountProfile.d.ts.map +1 -1
  10. package/dist/entities/account/accountProfile.js +3 -2
  11. package/dist/entities/account/accountResetPassword.d.ts.map +1 -1
  12. package/dist/entities/account/accountResetPassword.js +2 -1
  13. package/dist/entities/account/accountUPDevice.d.ts.map +1 -1
  14. package/dist/entities/account/accountUPDevice.js +4 -3
  15. package/dist/entities/account/accountVerification.d.ts.map +1 -1
  16. package/dist/entities/account/accountVerification.js +2 -1
  17. package/dist/entities/category.d.ts.map +1 -1
  18. package/dist/entities/category.js +2 -1
  19. package/dist/entities/channel/channel.d.ts.map +1 -1
  20. package/dist/entities/channel/channel.js +4 -3
  21. package/dist/entities/channel/channelAbout.d.ts.map +1 -1
  22. package/dist/entities/channel/channelAbout.js +4 -3
  23. package/dist/entities/channel/channelChat.d.ts.map +1 -1
  24. package/dist/entities/channel/channelChat.js +5 -4
  25. package/dist/entities/channel/channelDescription.d.ts.map +1 -1
  26. package/dist/entities/channel/channelDescription.js +2 -1
  27. package/dist/entities/channel/channelFunding.d.ts.map +1 -1
  28. package/dist/entities/channel/channelFunding.js +3 -2
  29. package/dist/entities/channel/channelImage.d.ts.map +1 -1
  30. package/dist/entities/channel/channelImage.js +2 -1
  31. package/dist/entities/channel/channelLicense.d.ts.map +1 -1
  32. package/dist/entities/channel/channelLicense.js +3 -2
  33. package/dist/entities/channel/channelLocation.d.ts.map +1 -1
  34. package/dist/entities/channel/channelLocation.js +4 -3
  35. package/dist/entities/channel/channelPerson.d.ts.map +1 -1
  36. package/dist/entities/channel/channelPerson.js +6 -5
  37. package/dist/entities/channel/channelPodrollRemoteItem.d.ts.map +1 -1
  38. package/dist/entities/channel/channelPodrollRemoteItem.js +4 -3
  39. package/dist/entities/channel/channelPublisherRemoteItem.d.ts.map +1 -1
  40. package/dist/entities/channel/channelPublisherRemoteItem.js +4 -3
  41. package/dist/entities/channel/channelRemoteItem.d.ts.map +1 -1
  42. package/dist/entities/channel/channelRemoteItem.js +4 -3
  43. package/dist/entities/channel/channelSeason.d.ts.map +1 -1
  44. package/dist/entities/channel/channelSeason.js +2 -1
  45. package/dist/entities/channel/channelSocialInteract.d.ts.map +1 -1
  46. package/dist/entities/channel/channelSocialInteract.js +5 -4
  47. package/dist/entities/channel/channelTrailer.d.ts.map +1 -1
  48. package/dist/entities/channel/channelTrailer.js +4 -3
  49. package/dist/entities/channel/channelTxt.d.ts.map +1 -1
  50. package/dist/entities/channel/channelTxt.js +3 -2
  51. package/dist/entities/channel/channelValue.d.ts.map +1 -1
  52. package/dist/entities/channel/channelValue.js +3 -2
  53. package/dist/entities/channel/channelValueRecipient.d.ts.map +1 -1
  54. package/dist/entities/channel/channelValueRecipient.js +6 -5
  55. package/dist/entities/clip.d.ts.map +1 -1
  56. package/dist/entities/clip.js +3 -2
  57. package/dist/entities/feed/feed.d.ts.map +1 -1
  58. package/dist/entities/feed/feed.js +4 -3
  59. package/dist/entities/item/item.d.ts.map +1 -1
  60. package/dist/entities/item/item.js +5 -4
  61. package/dist/entities/item/itemAbout.d.ts.map +1 -1
  62. package/dist/entities/item/itemAbout.js +2 -1
  63. package/dist/entities/item/itemChapter.d.ts.map +1 -1
  64. package/dist/entities/item/itemChapter.js +4 -3
  65. package/dist/entities/item/itemChapterLocation.d.ts.map +1 -1
  66. package/dist/entities/item/itemChapterLocation.js +4 -3
  67. package/dist/entities/item/itemChaptersFeed.d.ts.map +1 -1
  68. package/dist/entities/item/itemChaptersFeed.js +3 -2
  69. package/dist/entities/item/itemChat.d.ts.map +1 -1
  70. package/dist/entities/item/itemChat.js +5 -4
  71. package/dist/entities/item/itemContentLink.d.ts.map +1 -1
  72. package/dist/entities/item/itemContentLink.js +3 -2
  73. package/dist/entities/item/itemDescription.d.ts.map +1 -1
  74. package/dist/entities/item/itemDescription.js +2 -1
  75. package/dist/entities/item/itemEnclosure.d.ts.map +1 -1
  76. package/dist/entities/item/itemEnclosure.js +6 -5
  77. package/dist/entities/item/itemEnclosureIntegrity.d.ts.map +1 -1
  78. package/dist/entities/item/itemEnclosureIntegrity.js +2 -1
  79. package/dist/entities/item/itemEnclosureSource.d.ts.map +1 -1
  80. package/dist/entities/item/itemEnclosureSource.js +3 -2
  81. package/dist/entities/item/itemFunding.d.ts.map +1 -1
  82. package/dist/entities/item/itemFunding.js +3 -2
  83. package/dist/entities/item/itemImage.d.ts.map +1 -1
  84. package/dist/entities/item/itemImage.js +2 -1
  85. package/dist/entities/item/itemLicense.d.ts.map +1 -1
  86. package/dist/entities/item/itemLicense.js +3 -2
  87. package/dist/entities/item/itemLocation.d.ts.map +1 -1
  88. package/dist/entities/item/itemLocation.js +4 -3
  89. package/dist/entities/item/itemPerson.d.ts.map +1 -1
  90. package/dist/entities/item/itemPerson.js +6 -5
  91. package/dist/entities/item/itemSeason.d.ts.map +1 -1
  92. package/dist/entities/item/itemSeason.js +2 -1
  93. package/dist/entities/item/itemSeasonEpisode.d.ts.map +1 -1
  94. package/dist/entities/item/itemSeasonEpisode.js +2 -1
  95. package/dist/entities/item/itemSocialInteract.d.ts.map +1 -1
  96. package/dist/entities/item/itemSocialInteract.js +5 -4
  97. package/dist/entities/item/itemSoundbite.d.ts.map +1 -1
  98. package/dist/entities/item/itemSoundbite.js +2 -1
  99. package/dist/entities/item/itemTranscript.d.ts.map +1 -1
  100. package/dist/entities/item/itemTranscript.js +5 -4
  101. package/dist/entities/item/itemTxt.d.ts.map +1 -1
  102. package/dist/entities/item/itemTxt.js +3 -2
  103. package/dist/entities/item/itemValue.d.ts.map +1 -1
  104. package/dist/entities/item/itemValue.js +3 -2
  105. package/dist/entities/item/itemValueRecipient.d.ts.map +1 -1
  106. package/dist/entities/item/itemValueRecipient.js +6 -5
  107. package/dist/entities/item/itemValueTimeSplitRecipient.d.ts.map +1 -1
  108. package/dist/entities/item/itemValueTimeSplitRecipient.js +6 -5
  109. package/dist/entities/item/itemValueTimeSplitRemoteItem.d.ts.map +1 -1
  110. package/dist/entities/item/itemValueTimeSplitRemoteItem.js +4 -3
  111. package/dist/entities/playlist/playlist.d.ts.map +1 -1
  112. package/dist/entities/playlist/playlist.js +3 -2
  113. package/dist/services/feed/feed.d.ts.map +1 -1
  114. package/dist/services/feed/feed.js +10 -5
  115. package/package.json +2 -2
package/README.md ADDED
@@ -0,0 +1,37 @@
1
+ # podverse-orm
2
+
3
+ A module used for handling database interactions via the Podverse ORM (typeorm).
4
+
5
+ ## Dev Setup
6
+
7
+ ### Environment Variables
8
+
9
+ The environment variables for this module must be set within the app that consumes this module (ex. `podverse-api` or `podverse-workers`). See `podverse-orm/config/index.ts` for a list of the env vars expected.
10
+
11
+ ### Local Dev Workflow
12
+
13
+ Podverse uses many modules that are maintained in separate repos, and they need to be linked and running for a local dev workflow. Please read the `podverse-ops/dev/local-dev-setup.md` file to set up the required dependencies and module linking.
14
+
15
+ ### Running Locally
16
+
17
+ Install the node_modules:
18
+
19
+ ```
20
+ npm install
21
+ ```
22
+
23
+ Then to build:
24
+
25
+ ```
26
+ npm run build
27
+ ```
28
+
29
+ Or if you want the app to auto-build on saved changes:
30
+
31
+ ```
32
+ npm run build:watch
33
+ ```
34
+
35
+ ## Publishing
36
+
37
+ To publish your changes to npm, increment the version number is `package.json` then run `npm publish`.
@@ -1 +1 @@
1
- {"version":3,"file":"accountCredentials.d.ts","sourceRoot":"","sources":["../../../src/entities/account/accountCredentials.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,qBACa,kBAAkB;IAE7B,EAAE,EAAG,MAAM,CAAC;IAIZ,OAAO,EAAG,OAAO,CAAC;IAGlB,KAAK,EAAG,MAAM,CAAC;IAGf,QAAQ,EAAG,MAAM,CAAC;CACnB"}
1
+ {"version":3,"file":"accountCredentials.d.ts","sourceRoot":"","sources":["../../../src/entities/account/accountCredentials.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,qBACa,kBAAkB;IAE7B,EAAE,EAAG,MAAM,CAAC;IAIZ,OAAO,EAAG,OAAO,CAAC;IAGlB,KAAK,EAAG,MAAM,CAAC;IAGf,QAAQ,EAAG,MAAM,CAAC;CACnB"}
@@ -10,6 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.AccountCredentials = void 0;
13
+ const podverse_helpers_1 = require("podverse-helpers");
13
14
  const typeorm_1 = require("typeorm");
14
15
  const account_1 = require("@orm/entities/account/account");
15
16
  let AccountCredentials = class AccountCredentials {
@@ -25,11 +26,11 @@ __decorate([
25
26
  __metadata("design:type", account_1.Account)
26
27
  ], AccountCredentials.prototype, "account", void 0);
27
28
  __decorate([
28
- (0, typeorm_1.Column)({ type: 'varchar', unique: true }),
29
+ (0, typeorm_1.Column)({ type: 'varchar', unique: true, length: podverse_helpers_1.DATABASE_CONSTANTS.varchar_email }),
29
30
  __metadata("design:type", String)
30
31
  ], AccountCredentials.prototype, "email", void 0);
31
32
  __decorate([
32
- (0, typeorm_1.Column)({ type: 'varchar' }),
33
+ (0, typeorm_1.Column)({ type: 'varchar', length: podverse_helpers_1.DATABASE_CONSTANTS.varchar_password }),
33
34
  __metadata("design:type", String)
34
35
  ], AccountCredentials.prototype, "password", void 0);
35
36
  exports.AccountCredentials = AccountCredentials = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"accountFCMDevice.d.ts","sourceRoot":"","sources":["../../../src/entities/account/accountFCMDevice.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,qBACa,gBAAgB;IAE3B,SAAS,EAAG,MAAM,CAAC;IAGnB,UAAU,EAAG,MAAM,CAAC;IAIpB,OAAO,EAAG,OAAO,CAAC;CACnB"}
1
+ {"version":3,"file":"accountFCMDevice.d.ts","sourceRoot":"","sources":["../../../src/entities/account/accountFCMDevice.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,qBACa,gBAAgB;IAE3B,SAAS,EAAG,MAAM,CAAC;IAGnB,UAAU,EAAG,MAAM,CAAC;IAIpB,OAAO,EAAG,OAAO,CAAC;CACnB"}
@@ -10,13 +10,14 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.AccountFCMDevice = void 0;
13
+ const podverse_helpers_1 = require("podverse-helpers");
13
14
  const typeorm_1 = require("typeorm");
14
15
  const account_1 = require("@orm/entities/account/account");
15
16
  let AccountFCMDevice = class AccountFCMDevice {
16
17
  };
17
18
  exports.AccountFCMDevice = AccountFCMDevice;
18
19
  __decorate([
19
- (0, typeorm_1.PrimaryColumn)(),
20
+ (0, typeorm_1.PrimaryColumn)({ type: 'varchar', length: podverse_helpers_1.DATABASE_CONSTANTS.varchar_fcm_token }),
20
21
  __metadata("design:type", String)
21
22
  ], AccountFCMDevice.prototype, "fcm_token", void 0);
22
23
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"accountFollowingAddByRSSChannel.d.ts","sourceRoot":"","sources":["../../../src/entities/account/accountFollowingAddByRSSChannel.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,qBACa,+BAA+B;IAE1C,UAAU,EAAG,MAAM,CAAC;IAGpB,QAAQ,EAAG,MAAM,CAAC;IAIlB,OAAO,EAAG,OAAO,CAAC;IAGlB,KAAK,EAAG,MAAM,GAAG,IAAI,CAAC;IAGtB,SAAS,EAAG,MAAM,GAAG,IAAI,CAAC;CAC3B"}
1
+ {"version":3,"file":"accountFollowingAddByRSSChannel.d.ts","sourceRoot":"","sources":["../../../src/entities/account/accountFollowingAddByRSSChannel.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,qBACa,+BAA+B;IAE1C,UAAU,EAAG,MAAM,CAAC;IAGpB,QAAQ,EAAG,MAAM,CAAC;IAIlB,OAAO,EAAG,OAAO,CAAC;IAGlB,KAAK,EAAG,MAAM,GAAG,IAAI,CAAC;IAGtB,SAAS,EAAG,MAAM,GAAG,IAAI,CAAC;CAC3B"}
@@ -10,6 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.AccountFollowingAddByRssChannel = void 0;
13
+ const podverse_helpers_1 = require("podverse-helpers");
13
14
  const typeorm_1 = require("typeorm");
14
15
  const account_1 = require("@orm/entities/account/account");
15
16
  let AccountFollowingAddByRssChannel = class AccountFollowingAddByRssChannel {
@@ -20,7 +21,7 @@ __decorate([
20
21
  __metadata("design:type", Number)
21
22
  ], AccountFollowingAddByRssChannel.prototype, "account_id", void 0);
22
23
  __decorate([
23
- (0, typeorm_1.PrimaryColumn)(),
24
+ (0, typeorm_1.PrimaryColumn)({ type: 'varchar', length: podverse_helpers_1.DATABASE_CONSTANTS.varchar_url }),
24
25
  __metadata("design:type", String)
25
26
  ], AccountFollowingAddByRssChannel.prototype, "feed_url", void 0);
26
27
  __decorate([
@@ -29,11 +30,11 @@ __decorate([
29
30
  __metadata("design:type", account_1.Account)
30
31
  ], AccountFollowingAddByRssChannel.prototype, "account", void 0);
31
32
  __decorate([
32
- (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
33
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true, length: podverse_helpers_1.DATABASE_CONSTANTS.varchar_normal }),
33
34
  __metadata("design:type", Object)
34
35
  ], AccountFollowingAddByRssChannel.prototype, "title", void 0);
35
36
  __decorate([
36
- (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
37
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true, length: podverse_helpers_1.DATABASE_CONSTANTS.varchar_url }),
37
38
  __metadata("design:type", Object)
38
39
  ], AccountFollowingAddByRssChannel.prototype, "image_url", void 0);
39
40
  exports.AccountFollowingAddByRssChannel = AccountFollowingAddByRssChannel = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"accountProfile.d.ts","sourceRoot":"","sources":["../../../src/entities/account/accountProfile.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,qBACa,cAAc;IAEzB,EAAE,EAAG,MAAM,CAAC;IAIZ,OAAO,EAAG,OAAO,CAAC;IAGlB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAG7B,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB"}
1
+ {"version":3,"file":"accountProfile.d.ts","sourceRoot":"","sources":["../../../src/entities/account/accountProfile.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,qBACa,cAAc;IAEzB,EAAE,EAAG,MAAM,CAAC;IAIZ,OAAO,EAAG,OAAO,CAAC;IAGlB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAG7B,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB"}
@@ -10,6 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.AccountProfile = void 0;
13
+ const podverse_helpers_1 = require("podverse-helpers");
13
14
  const typeorm_1 = require("typeorm");
14
15
  const account_1 = require("@orm/entities/account/account");
15
16
  let AccountProfile = class AccountProfile {
@@ -25,11 +26,11 @@ __decorate([
25
26
  __metadata("design:type", account_1.Account)
26
27
  ], AccountProfile.prototype, "account", void 0);
27
28
  __decorate([
28
- (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
29
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true, length: podverse_helpers_1.DATABASE_CONSTANTS.varchar_normal }),
29
30
  __metadata("design:type", Object)
30
31
  ], AccountProfile.prototype, "display_name", void 0);
31
32
  __decorate([
32
- (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
33
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true, length: podverse_helpers_1.DATABASE_CONSTANTS.varchar_long }),
33
34
  __metadata("design:type", Object)
34
35
  ], AccountProfile.prototype, "bio", void 0);
35
36
  exports.AccountProfile = AccountProfile = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"accountResetPassword.d.ts","sourceRoot":"","sources":["../../../src/entities/account/accountResetPassword.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,qBACa,oBAAoB;IAE/B,EAAE,EAAG,MAAM,CAAC;IAIZ,OAAO,EAAG,OAAO,CAAC;IAGlB,WAAW,EAAG,MAAM,CAAC;IAGrB,sBAAsB,EAAG,IAAI,CAAC;CAC/B"}
1
+ {"version":3,"file":"accountResetPassword.d.ts","sourceRoot":"","sources":["../../../src/entities/account/accountResetPassword.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,qBACa,oBAAoB;IAE/B,EAAE,EAAG,MAAM,CAAC;IAIZ,OAAO,EAAG,OAAO,CAAC;IAGlB,WAAW,EAAG,MAAM,CAAC;IAGrB,sBAAsB,EAAG,IAAI,CAAC;CAC/B"}
@@ -10,6 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.AccountResetPassword = void 0;
13
+ const podverse_helpers_1 = require("podverse-helpers");
13
14
  const typeorm_1 = require("typeorm");
14
15
  const account_1 = require("@orm/entities/account/account");
15
16
  let AccountResetPassword = class AccountResetPassword {
@@ -25,7 +26,7 @@ __decorate([
25
26
  __metadata("design:type", account_1.Account)
26
27
  ], AccountResetPassword.prototype, "account", void 0);
27
28
  __decorate([
28
- (0, typeorm_1.Column)({ type: 'varchar' }),
29
+ (0, typeorm_1.Column)({ type: 'varchar', length: podverse_helpers_1.DATABASE_CONSTANTS.varchar_guid }),
29
30
  __metadata("design:type", String)
30
31
  ], AccountResetPassword.prototype, "reset_token", void 0);
31
32
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"accountUPDevice.d.ts","sourceRoot":"","sources":["../../../src/entities/account/accountUPDevice.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,qBACa,eAAe;IAE1B,WAAW,EAAG,MAAM,CAAC;IAGrB,aAAa,EAAG,MAAM,CAAC;IAGvB,WAAW,EAAG,MAAM,CAAC;IAGrB,UAAU,EAAG,MAAM,CAAC;IAIpB,OAAO,EAAG,OAAO,CAAC;CACnB"}
1
+ {"version":3,"file":"accountUPDevice.d.ts","sourceRoot":"","sources":["../../../src/entities/account/accountUPDevice.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,qBACa,eAAe;IAE1B,WAAW,EAAG,MAAM,CAAC;IAGrB,aAAa,EAAG,MAAM,CAAC;IAGvB,WAAW,EAAG,MAAM,CAAC;IAGrB,UAAU,EAAG,MAAM,CAAC;IAIpB,OAAO,EAAG,OAAO,CAAC;CACnB"}
@@ -10,21 +10,22 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.AccountUpDevice = void 0;
13
+ const podverse_helpers_1 = require("podverse-helpers");
13
14
  const typeorm_1 = require("typeorm");
14
15
  const account_1 = require("@orm/entities/account/account");
15
16
  let AccountUpDevice = class AccountUpDevice {
16
17
  };
17
18
  exports.AccountUpDevice = AccountUpDevice;
18
19
  __decorate([
19
- (0, typeorm_1.PrimaryColumn)(),
20
+ (0, typeorm_1.PrimaryColumn)({ type: 'varchar', length: podverse_helpers_1.DATABASE_CONSTANTS.varchar_url }),
20
21
  __metadata("design:type", String)
21
22
  ], AccountUpDevice.prototype, "up_endpoint", void 0);
22
23
  __decorate([
23
- (0, typeorm_1.Column)(),
24
+ (0, typeorm_1.Column)({ type: 'varchar', length: podverse_helpers_1.DATABASE_CONSTANTS.varchar_long }),
24
25
  __metadata("design:type", String)
25
26
  ], AccountUpDevice.prototype, "up_public_key", void 0);
26
27
  __decorate([
27
- (0, typeorm_1.Column)(),
28
+ (0, typeorm_1.Column)({ type: 'varchar', length: podverse_helpers_1.DATABASE_CONSTANTS.varchar_long }),
28
29
  __metadata("design:type", String)
29
30
  ], AccountUpDevice.prototype, "up_auth_key", void 0);
30
31
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"accountVerification.d.ts","sourceRoot":"","sources":["../../../src/entities/account/accountVerification.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,qBACa,mBAAmB;IAE9B,EAAE,EAAG,MAAM,CAAC;IAIZ,OAAO,EAAG,OAAO,CAAC;IAGlB,kBAAkB,EAAG,MAAM,CAAC;IAG5B,6BAA6B,EAAG,IAAI,CAAC;CACtC"}
1
+ {"version":3,"file":"accountVerification.d.ts","sourceRoot":"","sources":["../../../src/entities/account/accountVerification.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,qBACa,mBAAmB;IAE9B,EAAE,EAAG,MAAM,CAAC;IAIZ,OAAO,EAAG,OAAO,CAAC;IAGlB,kBAAkB,EAAG,MAAM,CAAC;IAG5B,6BAA6B,EAAG,IAAI,CAAC;CACtC"}
@@ -10,6 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.AccountVerification = void 0;
13
+ const podverse_helpers_1 = require("podverse-helpers");
13
14
  const typeorm_1 = require("typeorm");
14
15
  const account_1 = require("@orm/entities/account/account");
15
16
  let AccountVerification = class AccountVerification {
@@ -25,7 +26,7 @@ __decorate([
25
26
  __metadata("design:type", account_1.Account)
26
27
  ], AccountVerification.prototype, "account", void 0);
27
28
  __decorate([
28
- (0, typeorm_1.Column)({ type: 'varchar' }),
29
+ (0, typeorm_1.Column)({ type: 'varchar', length: podverse_helpers_1.DATABASE_CONSTANTS.varchar_guid }),
29
30
  __metadata("design:type", String)
30
31
  ], AccountVerification.prototype, "verification_token", void 0);
31
32
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../src/entities/category.ts"],"names":[],"mappings":"AAEA,qBACa,QAAQ;IAEnB,EAAE,EAAG,MAAM,CAAC;IAGZ,SAAS,EAAG,MAAM,CAAC;IAGnB,YAAY,EAAG,MAAM,CAAC;IAGtB,IAAI,EAAG,MAAM,CAAC;CACf"}
1
+ {"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../src/entities/category.ts"],"names":[],"mappings":"AAGA,qBACa,QAAQ;IAEnB,EAAE,EAAG,MAAM,CAAC;IAGZ,SAAS,EAAG,MAAM,CAAC;IAGnB,YAAY,EAAG,MAAM,CAAC;IAGtB,IAAI,EAAG,MAAM,CAAC;CACf"}
@@ -10,6 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.Category = void 0;
13
+ const podverse_helpers_1 = require("podverse-helpers");
13
14
  const typeorm_1 = require("typeorm");
14
15
  let Category = class Category {
15
16
  };
@@ -19,7 +20,7 @@ __decorate([
19
20
  __metadata("design:type", Number)
20
21
  ], Category.prototype, "id", void 0);
21
22
  __decorate([
22
- (0, typeorm_1.Column)({ type: 'varchar' }),
23
+ (0, typeorm_1.Column)({ type: 'varchar', length: podverse_helpers_1.DATABASE_CONSTANTS.varchar_normal }),
23
24
  __metadata("design:type", String)
24
25
  ], Category.prototype, "node_text", void 0);
25
26
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../../../src/entities/channel/channel.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAU,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAG1D,qBAIa,OAAO;IAElB,EAAE,EAAG,MAAM,CAAC;IAGZ,OAAO,EAAG,MAAM,CAAC;IAGjB,IAAI,EAAG,MAAM,GAAG,IAAI,CAAC;IAIrB,IAAI,EAAG,IAAI,CAAC;IAGZ,OAAO,EAAG,MAAM,CAAC;IAGjB,gBAAgB,EAAG,MAAM,CAAC;IAG1B,YAAY,EAAG,MAAM,GAAG,IAAI,CAAC;IAG7B,KAAK,EAAG,MAAM,GAAG,IAAI,CAAC;IAGtB,cAAc,EAAG,MAAM,GAAG,IAAI,CAAC;IAI/B,MAAM,EAAG,UAAU,GAAG,IAAI,CAAC;IAG3B,uBAAuB,EAAG,OAAO,CAAC;IAGlC,MAAM,EAAG,OAAO,CAAC;IAGjB,mBAAmB,EAAG,OAAO,CAAC;IAG9B,cAAc;IAMd,eAAe;CAKhB"}
1
+ {"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../../../src/entities/channel/channel.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAU,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAG1D,qBAIa,OAAO;IAElB,EAAE,EAAG,MAAM,CAAC;IAGZ,OAAO,EAAG,MAAM,CAAC;IAGjB,IAAI,EAAG,MAAM,GAAG,IAAI,CAAC;IAIrB,IAAI,EAAG,IAAI,CAAC;IAGZ,OAAO,EAAG,MAAM,CAAC;IAGjB,gBAAgB,EAAG,MAAM,CAAC;IAG1B,YAAY,EAAG,MAAM,GAAG,IAAI,CAAC;IAG7B,KAAK,EAAG,MAAM,GAAG,IAAI,CAAC;IAGtB,cAAc,EAAG,MAAM,GAAG,IAAI,CAAC;IAI/B,MAAM,EAAG,UAAU,GAAG,IAAI,CAAC;IAG3B,uBAAuB,EAAG,OAAO,CAAC;IAGlC,MAAM,EAAG,OAAO,CAAC;IAGjB,mBAAmB,EAAG,OAAO,CAAC;IAG9B,cAAc;IAMd,eAAe;CAKhB"}
@@ -10,6 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.Channel = void 0;
13
+ const podverse_helpers_1 = require("podverse-helpers");
13
14
  const typeorm_1 = require("typeorm");
14
15
  const feed_1 = require("@orm/entities/feed/feed");
15
16
  const medium_1 = require("@orm/entities/medium");
@@ -34,7 +35,7 @@ __decorate([
34
35
  __metadata("design:type", String)
35
36
  ], Channel.prototype, "id_text", void 0);
36
37
  __decorate([
37
- (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
38
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true, length: podverse_helpers_1.DATABASE_CONSTANTS.varchar_slug }),
38
39
  __metadata("design:type", Object)
39
40
  ], Channel.prototype, "slug", void 0);
40
41
  __decorate([
@@ -55,11 +56,11 @@ __decorate([
55
56
  __metadata("design:type", Object)
56
57
  ], Channel.prototype, "podcast_guid", void 0);
57
58
  __decorate([
58
- (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
59
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true, length: podverse_helpers_1.DATABASE_CONSTANTS.varchar_normal }),
59
60
  __metadata("design:type", Object)
60
61
  ], Channel.prototype, "title", void 0);
61
62
  __decorate([
62
- (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
63
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true, length: podverse_helpers_1.DATABASE_CONSTANTS.varchar_short }),
63
64
  __metadata("design:type", Object)
64
65
  ], Channel.prototype, "sortable_title", void 0);
65
66
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"channelAbout.d.ts","sourceRoot":"","sources":["../../../src/entities/channel/channelAbout.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAqB,+BAA+B,EAAE,MAAM,yCAAyC,CAAC;AAE7G,qBACa,YAAY;IAEvB,EAAE,EAAG,MAAM,CAAC;IAIZ,OAAO,EAAG,OAAO,CAAC;IAGlB,MAAM,EAAG,MAAM,GAAG,IAAI,CAAC;IAGvB,aAAa,EAAG,MAAM,GAAG,IAAI,CAAC;IAG9B,QAAQ,EAAG,OAAO,GAAG,IAAI,CAAC;IAI1B,WAAW,EAAG,+BAA+B,GAAG,IAAI,CAAC;IAGrD,QAAQ,EAAG,MAAM,GAAG,IAAI,CAAC;IAGzB,aAAa,EAAG,IAAI,GAAG,IAAI,CAAC;IAG5B,gBAAgB,EAAG,MAAM,GAAG,IAAI,CAAC;CAClC"}
1
+ {"version":3,"file":"channelAbout.d.ts","sourceRoot":"","sources":["../../../src/entities/channel/channelAbout.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAqB,+BAA+B,EAAE,MAAM,yCAAyC,CAAC;AAE7G,qBACa,YAAY;IAEvB,EAAE,EAAG,MAAM,CAAC;IAIZ,OAAO,EAAG,OAAO,CAAC;IAGlB,MAAM,EAAG,MAAM,GAAG,IAAI,CAAC;IAGvB,aAAa,EAAG,MAAM,GAAG,IAAI,CAAC;IAG9B,QAAQ,EAAG,OAAO,GAAG,IAAI,CAAC;IAI1B,WAAW,EAAG,+BAA+B,GAAG,IAAI,CAAC;IAGrD,QAAQ,EAAG,MAAM,GAAG,IAAI,CAAC;IAGzB,aAAa,EAAG,IAAI,GAAG,IAAI,CAAC;IAG5B,gBAAgB,EAAG,MAAM,GAAG,IAAI,CAAC;CAClC"}
@@ -10,6 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.ChannelAbout = void 0;
13
+ const podverse_helpers_1 = require("podverse-helpers");
13
14
  const typeorm_1 = require("typeorm");
14
15
  const channel_1 = require("@orm/entities/channel/channel");
15
16
  const channelItunesType_1 = require("@orm/entities/channel/channelItunesType");
@@ -26,7 +27,7 @@ __decorate([
26
27
  __metadata("design:type", channel_1.Channel)
27
28
  ], ChannelAbout.prototype, "channel", void 0);
28
29
  __decorate([
29
- (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
30
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true, length: podverse_helpers_1.DATABASE_CONSTANTS.varchar_normal }),
30
31
  __metadata("design:type", Object)
31
32
  ], ChannelAbout.prototype, "author", void 0);
32
33
  __decorate([
@@ -43,7 +44,7 @@ __decorate([
43
44
  __metadata("design:type", Object)
44
45
  ], ChannelAbout.prototype, "itunes_type", void 0);
45
46
  __decorate([
46
- (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
47
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true, length: podverse_helpers_1.DATABASE_CONSTANTS.varchar_short }),
47
48
  __metadata("design:type", Object)
48
49
  ], ChannelAbout.prototype, "language", void 0);
49
50
  __decorate([
@@ -51,7 +52,7 @@ __decorate([
51
52
  __metadata("design:type", Object)
52
53
  ], ChannelAbout.prototype, "last_pub_date", void 0);
53
54
  __decorate([
54
- (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
55
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true, length: podverse_helpers_1.DATABASE_CONSTANTS.varchar_url }),
55
56
  __metadata("design:type", Object)
56
57
  ], ChannelAbout.prototype, "website_link_url", void 0);
57
58
  exports.ChannelAbout = ChannelAbout = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"channelChat.d.ts","sourceRoot":"","sources":["../../../src/entities/channel/channelChat.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,qBACa,WAAW;IAEtB,EAAE,EAAG,MAAM,CAAC;IAIZ,OAAO,EAAG,OAAO,CAAC;IAGlB,MAAM,EAAG,MAAM,CAAC;IAGhB,QAAQ,EAAG,MAAM,CAAC;IAGlB,UAAU,EAAG,MAAM,GAAG,IAAI,CAAC;IAG3B,KAAK,EAAG,MAAM,GAAG,IAAI,CAAC;CACvB"}
1
+ {"version":3,"file":"channelChat.d.ts","sourceRoot":"","sources":["../../../src/entities/channel/channelChat.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,qBACa,WAAW;IAEtB,EAAE,EAAG,MAAM,CAAC;IAIZ,OAAO,EAAG,OAAO,CAAC;IAGlB,MAAM,EAAG,MAAM,CAAC;IAGhB,QAAQ,EAAG,MAAM,CAAC;IAGlB,UAAU,EAAG,MAAM,GAAG,IAAI,CAAC;IAG3B,KAAK,EAAG,MAAM,GAAG,IAAI,CAAC;CACvB"}
@@ -10,6 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.ChannelChat = void 0;
13
+ const podverse_helpers_1 = require("podverse-helpers");
13
14
  const typeorm_1 = require("typeorm");
14
15
  const channel_1 = require("@orm/entities/channel/channel");
15
16
  let ChannelChat = class ChannelChat {
@@ -25,19 +26,19 @@ __decorate([
25
26
  __metadata("design:type", channel_1.Channel)
26
27
  ], ChannelChat.prototype, "channel", void 0);
27
28
  __decorate([
28
- (0, typeorm_1.Column)({ type: 'varchar' }),
29
+ (0, typeorm_1.Column)({ type: 'varchar', length: podverse_helpers_1.DATABASE_CONSTANTS.varchar_fqdn }),
29
30
  __metadata("design:type", String)
30
31
  ], ChannelChat.prototype, "server", void 0);
31
32
  __decorate([
32
- (0, typeorm_1.Column)({ type: 'varchar' }),
33
+ (0, typeorm_1.Column)({ type: 'varchar', length: podverse_helpers_1.DATABASE_CONSTANTS.varchar_short }),
33
34
  __metadata("design:type", String)
34
35
  ], ChannelChat.prototype, "protocol", void 0);
35
36
  __decorate([
36
- (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
37
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true, length: podverse_helpers_1.DATABASE_CONSTANTS.varchar_normal }),
37
38
  __metadata("design:type", Object)
38
39
  ], ChannelChat.prototype, "account_id", void 0);
39
40
  __decorate([
40
- (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
41
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true, length: podverse_helpers_1.DATABASE_CONSTANTS.varchar_normal }),
41
42
  __metadata("design:type", Object)
42
43
  ], ChannelChat.prototype, "space", void 0);
43
44
  exports.ChannelChat = ChannelChat = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"channelDescription.d.ts","sourceRoot":"","sources":["../../../src/entities/channel/channelDescription.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,qBAEa,kBAAkB;IAE7B,EAAE,EAAG,MAAM,CAAC;IAIZ,OAAO,EAAG,OAAO,CAAC;IAGlB,KAAK,EAAG,MAAM,CAAC;CAChB"}
1
+ {"version":3,"file":"channelDescription.d.ts","sourceRoot":"","sources":["../../../src/entities/channel/channelDescription.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,qBAEa,kBAAkB;IAE7B,EAAE,EAAG,MAAM,CAAC;IAIZ,OAAO,EAAG,OAAO,CAAC;IAGlB,KAAK,EAAG,MAAM,CAAC;CAChB"}
@@ -10,6 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.ChannelDescription = void 0;
13
+ const podverse_helpers_1 = require("podverse-helpers");
13
14
  const typeorm_1 = require("typeorm");
14
15
  const channel_1 = require("@orm/entities/channel/channel");
15
16
  let ChannelDescription = class ChannelDescription {
@@ -25,7 +26,7 @@ __decorate([
25
26
  __metadata("design:type", channel_1.Channel)
26
27
  ], ChannelDescription.prototype, "channel", void 0);
27
28
  __decorate([
28
- (0, typeorm_1.Column)({ type: 'text' }),
29
+ (0, typeorm_1.Column)({ type: 'varchar', length: podverse_helpers_1.DATABASE_CONSTANTS.varchar_long }),
29
30
  __metadata("design:type", String)
30
31
  ], ChannelDescription.prototype, "value", void 0);
31
32
  exports.ChannelDescription = ChannelDescription = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"channelFunding.d.ts","sourceRoot":"","sources":["../../../src/entities/channel/channelFunding.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,qBACa,cAAc;IAEzB,EAAE,EAAG,MAAM,CAAC;IAIZ,OAAO,EAAG,OAAO,CAAC;IAGlB,GAAG,EAAG,MAAM,CAAC;IAGb,KAAK,EAAG,MAAM,GAAG,IAAI,CAAC;CACvB"}
1
+ {"version":3,"file":"channelFunding.d.ts","sourceRoot":"","sources":["../../../src/entities/channel/channelFunding.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,qBACa,cAAc;IAEzB,EAAE,EAAG,MAAM,CAAC;IAIZ,OAAO,EAAG,OAAO,CAAC;IAGlB,GAAG,EAAG,MAAM,CAAC;IAGb,KAAK,EAAG,MAAM,GAAG,IAAI,CAAC;CACvB"}
@@ -10,6 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.ChannelFunding = void 0;
13
+ const podverse_helpers_1 = require("podverse-helpers");
13
14
  const typeorm_1 = require("typeorm");
14
15
  const channel_1 = require("@orm/entities/channel/channel");
15
16
  let ChannelFunding = class ChannelFunding {
@@ -25,11 +26,11 @@ __decorate([
25
26
  __metadata("design:type", channel_1.Channel)
26
27
  ], ChannelFunding.prototype, "channel", void 0);
27
28
  __decorate([
28
- (0, typeorm_1.Column)({ type: 'varchar' }),
29
+ (0, typeorm_1.Column)({ type: 'varchar', length: podverse_helpers_1.DATABASE_CONSTANTS.varchar_url }),
29
30
  __metadata("design:type", String)
30
31
  ], ChannelFunding.prototype, "url", void 0);
31
32
  __decorate([
32
- (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
33
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true, length: podverse_helpers_1.DATABASE_CONSTANTS.varchar_normal }),
33
34
  __metadata("design:type", Object)
34
35
  ], ChannelFunding.prototype, "title", void 0);
35
36
  exports.ChannelFunding = ChannelFunding = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"channelImage.d.ts","sourceRoot":"","sources":["../../../src/entities/channel/channelImage.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,qBACa,YAAY;IAEvB,EAAE,EAAG,MAAM,CAAC;IAIZ,OAAO,EAAG,OAAO,CAAC;IAGlB,GAAG,EAAG,MAAM,CAAC;IAGb,gBAAgB,EAAG,MAAM,GAAG,IAAI,CAAC;IAGjC,UAAU,EAAG,OAAO,CAAC;CACtB"}
1
+ {"version":3,"file":"channelImage.d.ts","sourceRoot":"","sources":["../../../src/entities/channel/channelImage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,qBACa,YAAY;IAEvB,EAAE,EAAG,MAAM,CAAC;IAIZ,OAAO,EAAG,OAAO,CAAC;IAGlB,GAAG,EAAG,MAAM,CAAC;IAGb,gBAAgB,EAAG,MAAM,GAAG,IAAI,CAAC;IAGjC,UAAU,EAAG,OAAO,CAAC;CACtB"}
@@ -10,6 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.ChannelImage = void 0;
13
+ const podverse_helpers_1 = require("podverse-helpers");
13
14
  const typeorm_1 = require("typeorm");
14
15
  const channel_1 = require("@orm/entities/channel/channel");
15
16
  let ChannelImage = class ChannelImage {
@@ -25,7 +26,7 @@ __decorate([
25
26
  __metadata("design:type", channel_1.Channel)
26
27
  ], ChannelImage.prototype, "channel", void 0);
27
28
  __decorate([
28
- (0, typeorm_1.Column)({ type: 'varchar' }),
29
+ (0, typeorm_1.Column)({ type: 'varchar', length: podverse_helpers_1.DATABASE_CONSTANTS.varchar_url }),
29
30
  __metadata("design:type", String)
30
31
  ], ChannelImage.prototype, "url", void 0);
31
32
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"channelLicense.d.ts","sourceRoot":"","sources":["../../../src/entities/channel/channelLicense.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,qBAEa,cAAc;IAEzB,EAAE,EAAG,MAAM,CAAC;IAIZ,OAAO,EAAG,OAAO,CAAC;IAGlB,UAAU,EAAG,MAAM,CAAC;IAGpB,GAAG,EAAG,MAAM,GAAG,IAAI,CAAC;CACrB"}
1
+ {"version":3,"file":"channelLicense.d.ts","sourceRoot":"","sources":["../../../src/entities/channel/channelLicense.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,qBAEa,cAAc;IAEzB,EAAE,EAAG,MAAM,CAAC;IAIZ,OAAO,EAAG,OAAO,CAAC;IAGlB,UAAU,EAAG,MAAM,CAAC;IAGpB,GAAG,EAAG,MAAM,GAAG,IAAI,CAAC;CACrB"}
@@ -10,6 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.ChannelLicense = void 0;
13
+ const podverse_helpers_1 = require("podverse-helpers");
13
14
  const typeorm_1 = require("typeorm");
14
15
  const channel_1 = require("@orm/entities/channel/channel");
15
16
  let ChannelLicense = class ChannelLicense {
@@ -25,11 +26,11 @@ __decorate([
25
26
  __metadata("design:type", channel_1.Channel)
26
27
  ], ChannelLicense.prototype, "channel", void 0);
27
28
  __decorate([
28
- (0, typeorm_1.Column)({ type: 'varchar' }),
29
+ (0, typeorm_1.Column)({ type: 'varchar', length: podverse_helpers_1.DATABASE_CONSTANTS.varchar_normal }),
29
30
  __metadata("design:type", String)
30
31
  ], ChannelLicense.prototype, "identifier", void 0);
31
32
  __decorate([
32
- (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
33
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true, length: podverse_helpers_1.DATABASE_CONSTANTS.varchar_url }),
33
34
  __metadata("design:type", Object)
34
35
  ], ChannelLicense.prototype, "url", void 0);
35
36
  exports.ChannelLicense = ChannelLicense = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"channelLocation.d.ts","sourceRoot":"","sources":["../../../src/entities/channel/channelLocation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,qBAEa,eAAe;IAE1B,EAAE,EAAG,MAAM,CAAC;IAIZ,OAAO,EAAG,OAAO,CAAC;IAGlB,GAAG,EAAG,MAAM,GAAG,IAAI,CAAC;IAGpB,GAAG,EAAG,MAAM,GAAG,IAAI,CAAC;IAGpB,IAAI,EAAG,MAAM,GAAG,IAAI,CAAC;CACtB"}
1
+ {"version":3,"file":"channelLocation.d.ts","sourceRoot":"","sources":["../../../src/entities/channel/channelLocation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,qBAEa,eAAe;IAE1B,EAAE,EAAG,MAAM,CAAC;IAIZ,OAAO,EAAG,OAAO,CAAC;IAGlB,GAAG,EAAG,MAAM,GAAG,IAAI,CAAC;IAGpB,GAAG,EAAG,MAAM,GAAG,IAAI,CAAC;IAGpB,IAAI,EAAG,MAAM,GAAG,IAAI,CAAC;CACtB"}
@@ -10,6 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.ChannelLocation = void 0;
13
+ const podverse_helpers_1 = require("podverse-helpers");
13
14
  const typeorm_1 = require("typeorm");
14
15
  const channel_1 = require("@orm/entities/channel/channel");
15
16
  let ChannelLocation = class ChannelLocation {
@@ -25,15 +26,15 @@ __decorate([
25
26
  __metadata("design:type", channel_1.Channel)
26
27
  ], ChannelLocation.prototype, "channel", void 0);
27
28
  __decorate([
28
- (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
29
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true, length: podverse_helpers_1.DATABASE_CONSTANTS.varchar_normal }),
29
30
  __metadata("design:type", Object)
30
31
  ], ChannelLocation.prototype, "geo", void 0);
31
32
  __decorate([
32
- (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
33
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true, length: podverse_helpers_1.DATABASE_CONSTANTS.varchar_normal }),
33
34
  __metadata("design:type", Object)
34
35
  ], ChannelLocation.prototype, "osm", void 0);
35
36
  __decorate([
36
- (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
37
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true, length: podverse_helpers_1.DATABASE_CONSTANTS.varchar_normal }),
37
38
  __metadata("design:type", Object)
38
39
  ], ChannelLocation.prototype, "name", void 0);
39
40
  exports.ChannelLocation = ChannelLocation = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"channelPerson.d.ts","sourceRoot":"","sources":["../../../src/entities/channel/channelPerson.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,qBACa,aAAa;IAExB,EAAE,EAAG,MAAM,CAAC;IAIZ,OAAO,EAAG,OAAO,CAAC;IAGlB,IAAI,EAAG,MAAM,CAAC;IAGd,IAAI,EAAG,MAAM,GAAG,IAAI,CAAC;IAGrB,YAAY,EAAG,MAAM,CAAC;IAGtB,GAAG,EAAG,MAAM,GAAG,IAAI,CAAC;IAGpB,IAAI,EAAG,MAAM,GAAG,IAAI,CAAC;IAIrB,eAAe;CAQhB"}
1
+ {"version":3,"file":"channelPerson.d.ts","sourceRoot":"","sources":["../../../src/entities/channel/channelPerson.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,qBACa,aAAa;IAExB,EAAE,EAAG,MAAM,CAAC;IAIZ,OAAO,EAAG,OAAO,CAAC;IAGlB,IAAI,EAAG,MAAM,CAAC;IAGd,IAAI,EAAG,MAAM,GAAG,IAAI,CAAC;IAGrB,YAAY,EAAG,MAAM,CAAC;IAGtB,GAAG,EAAG,MAAM,GAAG,IAAI,CAAC;IAGpB,IAAI,EAAG,MAAM,GAAG,IAAI,CAAC;IAIrB,eAAe;CAQhB"}
@@ -10,6 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.ChannelPerson = void 0;
13
+ const podverse_helpers_1 = require("podverse-helpers");
13
14
  const typeorm_1 = require("typeorm");
14
15
  const channel_1 = require("@orm/entities/channel/channel");
15
16
  let ChannelPerson = class ChannelPerson {
@@ -33,23 +34,23 @@ __decorate([
33
34
  __metadata("design:type", channel_1.Channel)
34
35
  ], ChannelPerson.prototype, "channel", void 0);
35
36
  __decorate([
36
- (0, typeorm_1.Column)({ type: 'varchar' }),
37
+ (0, typeorm_1.Column)({ type: 'varchar', length: podverse_helpers_1.DATABASE_CONSTANTS.varchar_normal }),
37
38
  __metadata("design:type", String)
38
39
  ], ChannelPerson.prototype, "name", void 0);
39
40
  __decorate([
40
- (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
41
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true, length: podverse_helpers_1.DATABASE_CONSTANTS.varchar_normal }),
41
42
  __metadata("design:type", Object)
42
43
  ], ChannelPerson.prototype, "role", void 0);
43
44
  __decorate([
44
- (0, typeorm_1.Column)({ type: 'varchar', default: 'cast' }),
45
+ (0, typeorm_1.Column)({ type: 'varchar', default: 'cast', length: podverse_helpers_1.DATABASE_CONSTANTS.varchar_normal }),
45
46
  __metadata("design:type", String)
46
47
  ], ChannelPerson.prototype, "person_group", void 0);
47
48
  __decorate([
48
- (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
49
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true, length: podverse_helpers_1.DATABASE_CONSTANTS.varchar_url }),
49
50
  __metadata("design:type", Object)
50
51
  ], ChannelPerson.prototype, "img", void 0);
51
52
  __decorate([
52
- (0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
53
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: true, length: podverse_helpers_1.DATABASE_CONSTANTS.varchar_url }),
53
54
  __metadata("design:type", Object)
54
55
  ], ChannelPerson.prototype, "href", void 0);
55
56
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"channelPodrollRemoteItem.d.ts","sourceRoot":"","sources":["../../../src/entities/channel/channelPodrollRemoteItem.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAEtE,qBACa,wBAAwB;IAEnC,EAAE,EAAG,MAAM,CAAC;IAIZ,eAAe,EAAG,cAAc,CAAC;IAGjC,SAAS,EAAG,MAAM,CAAC;IAGnB,QAAQ,EAAG,MAAM,GAAG,IAAI,CAAC;IAGzB,SAAS,EAAG,MAAM,GAAG,IAAI,CAAC;IAG1B,KAAK,EAAG,MAAM,GAAG,IAAI,CAAC;CACvB"}
1
+ {"version":3,"file":"channelPodrollRemoteItem.d.ts","sourceRoot":"","sources":["../../../src/entities/channel/channelPodrollRemoteItem.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAEtE,qBACa,wBAAwB;IAEnC,EAAE,EAAG,MAAM,CAAC;IAIZ,eAAe,EAAG,cAAc,CAAC;IAGjC,SAAS,EAAG,MAAM,CAAC;IAGnB,QAAQ,EAAG,MAAM,GAAG,IAAI,CAAC;IAGzB,SAAS,EAAG,MAAM,GAAG,IAAI,CAAC;IAG1B,KAAK,EAAG,MAAM,GAAG,IAAI,CAAC;CACvB"}
@@ -10,6 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.ChannelPodrollRemoteItem = void 0;
13
+ const podverse_helpers_1 = require("podverse-helpers");
13
14
  const typeorm_1 = require("typeorm");
14
15
  const channelPodroll_1 = require("@orm/entities/channel/channelPodroll");
15
16
  let ChannelPodrollRemoteItem = class ChannelPodrollRemoteItem {
@@ -29,15 +30,15 @@ __decorate([
29
30
  __metadata("design:type", String)
30
31
  ], ChannelPodrollRemoteItem.prototype, "feed_guid", void 0);
31
32
  __decorate([
32
- (0, typeorm_1.Column)({ type: 'varchar', name: 'feed_url', nullable: true }),
33
+ (0, typeorm_1.Column)({ type: 'varchar', name: 'feed_url', nullable: true, length: podverse_helpers_1.DATABASE_CONSTANTS.varchar_url }),
33
34
  __metadata("design:type", Object)
34
35
  ], ChannelPodrollRemoteItem.prototype, "feed_url", void 0);
35
36
  __decorate([
36
- (0, typeorm_1.Column)({ type: 'varchar', name: 'item_guid', nullable: true }),
37
+ (0, typeorm_1.Column)({ type: 'varchar', name: 'item_guid', nullable: true, length: podverse_helpers_1.DATABASE_CONSTANTS.varchar_uri }),
37
38
  __metadata("design:type", Object)
38
39
  ], ChannelPodrollRemoteItem.prototype, "item_guid", void 0);
39
40
  __decorate([
40
- (0, typeorm_1.Column)({ type: 'varchar', name: 'title', nullable: true }),
41
+ (0, typeorm_1.Column)({ type: 'varchar', name: 'title', nullable: true, length: podverse_helpers_1.DATABASE_CONSTANTS.varchar_normal }),
41
42
  __metadata("design:type", Object)
42
43
  ], ChannelPodrollRemoteItem.prototype, "title", void 0);
43
44
  exports.ChannelPodrollRemoteItem = ChannelPodrollRemoteItem = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"channelPublisherRemoteItem.d.ts","sourceRoot":"","sources":["../../../src/entities/channel/channelPublisherRemoteItem.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAE1E,qBACa,0BAA0B;IAErC,EAAE,EAAG,MAAM,CAAC;IAIZ,iBAAiB,EAAG,gBAAgB,CAAC;IAGrC,SAAS,EAAG,MAAM,CAAC;IAGnB,QAAQ,EAAG,MAAM,GAAG,IAAI,CAAC;IAGzB,SAAS,EAAG,MAAM,GAAG,IAAI,CAAC;IAG1B,KAAK,EAAG,MAAM,GAAG,IAAI,CAAC;CACvB"}
1
+ {"version":3,"file":"channelPublisherRemoteItem.d.ts","sourceRoot":"","sources":["../../../src/entities/channel/channelPublisherRemoteItem.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAE1E,qBACa,0BAA0B;IAErC,EAAE,EAAG,MAAM,CAAC;IAIZ,iBAAiB,EAAG,gBAAgB,CAAC;IAGrC,SAAS,EAAG,MAAM,CAAC;IAGnB,QAAQ,EAAG,MAAM,GAAG,IAAI,CAAC;IAGzB,SAAS,EAAG,MAAM,GAAG,IAAI,CAAC;IAG1B,KAAK,EAAG,MAAM,GAAG,IAAI,CAAC;CACvB"}