@ooneex/typeorm 0.0.1 → 0.4.0

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 (178) hide show
  1. package/dist/shared/chunk-19qhst35.js +5 -0
  2. package/dist/shared/chunk-19qhst35.js.map +12 -0
  3. package/dist/shared/chunk-31y260d6.js +101 -0
  4. package/dist/shared/chunk-31y260d6.js.map +11 -0
  5. package/dist/shared/chunk-59vwmfpm.js +5 -0
  6. package/dist/shared/chunk-59vwmfpm.js.map +9 -0
  7. package/dist/shared/chunk-5tnqjb3n.js +5 -0
  8. package/dist/shared/{chunk-eh420jqn.js.map → chunk-5tnqjb3n.js.map} +2 -2
  9. package/dist/shared/chunk-5ybg5hda.js +5 -0
  10. package/dist/shared/{chunk-pwhygf44.js.map → chunk-5ybg5hda.js.map} +2 -2
  11. package/dist/shared/chunk-6jnj2pfx.js +5 -0
  12. package/dist/shared/chunk-6jnj2pfx.js.map +10 -0
  13. package/dist/shared/chunk-6kdkyjbn.js +5 -0
  14. package/dist/shared/chunk-6kdkyjbn.js.map +10 -0
  15. package/dist/shared/chunk-aj0aak90.js +42 -0
  16. package/dist/shared/chunk-aj0aak90.js.map +10 -0
  17. package/dist/shared/chunk-e51ktjsq.js +5 -0
  18. package/dist/shared/chunk-e51ktjsq.js.map +18 -0
  19. package/dist/shared/chunk-jr0xys18.js +36 -0
  20. package/dist/shared/chunk-jr0xys18.js.map +10 -0
  21. package/dist/shared/chunk-kw4t1san.js +5 -0
  22. package/dist/shared/{chunk-wawk30n1.js.map → chunk-kw4t1san.js.map} +9 -4
  23. package/dist/shared/chunk-nfv9ce7v.js +5 -0
  24. package/dist/shared/{chunk-wmftwzcs.js.map → chunk-nfv9ce7v.js.map} +2 -2
  25. package/dist/shared/chunk-p22keb3y.js +5 -0
  26. package/dist/shared/{chunk-2e7zbxcq.js.map → chunk-p22keb3y.js.map} +2 -2
  27. package/dist/shared/chunk-pbns711f.js +5 -0
  28. package/dist/shared/chunk-pbns711f.js.map +10 -0
  29. package/dist/shared/chunk-qrs0g3m9.js +51 -0
  30. package/dist/shared/chunk-qrs0g3m9.js.map +10 -0
  31. package/dist/shared/chunk-qyf32qsz.js +82 -0
  32. package/dist/shared/chunk-qyf32qsz.js.map +10 -0
  33. package/dist/shared/chunk-t1jad451.js +5 -0
  34. package/dist/shared/chunk-t1jad451.js.map +21 -0
  35. package/dist/shared/chunk-t5cy307m.js +5 -0
  36. package/dist/shared/chunk-t5cy307m.js.map +10 -0
  37. package/dist/shared/chunk-x2d798hg.js +5 -0
  38. package/dist/shared/chunk-x2d798hg.js.map +11 -0
  39. package/dist/shared/chunk-x3pmm3na.js +5 -0
  40. package/dist/shared/chunk-x3pmm3na.js.map +21 -0
  41. package/dist/shared/chunk-xrqhqgen.js +5 -0
  42. package/dist/shared/{chunk-j7nprmyh.js.map → chunk-xrqhqgen.js.map} +2 -2
  43. package/dist/shared/chunk-xwe8m6av.js +5 -0
  44. package/dist/shared/{chunk-zmzz7hqq.js.map → chunk-xwe8m6av.js.map} +2 -2
  45. package/dist/shared/chunk-yrwsqc6r.js +5 -0
  46. package/dist/shared/chunk-yrwsqc6r.js.map +21 -0
  47. package/dist/src/entities/book/index.d.ts +80 -3
  48. package/dist/src/entities/book/index.js +2 -2
  49. package/dist/src/entities/book/index.js.map +1 -1
  50. package/dist/src/entities/common/index.d.ts +21 -28
  51. package/dist/src/entities/common/index.js +2 -2
  52. package/dist/src/entities/common/index.js.map +1 -1
  53. package/dist/src/entities/country/index.d.ts +21 -0
  54. package/dist/src/entities/country/index.js +4 -0
  55. package/dist/src/entities/country/index.js.map +9 -0
  56. package/dist/src/entities/currency/index.d.ts +23 -0
  57. package/dist/src/entities/currency/index.js +4 -0
  58. package/dist/src/entities/currency/index.js.map +9 -0
  59. package/dist/src/entities/folder/index.d.ts +104 -0
  60. package/dist/src/entities/folder/index.js +4 -0
  61. package/dist/src/entities/folder/index.js.map +19 -0
  62. package/dist/src/entities/gamification/flashcard/index.js +2 -2
  63. package/dist/src/entities/gamification/flashcard/index.js.map +1 -1
  64. package/dist/src/entities/gamification/index.js +2 -2
  65. package/dist/src/entities/gamification/index.js.map +1 -1
  66. package/dist/src/entities/gamification/mcq/index.d.ts +76 -7
  67. package/dist/src/entities/gamification/mcq/index.js +2 -2
  68. package/dist/src/entities/gamification/mcq/index.js.map +1 -1
  69. package/dist/src/entities/image/index.d.ts +83 -6
  70. package/dist/src/entities/image/index.js +2 -2
  71. package/dist/src/entities/image/index.js.map +1 -1
  72. package/dist/src/entities/medecine/index.d.ts +36 -0
  73. package/dist/src/entities/medecine/index.js +4 -0
  74. package/dist/src/entities/medecine/index.js.map +9 -0
  75. package/dist/src/entities/payment/index.js +2 -2
  76. package/dist/src/entities/payment/index.js.map +1 -1
  77. package/dist/src/entities/user/index.d.ts +48 -7
  78. package/dist/src/entities/user/index.js +2 -2
  79. package/dist/src/entities/user/index.js.map +1 -1
  80. package/dist/src/entities/video/index.d.ts +88 -10
  81. package/dist/src/entities/video/index.js +2 -2
  82. package/dist/src/entities/video/index.js.map +1 -1
  83. package/dist/src/migrations/book/index.d.ts +97 -0
  84. package/dist/src/migrations/book/index.js +516 -0
  85. package/dist/src/migrations/book/index.js.map +21 -0
  86. package/dist/src/migrations/common/index.d.ts +41 -0
  87. package/dist/src/migrations/common/index.js +57 -0
  88. package/dist/src/migrations/common/index.js.map +10 -0
  89. package/dist/src/migrations/country/index.d.ts +9 -0
  90. package/dist/src/migrations/country/index.js +40 -0
  91. package/dist/src/migrations/country/index.js.map +10 -0
  92. package/dist/src/migrations/currency/index.d.ts +9 -0
  93. package/dist/src/migrations/currency/index.js +44 -0
  94. package/dist/src/migrations/currency/index.js.map +10 -0
  95. package/dist/src/migrations/folder/index.d.ts +81 -0
  96. package/dist/src/migrations/folder/index.js +387 -0
  97. package/dist/src/migrations/folder/index.js.map +19 -0
  98. package/dist/src/migrations/gamification/flashcard/index.d.ts +57 -0
  99. package/dist/src/migrations/gamification/flashcard/index.js +420 -0
  100. package/dist/src/migrations/gamification/flashcard/index.js.map +16 -0
  101. package/dist/src/migrations/gamification/index.d.ts +9 -0
  102. package/dist/src/migrations/gamification/index.js +4 -0
  103. package/dist/src/migrations/gamification/index.js.map +9 -0
  104. package/dist/src/migrations/gamification/mcq/index.d.ts +97 -0
  105. package/dist/src/migrations/gamification/mcq/index.js +526 -0
  106. package/dist/src/migrations/gamification/mcq/index.js.map +21 -0
  107. package/dist/src/migrations/image/index.d.ts +81 -0
  108. package/dist/src/migrations/image/index.js +328 -0
  109. package/dist/src/migrations/image/index.js.map +18 -0
  110. package/dist/src/migrations/medecine/index.d.ts +25 -0
  111. package/dist/src/migrations/medecine/index.js +119 -0
  112. package/dist/src/migrations/medecine/index.js.map +12 -0
  113. package/dist/src/migrations/payment/index.d.ts +49 -0
  114. package/dist/src/migrations/payment/index.js +352 -0
  115. package/dist/src/migrations/payment/index.js.map +15 -0
  116. package/dist/src/migrations/user/index.d.ts +81 -0
  117. package/dist/src/migrations/user/index.js +309 -0
  118. package/dist/src/migrations/user/index.js.map +19 -0
  119. package/dist/src/migrations/video/index.d.ts +97 -0
  120. package/dist/src/migrations/video/index.js +289 -0
  121. package/dist/src/migrations/video/index.js.map +21 -0
  122. package/dist/src/repositories/book/index.d.ts +310 -35
  123. package/dist/src/repositories/book/index.js +2 -2
  124. package/dist/src/repositories/book/index.js.map +15 -6
  125. package/dist/src/repositories/common/index.d.ts +65 -94
  126. package/dist/src/repositories/common/index.js +2 -2
  127. package/dist/src/repositories/common/index.js.map +8 -9
  128. package/dist/src/repositories/country/index.d.ts +42 -0
  129. package/dist/src/repositories/country/index.js +4 -0
  130. package/dist/src/repositories/country/index.js.map +10 -0
  131. package/dist/src/repositories/currency/index.d.ts +44 -0
  132. package/dist/src/repositories/currency/index.js +4 -0
  133. package/dist/src/repositories/currency/index.js.map +10 -0
  134. package/dist/src/repositories/gamification/flashcard/index.d.ts +14 -14
  135. package/dist/src/repositories/gamification/flashcard/index.js +2 -2
  136. package/dist/src/repositories/gamification/flashcard/index.js.map +9 -9
  137. package/dist/src/repositories/gamification/index.d.ts +328 -83
  138. package/dist/src/repositories/gamification/index.js +2 -2
  139. package/dist/src/repositories/gamification/index.js.map +3 -3
  140. package/dist/src/repositories/gamification/mcq/index.d.ts +299 -54
  141. package/dist/src/repositories/gamification/mcq/index.js +2 -2
  142. package/dist/src/repositories/gamification/mcq/index.js.map +15 -7
  143. package/dist/src/repositories/image/index.d.ts +295 -20
  144. package/dist/src/repositories/image/index.js +2 -2
  145. package/dist/src/repositories/image/index.js.map +13 -4
  146. package/dist/src/repositories/medecine/index.d.ts +99 -0
  147. package/dist/src/repositories/medecine/index.js +4 -0
  148. package/dist/src/repositories/medecine/index.js.map +12 -0
  149. package/dist/src/repositories/payment/index.d.ts +12 -12
  150. package/dist/src/repositories/payment/index.js +2 -2
  151. package/dist/src/repositories/payment/index.js.map +8 -8
  152. package/dist/src/repositories/user/index.d.ts +210 -59
  153. package/dist/src/repositories/user/index.js +2 -2
  154. package/dist/src/repositories/user/index.js.map +13 -8
  155. package/dist/src/repositories/video/index.d.ts +330 -54
  156. package/dist/src/repositories/video/index.js +2 -2
  157. package/dist/src/repositories/video/index.js.map +15 -6
  158. package/package.json +188 -58
  159. package/dist/ooneex-typeorm-0.0.1.tgz +0 -0
  160. package/dist/shared/chunk-2e7zbxcq.js +0 -5
  161. package/dist/shared/chunk-764bzjhz.js +0 -5
  162. package/dist/shared/chunk-764bzjhz.js.map +0 -12
  163. package/dist/shared/chunk-eh420jqn.js +0 -5
  164. package/dist/shared/chunk-gjsgnzaq.js +0 -5
  165. package/dist/shared/chunk-gjsgnzaq.js.map +0 -10
  166. package/dist/shared/chunk-hw4vdg6q.js +0 -5
  167. package/dist/shared/chunk-hw4vdg6q.js.map +0 -10
  168. package/dist/shared/chunk-j7nprmyh.js +0 -5
  169. package/dist/shared/chunk-kgxsdeye.js +0 -5
  170. package/dist/shared/chunk-kgxsdeye.js.map +0 -13
  171. package/dist/shared/chunk-ntrrrvwt.js +0 -5
  172. package/dist/shared/chunk-ntrrrvwt.js.map +0 -12
  173. package/dist/shared/chunk-pwhygf44.js +0 -5
  174. package/dist/shared/chunk-sd6mmec6.js +0 -5
  175. package/dist/shared/chunk-sd6mmec6.js.map +0 -12
  176. package/dist/shared/chunk-wawk30n1.js +0 -5
  177. package/dist/shared/chunk-wmftwzcs.js +0 -5
  178. package/dist/shared/chunk-zmzz7hqq.js +0 -5
@@ -0,0 +1,41 @@
1
+ import { IMigration, MigrationClassType } from "@ooneex/migrations";
2
+ import { TransactionSQL } from "bun";
3
+ declare class Migration20251225173348643 implements IMigration {
4
+ up(tx: TransactionSQL): Promise<void>;
5
+ down(tx: TransactionSQL): Promise<void>;
6
+ getVersion(): string;
7
+ getDependencies(): MigrationClassType[];
8
+ }
9
+ import { IMigration as IMigration2, MigrationClassType as MigrationClassType2 } from "@ooneex/migrations";
10
+ import { TransactionSQL as TransactionSQL2 } from "bun";
11
+ declare class Migration20251225173349644 implements IMigration2 {
12
+ up(tx: TransactionSQL2): Promise<void>;
13
+ down(tx: TransactionSQL2): Promise<void>;
14
+ getVersion(): string;
15
+ getDependencies(): MigrationClassType2[];
16
+ }
17
+ import { IMigration as IMigration3, MigrationClassType as MigrationClassType3 } from "@ooneex/migrations";
18
+ import { TransactionSQL as TransactionSQL3 } from "bun";
19
+ declare class Migration20251225173350644 implements IMigration3 {
20
+ up(tx: TransactionSQL3): Promise<void>;
21
+ down(tx: TransactionSQL3): Promise<void>;
22
+ getVersion(): string;
23
+ getDependencies(): MigrationClassType3[];
24
+ }
25
+ import { IMigration as IMigration4, MigrationClassType as MigrationClassType4 } from "@ooneex/migrations";
26
+ import { TransactionSQL as TransactionSQL4 } from "bun";
27
+ declare class Migration20251225173351645 implements IMigration4 {
28
+ up(tx: TransactionSQL4): Promise<void>;
29
+ down(tx: TransactionSQL4): Promise<void>;
30
+ getVersion(): string;
31
+ getDependencies(): MigrationClassType4[];
32
+ }
33
+ import { IMigration as IMigration5, MigrationClassType as MigrationClassType5 } from "@ooneex/migrations";
34
+ import { TransactionSQL as TransactionSQL5 } from "bun";
35
+ declare class Migration20251225173352645 implements IMigration5 {
36
+ up(tx: TransactionSQL5): Promise<void>;
37
+ down(tx: TransactionSQL5): Promise<void>;
38
+ getVersion(): string;
39
+ getDependencies(): MigrationClassType5[];
40
+ }
41
+ export { Migration20251225173352645, Migration20251225173351645, Migration20251225173350644, Migration20251225173349644, Migration20251225173348643 };
@@ -0,0 +1,57 @@
1
+ // @bun
2
+ import{b as i}from"../../../shared/chunk-qrs0g3m9.js";import{c as N}from"../../../shared/chunk-aj0aak90.js";import{d as E,e}from"../../../shared/chunk-31y260d6.js";import{Ha as a}from"../../../shared/chunk-59vwmfpm.js";import{decorator as s}from"@ooneex/migrations";class T{async up(t){await t`
3
+ CREATE TABLE IF NOT EXISTS stats (
4
+ id VARCHAR(25) PRIMARY KEY,
5
+ comments_count INT DEFAULT 0 NOT NULL,
6
+ likes_count INT DEFAULT 0 NOT NULL,
7
+ dislikes_count INT DEFAULT 0 NOT NULL,
8
+ shares_count INT DEFAULT 0 NOT NULL,
9
+ views_count INT DEFAULT 0 NOT NULL,
10
+ downloads_count INT DEFAULT 0 NOT NULL,
11
+ saves_count INT DEFAULT 0 NOT NULL,
12
+ bookmarks_count INT DEFAULT 0 NOT NULL,
13
+ reposts_count INT DEFAULT 0 NOT NULL,
14
+ impressions_count INT DEFAULT 0 NOT NULL,
15
+ clicks_count INT DEFAULT 0 NOT NULL,
16
+ engagement_rate DECIMAL(5, 4) DEFAULT 0 NOT NULL,
17
+ reach INT DEFAULT 0 NOT NULL,
18
+ followers_count INT DEFAULT 0 NOT NULL,
19
+ following_count INT DEFAULT 0 NOT NULL,
20
+ blocked_count INT DEFAULT 0 NOT NULL,
21
+ reports_count INT DEFAULT 0 NOT NULL,
22
+ is_locked BOOLEAN DEFAULT false,
23
+ locked_at TIMESTAMPTZ,
24
+ is_blocked BOOLEAN DEFAULT false,
25
+ blocked_at TIMESTAMPTZ,
26
+ block_reason TEXT,
27
+ is_public BOOLEAN DEFAULT true,
28
+ language VARCHAR(10),
29
+ created_at TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP,
30
+ updated_at TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP,
31
+ deleted_at TIMESTAMPTZ
32
+ )
33
+ `,await t`
34
+ CREATE INDEX IF NOT EXISTS idx_stats_language ON stats(language)
35
+ `,await t`
36
+ CREATE INDEX IF NOT EXISTS idx_stats_deleted_at ON stats(deleted_at)
37
+ `,await t`
38
+ CREATE INDEX IF NOT EXISTS idx_stats_engagement_rate ON stats(engagement_rate DESC)
39
+ `,await t`
40
+ CREATE INDEX IF NOT EXISTS idx_stats_views_count ON stats(views_count DESC)
41
+ `,await t`
42
+ CREATE INDEX IF NOT EXISTS idx_stats_likes_count ON stats(likes_count DESC)
43
+ `,await t`
44
+ CREATE INDEX IF NOT EXISTS idx_stats_popular ON stats(is_public, views_count DESC, likes_count DESC) WHERE deleted_at IS NULL
45
+ `,await t`
46
+ CREATE INDEX IF NOT EXISTS idx_stats_followers_count ON stats(followers_count DESC)
47
+ `,await t`
48
+ CREATE INDEX IF NOT EXISTS idx_stats_is_public ON stats(is_public) WHERE deleted_at IS NULL
49
+ `,await t`
50
+ CREATE INDEX IF NOT EXISTS idx_stats_updated_at ON stats(updated_at DESC)
51
+ `,await t`
52
+ CREATE INDEX IF NOT EXISTS idx_stats_created_at ON stats(created_at DESC)
53
+ `,await t`
54
+ CREATE INDEX IF NOT EXISTS idx_stats_active ON stats(is_blocked, is_locked) WHERE deleted_at IS NULL AND is_blocked = false
55
+ `}async down(t){await t`DROP TABLE IF EXISTS stats CASCADE`}getVersion(){return"20251225173349644"}getDependencies(){return[]}}T=a([s.migration()],T);export{i as Migration20251225173352645,N as Migration20251225173351645,e as Migration20251225173350644,T as Migration20251225173349644,E as Migration20251225173348643};
56
+
57
+ //# debugId=5D6A1FA917F84B7264756E2164756E21
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["src/migrations/common/Migration20251225173349644.ts"],
4
+ "sourcesContent": [
5
+ "import { decorator, type IMigration, type MigrationClassType } from \"@ooneex/migrations\";\nimport type { TransactionSQL } from \"bun\";\n\n@decorator.migration()\nexport class Migration20251225173349644 implements IMigration {\n public async up(tx: TransactionSQL): Promise<void> {\n await tx`\n CREATE TABLE IF NOT EXISTS stats (\n id VARCHAR(25) PRIMARY KEY,\n comments_count INT DEFAULT 0 NOT NULL,\n likes_count INT DEFAULT 0 NOT NULL,\n dislikes_count INT DEFAULT 0 NOT NULL,\n shares_count INT DEFAULT 0 NOT NULL,\n views_count INT DEFAULT 0 NOT NULL,\n downloads_count INT DEFAULT 0 NOT NULL,\n saves_count INT DEFAULT 0 NOT NULL,\n bookmarks_count INT DEFAULT 0 NOT NULL,\n reposts_count INT DEFAULT 0 NOT NULL,\n impressions_count INT DEFAULT 0 NOT NULL,\n clicks_count INT DEFAULT 0 NOT NULL,\n engagement_rate DECIMAL(5, 4) DEFAULT 0 NOT NULL,\n reach INT DEFAULT 0 NOT NULL,\n followers_count INT DEFAULT 0 NOT NULL,\n following_count INT DEFAULT 0 NOT NULL,\n blocked_count INT DEFAULT 0 NOT NULL,\n reports_count INT DEFAULT 0 NOT NULL,\n is_locked BOOLEAN DEFAULT false,\n locked_at TIMESTAMPTZ,\n is_blocked BOOLEAN DEFAULT false,\n blocked_at TIMESTAMPTZ,\n block_reason TEXT,\n is_public BOOLEAN DEFAULT true,\n language VARCHAR(10),\n created_at TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP,\n updated_at TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP,\n deleted_at TIMESTAMPTZ\n )\n `;\n\n await tx`\n CREATE INDEX IF NOT EXISTS idx_stats_language ON stats(language)\n `;\n\n await tx`\n CREATE INDEX IF NOT EXISTS idx_stats_deleted_at ON stats(deleted_at)\n `;\n\n await tx`\n CREATE INDEX IF NOT EXISTS idx_stats_engagement_rate ON stats(engagement_rate DESC)\n `;\n\n await tx`\n CREATE INDEX IF NOT EXISTS idx_stats_views_count ON stats(views_count DESC)\n `;\n\n await tx`\n CREATE INDEX IF NOT EXISTS idx_stats_likes_count ON stats(likes_count DESC)\n `;\n\n await tx`\n CREATE INDEX IF NOT EXISTS idx_stats_popular ON stats(is_public, views_count DESC, likes_count DESC) WHERE deleted_at IS NULL\n `;\n\n await tx`\n CREATE INDEX IF NOT EXISTS idx_stats_followers_count ON stats(followers_count DESC)\n `;\n\n await tx`\n CREATE INDEX IF NOT EXISTS idx_stats_is_public ON stats(is_public) WHERE deleted_at IS NULL\n `;\n\n await tx`\n CREATE INDEX IF NOT EXISTS idx_stats_updated_at ON stats(updated_at DESC)\n `;\n\n await tx`\n CREATE INDEX IF NOT EXISTS idx_stats_created_at ON stats(created_at DESC)\n `;\n\n await tx`\n CREATE INDEX IF NOT EXISTS idx_stats_active ON stats(is_blocked, is_locked) WHERE deleted_at IS NULL AND is_blocked = false\n `;\n }\n\n public async down(tx: TransactionSQL): Promise<void> {\n await tx`DROP TABLE IF EXISTS stats CASCADE`;\n }\n\n public getVersion(): string {\n return \"20251225173349644\";\n }\n\n public getDependencies(): MigrationClassType[] {\n return [];\n }\n}\n"
6
+ ],
7
+ "mappings": ";mMAAA,4BAAS,mCAIF,cAAM,CAAiD,MAC/C,GAAE,CAAC,EAAmC,CACjD,KAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAiCN,KAAM;AAAA;AAAA,MAIN,KAAM;AAAA;AAAA,MAIN,KAAM;AAAA;AAAA,MAIN,KAAM;AAAA;AAAA,MAIN,KAAM;AAAA;AAAA,MAIN,KAAM;AAAA;AAAA,MAIN,KAAM;AAAA;AAAA,MAIN,KAAM;AAAA;AAAA,MAIN,KAAM;AAAA;AAAA,MAIN,KAAM;AAAA;AAAA,MAIN,KAAM;AAAA;AAAA,WAKK,KAAI,CAAC,EAAmC,CACnD,KAAM,uCAGD,UAAU,EAAW,CAC1B,MAAO,oBAGF,eAAe,EAAyB,CAC7C,MAAO,CAAC,EAEZ,CA3Fa,EAAN,GADN,EAAU,UAAU,GACR",
8
+ "debugId": "5D6A1FA917F84B7264756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,9 @@
1
+ import { IMigration, MigrationClassType } from "@ooneex/migrations";
2
+ import { TransactionSQL } from "bun";
3
+ declare class Migration20251229124336890 implements IMigration {
4
+ up(tx: TransactionSQL): Promise<void>;
5
+ down(tx: TransactionSQL): Promise<void>;
6
+ getVersion(): string;
7
+ getDependencies(): MigrationClassType[];
8
+ }
9
+ export { Migration20251229124336890 };
@@ -0,0 +1,40 @@
1
+ // @bun
2
+ import{Ha as a}from"../../../shared/chunk-59vwmfpm.js";import{decorator as E}from"@ooneex/migrations";class i{async up(e){await e`
3
+ CREATE TABLE IF NOT EXISTS countries (
4
+ id VARCHAR(25) PRIMARY KEY,
5
+ name VARCHAR(100) NOT NULL,
6
+ code VARCHAR(10) NOT NULL UNIQUE,
7
+ is_locked BOOLEAN DEFAULT false,
8
+ locked_at TIMESTAMPTZ,
9
+ is_blocked BOOLEAN DEFAULT false,
10
+ blocked_at TIMESTAMPTZ,
11
+ block_reason TEXT,
12
+ is_public BOOLEAN DEFAULT true,
13
+ language VARCHAR(10),
14
+ created_at TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP,
15
+ updated_at TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP,
16
+ deleted_at TIMESTAMPTZ
17
+ )
18
+ `,await e`
19
+ CREATE INDEX IF NOT EXISTS idx_countries_code ON countries(code)
20
+ `,await e`
21
+ CREATE INDEX IF NOT EXISTS idx_countries_name ON countries(name)
22
+ `,await e`
23
+ CREATE INDEX IF NOT EXISTS idx_countries_language ON countries(language)
24
+ `,await e`
25
+ CREATE INDEX IF NOT EXISTS idx_countries_deleted_at ON countries(deleted_at)
26
+ `,await e`
27
+ CREATE INDEX IF NOT EXISTS idx_countries_is_public ON countries(is_public) WHERE deleted_at IS NULL
28
+ `,await e`
29
+ CREATE INDEX IF NOT EXISTS idx_countries_is_public_language ON countries(is_public, language) WHERE deleted_at IS NULL
30
+ `,await e`
31
+ CREATE INDEX IF NOT EXISTS idx_countries_blocked ON countries(is_blocked, blocked_at) WHERE is_blocked = true
32
+ `,await e`
33
+ CREATE INDEX IF NOT EXISTS idx_countries_updated_at ON countries(updated_at DESC)
34
+ `,await e`
35
+ CREATE INDEX IF NOT EXISTS idx_countries_created_at ON countries(created_at DESC)
36
+ `,await e`
37
+ CREATE INDEX IF NOT EXISTS idx_countries_active ON countries(is_blocked, is_locked) WHERE deleted_at IS NULL AND is_blocked = false
38
+ `}async down(e){await e`DROP TABLE IF EXISTS countries CASCADE`}getVersion(){return"20251229124336890"}getDependencies(){return[]}}i=a([E.migration()],i);export{i as Migration20251229124336890};
39
+
40
+ //# debugId=1B8995BC4696FC3B64756E2164756E21
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["src/migrations/country/Migration20251229124336890.ts"],
4
+ "sourcesContent": [
5
+ "import { decorator, type IMigration, type MigrationClassType } from \"@ooneex/migrations\";\nimport type { TransactionSQL } from \"bun\";\n\n@decorator.migration()\nexport class Migration20251229124336890 implements IMigration {\n public async up(tx: TransactionSQL): Promise<void> {\n await tx`\n CREATE TABLE IF NOT EXISTS countries (\n id VARCHAR(25) PRIMARY KEY,\n name VARCHAR(100) NOT NULL,\n code VARCHAR(10) NOT NULL UNIQUE,\n is_locked BOOLEAN DEFAULT false,\n locked_at TIMESTAMPTZ,\n is_blocked BOOLEAN DEFAULT false,\n blocked_at TIMESTAMPTZ,\n block_reason TEXT,\n is_public BOOLEAN DEFAULT true,\n language VARCHAR(10),\n created_at TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP,\n updated_at TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP,\n deleted_at TIMESTAMPTZ\n )\n `;\n\n await tx`\n CREATE INDEX IF NOT EXISTS idx_countries_code ON countries(code)\n `;\n\n await tx`\n CREATE INDEX IF NOT EXISTS idx_countries_name ON countries(name)\n `;\n\n await tx`\n CREATE INDEX IF NOT EXISTS idx_countries_language ON countries(language)\n `;\n\n await tx`\n CREATE INDEX IF NOT EXISTS idx_countries_deleted_at ON countries(deleted_at)\n `;\n\n await tx`\n CREATE INDEX IF NOT EXISTS idx_countries_is_public ON countries(is_public) WHERE deleted_at IS NULL\n `;\n\n await tx`\n CREATE INDEX IF NOT EXISTS idx_countries_is_public_language ON countries(is_public, language) WHERE deleted_at IS NULL\n `;\n\n await tx`\n CREATE INDEX IF NOT EXISTS idx_countries_blocked ON countries(is_blocked, blocked_at) WHERE is_blocked = true\n `;\n\n await tx`\n CREATE INDEX IF NOT EXISTS idx_countries_updated_at ON countries(updated_at DESC)\n `;\n\n await tx`\n CREATE INDEX IF NOT EXISTS idx_countries_created_at ON countries(created_at DESC)\n `;\n\n await tx`\n CREATE INDEX IF NOT EXISTS idx_countries_active ON countries(is_blocked, is_locked) WHERE deleted_at IS NULL AND is_blocked = false\n `;\n }\n\n public async down(tx: TransactionSQL): Promise<void> {\n await tx`DROP TABLE IF EXISTS countries CASCADE`;\n }\n\n public getVersion(): string {\n return \"20251229124336890\";\n }\n\n public getDependencies(): MigrationClassType[] {\n return [];\n }\n}\n"
6
+ ],
7
+ "mappings": ";uDAAA,oBAAS,2BAIF,MAAM,CAAiD,MAC/C,GAAE,CAAC,EAAmC,CACjD,KAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAkBN,KAAM;AAAA;AAAA,MAIN,KAAM;AAAA;AAAA,MAIN,KAAM;AAAA;AAAA,MAIN,KAAM;AAAA;AAAA,MAIN,KAAM;AAAA;AAAA,MAIN,KAAM;AAAA;AAAA,MAIN,KAAM;AAAA;AAAA,MAIN,KAAM;AAAA;AAAA,MAIN,KAAM;AAAA;AAAA,MAIN,KAAM;AAAA;AAAA,WAKK,KAAI,CAAC,EAAmC,CACnD,KAAM,2CAGD,UAAU,EAAW,CAC1B,MAAO,oBAGF,eAAe,EAAyB,CAC7C,MAAO,CAAC,EAEZ,CAxEa,EAAN,GADN,EAAU,UAAU,GACR",
8
+ "debugId": "1B8995BC4696FC3B64756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,9 @@
1
+ import { IMigration, MigrationClassType } from "@ooneex/migrations";
2
+ import { TransactionSQL } from "bun";
3
+ declare class Migration20251229124723709 implements IMigration {
4
+ up(tx: TransactionSQL): Promise<void>;
5
+ down(tx: TransactionSQL): Promise<void>;
6
+ getVersion(): string;
7
+ getDependencies(): MigrationClassType[];
8
+ }
9
+ export { Migration20251229124723709 };
@@ -0,0 +1,44 @@
1
+ // @bun
2
+ import{Ha as c}from"../../../shared/chunk-59vwmfpm.js";import{decorator as E}from"@ooneex/migrations";class i{async up(e){await e`
3
+ CREATE TABLE IF NOT EXISTS currencies (
4
+ id VARCHAR(25) PRIMARY KEY,
5
+ code VARCHAR(10) NOT NULL UNIQUE,
6
+ name VARCHAR(100) NOT NULL,
7
+ icon VARCHAR(20),
8
+ symbol VARCHAR(20) NOT NULL,
9
+ is_locked BOOLEAN DEFAULT false,
10
+ locked_at TIMESTAMPTZ,
11
+ is_blocked BOOLEAN DEFAULT false,
12
+ blocked_at TIMESTAMPTZ,
13
+ block_reason TEXT,
14
+ is_public BOOLEAN DEFAULT true,
15
+ language VARCHAR(10),
16
+ created_at TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP,
17
+ updated_at TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP,
18
+ deleted_at TIMESTAMPTZ
19
+ )
20
+ `,await e`
21
+ CREATE INDEX IF NOT EXISTS idx_currencies_code ON currencies(code)
22
+ `,await e`
23
+ CREATE INDEX IF NOT EXISTS idx_currencies_name ON currencies(name)
24
+ `,await e`
25
+ CREATE INDEX IF NOT EXISTS idx_currencies_symbol ON currencies(symbol)
26
+ `,await e`
27
+ CREATE INDEX IF NOT EXISTS idx_currencies_language ON currencies(language)
28
+ `,await e`
29
+ CREATE INDEX IF NOT EXISTS idx_currencies_deleted_at ON currencies(deleted_at)
30
+ `,await e`
31
+ CREATE INDEX IF NOT EXISTS idx_currencies_is_public ON currencies(is_public) WHERE deleted_at IS NULL
32
+ `,await e`
33
+ CREATE INDEX IF NOT EXISTS idx_currencies_is_public_language ON currencies(is_public, language) WHERE deleted_at IS NULL
34
+ `,await e`
35
+ CREATE INDEX IF NOT EXISTS idx_currencies_blocked ON currencies(is_blocked, blocked_at) WHERE is_blocked = true
36
+ `,await e`
37
+ CREATE INDEX IF NOT EXISTS idx_currencies_updated_at ON currencies(updated_at DESC)
38
+ `,await e`
39
+ CREATE INDEX IF NOT EXISTS idx_currencies_created_at ON currencies(created_at DESC)
40
+ `,await e`
41
+ CREATE INDEX IF NOT EXISTS idx_currencies_active ON currencies(is_blocked, is_locked) WHERE deleted_at IS NULL AND is_blocked = false
42
+ `}async down(e){await e`DROP TABLE IF EXISTS currencies CASCADE`}getVersion(){return"20251229124723709"}getDependencies(){return[]}}i=c([E.migration()],i);export{i as Migration20251229124723709};
43
+
44
+ //# debugId=0CD0FA4311687EF464756E2164756E21
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["src/migrations/currency/Migration20251229124723709.ts"],
4
+ "sourcesContent": [
5
+ "import { decorator, type IMigration, type MigrationClassType } from \"@ooneex/migrations\";\nimport type { TransactionSQL } from \"bun\";\n\n@decorator.migration()\nexport class Migration20251229124723709 implements IMigration {\n public async up(tx: TransactionSQL): Promise<void> {\n await tx`\n CREATE TABLE IF NOT EXISTS currencies (\n id VARCHAR(25) PRIMARY KEY,\n code VARCHAR(10) NOT NULL UNIQUE,\n name VARCHAR(100) NOT NULL,\n icon VARCHAR(20),\n symbol VARCHAR(20) NOT NULL,\n is_locked BOOLEAN DEFAULT false,\n locked_at TIMESTAMPTZ,\n is_blocked BOOLEAN DEFAULT false,\n blocked_at TIMESTAMPTZ,\n block_reason TEXT,\n is_public BOOLEAN DEFAULT true,\n language VARCHAR(10),\n created_at TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP,\n updated_at TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP,\n deleted_at TIMESTAMPTZ\n )\n `;\n\n await tx`\n CREATE INDEX IF NOT EXISTS idx_currencies_code ON currencies(code)\n `;\n\n await tx`\n CREATE INDEX IF NOT EXISTS idx_currencies_name ON currencies(name)\n `;\n\n await tx`\n CREATE INDEX IF NOT EXISTS idx_currencies_symbol ON currencies(symbol)\n `;\n\n await tx`\n CREATE INDEX IF NOT EXISTS idx_currencies_language ON currencies(language)\n `;\n\n await tx`\n CREATE INDEX IF NOT EXISTS idx_currencies_deleted_at ON currencies(deleted_at)\n `;\n\n await tx`\n CREATE INDEX IF NOT EXISTS idx_currencies_is_public ON currencies(is_public) WHERE deleted_at IS NULL\n `;\n\n await tx`\n CREATE INDEX IF NOT EXISTS idx_currencies_is_public_language ON currencies(is_public, language) WHERE deleted_at IS NULL\n `;\n\n await tx`\n CREATE INDEX IF NOT EXISTS idx_currencies_blocked ON currencies(is_blocked, blocked_at) WHERE is_blocked = true\n `;\n\n await tx`\n CREATE INDEX IF NOT EXISTS idx_currencies_updated_at ON currencies(updated_at DESC)\n `;\n\n await tx`\n CREATE INDEX IF NOT EXISTS idx_currencies_created_at ON currencies(created_at DESC)\n `;\n\n await tx`\n CREATE INDEX IF NOT EXISTS idx_currencies_active ON currencies(is_blocked, is_locked) WHERE deleted_at IS NULL AND is_blocked = false\n `;\n }\n\n public async down(tx: TransactionSQL): Promise<void> {\n await tx`DROP TABLE IF EXISTS currencies CASCADE`;\n }\n\n public getVersion(): string {\n return \"20251229124723709\";\n }\n\n public getDependencies(): MigrationClassType[] {\n return [];\n }\n}\n"
6
+ ],
7
+ "mappings": ";uDAAA,oBAAS,2BAIF,MAAM,CAAiD,MAC/C,GAAE,CAAC,EAAmC,CACjD,KAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAoBN,KAAM;AAAA;AAAA,MAIN,KAAM;AAAA;AAAA,MAIN,KAAM;AAAA;AAAA,MAIN,KAAM;AAAA;AAAA,MAIN,KAAM;AAAA;AAAA,MAIN,KAAM;AAAA;AAAA,MAIN,KAAM;AAAA;AAAA,MAIN,KAAM;AAAA;AAAA,MAIN,KAAM;AAAA;AAAA,MAIN,KAAM;AAAA;AAAA,MAIN,KAAM;AAAA;AAAA,WAKK,KAAI,CAAC,EAAmC,CACnD,KAAM,4CAGD,UAAU,EAAW,CAC1B,MAAO,oBAGF,eAAe,EAAyB,CAC7C,MAAO,CAAC,EAEZ,CA9Ea,EAAN,GADN,EAAU,UAAU,GACR",
8
+ "debugId": "0CD0FA4311687EF464756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,81 @@
1
+ import { IMigration, MigrationClassType } from "@ooneex/migrations";
2
+ import { TransactionSQL } from "bun";
3
+ declare class Migration20251225174626782 implements IMigration {
4
+ up(tx: TransactionSQL): Promise<void>;
5
+ down(tx: TransactionSQL): Promise<void>;
6
+ getVersion(): string;
7
+ getDependencies(): MigrationClassType[];
8
+ }
9
+ import { IMigration as IMigration2, MigrationClassType as MigrationClassType2 } from "@ooneex/migrations";
10
+ import { TransactionSQL as TransactionSQL2 } from "bun";
11
+ declare class Migration20251225174627783 implements IMigration2 {
12
+ up(tx: TransactionSQL2): Promise<void>;
13
+ down(tx: TransactionSQL2): Promise<void>;
14
+ getVersion(): string;
15
+ getDependencies(): MigrationClassType2[];
16
+ }
17
+ import { IMigration as IMigration3, MigrationClassType as MigrationClassType3 } from "@ooneex/migrations";
18
+ import { TransactionSQL as TransactionSQL3 } from "bun";
19
+ declare class Migration20251225174628784 implements IMigration3 {
20
+ up(tx: TransactionSQL3): Promise<void>;
21
+ down(tx: TransactionSQL3): Promise<void>;
22
+ getVersion(): string;
23
+ getDependencies(): MigrationClassType3[];
24
+ }
25
+ import { IMigration as IMigration4, MigrationClassType as MigrationClassType4 } from "@ooneex/migrations";
26
+ import { TransactionSQL as TransactionSQL4 } from "bun";
27
+ declare class Migration20251225174629784 implements IMigration4 {
28
+ up(tx: TransactionSQL4): Promise<void>;
29
+ down(tx: TransactionSQL4): Promise<void>;
30
+ getVersion(): string;
31
+ getDependencies(): MigrationClassType4[];
32
+ }
33
+ import { IMigration as IMigration5, MigrationClassType as MigrationClassType5 } from "@ooneex/migrations";
34
+ import { TransactionSQL as TransactionSQL5 } from "bun";
35
+ declare class Migration20251225174630785 implements IMigration5 {
36
+ up(tx: TransactionSQL5): Promise<void>;
37
+ down(tx: TransactionSQL5): Promise<void>;
38
+ getVersion(): string;
39
+ getDependencies(): MigrationClassType5[];
40
+ }
41
+ import { IMigration as IMigration6, MigrationClassType as MigrationClassType6 } from "@ooneex/migrations";
42
+ import { TransactionSQL as TransactionSQL6 } from "bun";
43
+ declare class Migration20251225174631785 implements IMigration6 {
44
+ up(tx: TransactionSQL6): Promise<void>;
45
+ down(tx: TransactionSQL6): Promise<void>;
46
+ getVersion(): string;
47
+ getDependencies(): MigrationClassType6[];
48
+ }
49
+ import { IMigration as IMigration7, MigrationClassType as MigrationClassType7 } from "@ooneex/migrations";
50
+ import { TransactionSQL as TransactionSQL7 } from "bun";
51
+ declare class Migration20251225174632786 implements IMigration7 {
52
+ up(tx: TransactionSQL7): Promise<void>;
53
+ down(tx: TransactionSQL7): Promise<void>;
54
+ getVersion(): string;
55
+ getDependencies(): MigrationClassType7[];
56
+ }
57
+ import { IMigration as IMigration8, MigrationClassType as MigrationClassType8 } from "@ooneex/migrations";
58
+ import { TransactionSQL as TransactionSQL8 } from "bun";
59
+ declare class Migration20251225174633787 implements IMigration8 {
60
+ up(tx: TransactionSQL8): Promise<void>;
61
+ down(tx: TransactionSQL8): Promise<void>;
62
+ getVersion(): string;
63
+ getDependencies(): MigrationClassType8[];
64
+ }
65
+ import { IMigration as IMigration9, MigrationClassType as MigrationClassType9 } from "@ooneex/migrations";
66
+ import { TransactionSQL as TransactionSQL9 } from "bun";
67
+ declare class Migration20251225174634788 implements IMigration9 {
68
+ up(tx: TransactionSQL9): Promise<void>;
69
+ down(tx: TransactionSQL9): Promise<void>;
70
+ getVersion(): string;
71
+ getDependencies(): MigrationClassType9[];
72
+ }
73
+ import { IMigration as IMigration10, MigrationClassType as MigrationClassType10 } from "@ooneex/migrations";
74
+ import { TransactionSQL as TransactionSQL10 } from "bun";
75
+ declare class Migration20251225174635789 implements IMigration10 {
76
+ up(tx: TransactionSQL10): Promise<void>;
77
+ down(tx: TransactionSQL10): Promise<void>;
78
+ getVersion(): string;
79
+ getDependencies(): MigrationClassType10[];
80
+ }
81
+ export { Migration20251225174635789, Migration20251225174634788, Migration20251225174633787, Migration20251225174632786, Migration20251225174631785, Migration20251225174630785, Migration20251225174629784, Migration20251225174628784, Migration20251225174627783, Migration20251225174626782 };