@openora/core 0.4.1-canary.36 → 0.4.1-canary.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.tsbuildinfo +1 -1
- package/dist/analytics/__tests__/analytics.contract.test.d.ts +2 -0
- package/dist/analytics/__tests__/analytics.contract.test.d.ts.map +1 -0
- package/dist/analytics/__tests__/analytics.contract.test.js +24 -0
- package/dist/analytics/__tests__/analytics.contract.test.js.map +1 -0
- package/dist/analytics/__tests__/analytics.router.test.d.ts +2 -0
- package/dist/analytics/__tests__/analytics.router.test.d.ts.map +1 -0
- package/dist/analytics/__tests__/analytics.router.test.js +56 -0
- package/dist/analytics/__tests__/analytics.router.test.js.map +1 -0
- package/dist/analytics/__tests__/financial-analytics.service.test.d.ts +2 -0
- package/dist/analytics/__tests__/financial-analytics.service.test.d.ts.map +1 -0
- package/dist/analytics/__tests__/financial-analytics.service.test.js +87 -0
- package/dist/analytics/__tests__/financial-analytics.service.test.js.map +1 -0
- package/dist/analytics/__tests__/funnel-analytics.service.test.d.ts +2 -0
- package/dist/analytics/__tests__/funnel-analytics.service.test.d.ts.map +1 -0
- package/dist/analytics/__tests__/funnel-analytics.service.test.js +42 -0
- package/dist/analytics/__tests__/funnel-analytics.service.test.js.map +1 -0
- package/dist/analytics/contract/financial.d.ts +122 -0
- package/dist/analytics/contract/financial.d.ts.map +1 -0
- package/dist/analytics/contract/financial.js +47 -0
- package/dist/analytics/contract/financial.js.map +1 -0
- package/dist/analytics/contract/funnel.d.ts +52 -0
- package/dist/analytics/contract/funnel.d.ts.map +1 -0
- package/dist/analytics/contract/funnel.js +24 -0
- package/dist/analytics/contract/funnel.js.map +1 -0
- package/dist/analytics/contract/index.d.ts +68 -0
- package/dist/analytics/contract/index.d.ts.map +1 -0
- package/dist/analytics/contract/index.js +9 -0
- package/dist/analytics/contract/index.js.map +1 -0
- package/dist/analytics/index.d.ts +2 -0
- package/dist/analytics/index.d.ts.map +1 -0
- package/dist/analytics/index.js +2 -0
- package/dist/analytics/index.js.map +1 -0
- package/dist/analytics/plugin.d.ts +3 -0
- package/dist/analytics/plugin.d.ts.map +1 -0
- package/dist/analytics/plugin.js +13 -0
- package/dist/analytics/plugin.js.map +1 -0
- package/dist/analytics/router/index.d.ts +69 -0
- package/dist/analytics/router/index.d.ts.map +1 -0
- package/dist/analytics/router/index.js +24 -0
- package/dist/analytics/router/index.js.map +1 -0
- package/dist/analytics/server.d.ts +5 -0
- package/dist/analytics/server.d.ts.map +1 -0
- package/dist/analytics/server.js +5 -0
- package/dist/analytics/server.js.map +1 -0
- package/dist/analytics/service/financial-analytics.service.d.ts +14 -0
- package/dist/analytics/service/financial-analytics.service.d.ts.map +1 -0
- package/dist/analytics/service/financial-analytics.service.js +148 -0
- package/dist/analytics/service/financial-analytics.service.js.map +1 -0
- package/dist/analytics/service/funnel-analytics.service.d.ts +11 -0
- package/dist/analytics/service/funnel-analytics.service.d.ts.map +1 -0
- package/dist/analytics/service/funnel-analytics.service.js +86 -0
- package/dist/analytics/service/funnel-analytics.service.js.map +1 -0
- package/dist/audit/service/audit.service.d.ts +2 -2
- package/dist/casino/gaming/__tests__/gaming.service.test.js +65 -18
- package/dist/casino/gaming/__tests__/gaming.service.test.js.map +1 -1
- package/dist/casino/gaming/contract/index.d.ts +3 -0
- package/dist/casino/gaming/contract/index.d.ts.map +1 -1
- package/dist/casino/gaming/contract/index.js +4 -0
- package/dist/casino/gaming/contract/index.js.map +1 -1
- package/dist/casino/gaming/plugin.d.ts.map +1 -1
- package/dist/casino/gaming/plugin.js +3 -2
- package/dist/casino/gaming/plugin.js.map +1 -1
- package/dist/casino/gaming/router/index.d.ts +1 -0
- package/dist/casino/gaming/router/index.d.ts.map +1 -1
- package/dist/casino/gaming/router/index.js +6 -2
- package/dist/casino/gaming/router/index.js.map +1 -1
- package/dist/casino/gaming/service/gaming.service.d.ts +5 -3
- package/dist/casino/gaming/service/gaming.service.d.ts.map +1 -1
- package/dist/casino/gaming/service/gaming.service.js +26 -12
- package/dist/casino/gaming/service/gaming.service.js.map +1 -1
- package/dist/contracts/schemas/index.d.ts +1 -0
- package/dist/contracts/schemas/index.d.ts.map +1 -1
- package/dist/contracts/schemas/index.js +1 -0
- package/dist/contracts/schemas/index.js.map +1 -1
- package/dist/contracts/schemas/reporting.d.ts +15 -0
- package/dist/contracts/schemas/reporting.d.ts.map +1 -0
- package/dist/contracts/schemas/reporting.js +12 -0
- package/dist/contracts/schemas/reporting.js.map +1 -0
- package/dist/iam/service/iam.service.d.ts +1 -1
- package/dist/pam/identity/drizzle/migrations/0005_daily_black_tom.sql +1 -0
- package/dist/pam/identity/drizzle/migrations/meta/0005_snapshot.json +695 -0
- package/dist/pam/identity/drizzle/migrations/meta/_journal.json +7 -0
- package/dist/pam/identity/schema/index.d.ts.map +1 -1
- package/dist/pam/identity/schema/index.js +4 -1
- package/dist/pam/identity/schema/index.js.map +1 -1
- package/dist/server/plugin-host/core-plugins.d.ts.map +1 -1
- package/dist/server/plugin-host/core-plugins.js +1 -0
- package/dist/server/plugin-host/core-plugins.js.map +1 -1
- package/dist/wallet/drizzle/migrations/0003_certain_ogun.sql +2 -0
- package/dist/wallet/drizzle/migrations/meta/0003_snapshot.json +567 -0
- package/dist/wallet/drizzle/migrations/meta/_journal.json +7 -0
- package/dist/wallet/schema/index.d.ts.map +1 -1
- package/dist/wallet/schema/index.js +2 -0
- package/dist/wallet/schema/index.js.map +1 -1
- package/package.json +21 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/pam/identity/schema/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,aAAa,mEAA+B,CAAC;AAE1D,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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trigram GIN index so the back-office player search (`ILIKE '%term%'` on email)
|
|
45
45
|
// is index-backed instead of a seq scan. Requires the pg_trgm extension.
|
|
46
|
-
(t) => [
|
|
46
|
+
(t) => [
|
|
47
|
+
index('user_email_trgm_idx').using('gin', sql `${t.email} gin_trgm_ops`),
|
|
48
|
+
index('user_created_at_idx').on(t.createdAt),
|
|
49
|
+
]);
|
|
47
50
|
export const session = pgTable('session', {
|
|
48
51
|
id: uuid().primaryKey().defaultRandom(),
|
|
49
52
|
expiresAt: timestamp({ withTimezone: true }).notNull(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/pam/identity/schema/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,EACL,OAAO,EACP,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,SAAS,EACT,KAAK,EACL,OAAO,GACR,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEjD,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;AAE1D,MAAM,CAAC,MAAM,IAAI,GAAG,OAAO,CACzB,MAAM,EACN;IACE,EAAE,EAAE,IAAI,EAAE,CAAC,UAAU,EAAE,CAAC,aAAa,EAAE;IACvC,IAAI,EAAE,IAAI,EAAE,CAAC,OAAO,EAAE;IACtB,KAAK,EAAE,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC,MAAM,EAAE;IAChC,aAAa,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IACjD,KAAK,EAAE,IAAI,EAAE;IACb,KAAK,EAAE,aAAa,EAAE,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC;IAClD,QAAQ,EAAE,IAAI,EAAE,CAAC,OAAO,EAAE,CAA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,MAAM,aAAa,GAAG,OAAO,CAClC,iBAAiB,EACjB;IACE,EAAE,EAAE,IAAI,EAAE,CAAC,UAAU,EAAE,CAAC,aAAa,EAAE;IACvC,MAAM,EAAE,IAAI,EAAE;SACX,OAAO,EAAE;SACT,MAAM,EAAE;SACR,UAAU,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IACrD,KAAK,EAAE,IAAI,EAAE,CAAC,OAAO,EAAE;IACvB,QAAQ,EAAE,IAAI,EAAE,CAAC,OAAO,EAAE;IAC1B,SAAS,EAAE,SAAS,CAAC,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,EAAE;IACtD,cAAc,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAC9C,SAAS,EAAE,SAAS,CAAC,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,UAAU,EAAE;CACpE,EACD,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,2BAA2B,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CACxD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-plugins.d.ts","sourceRoot":"","sources":["../../../src/server/plugin-host/core-plugins.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"core-plugins.d.ts","sourceRoot":"","sources":["../../../src/server/plugin-host/core-plugins.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAuBrD;;;;;;;;;;;;GAYG;AACH,wBAAgB,WAAW,IAAI,WAAW,EAAE,CAK3C"}
|
|
@@ -13,6 +13,7 @@ const CORE_PLUGIN_MODULES = [
|
|
|
13
13
|
{ id: 'profile', specifier: '@openora/core/pam/plugins/profile' },
|
|
14
14
|
{ id: 'tag', specifier: '@openora/core/pam/plugins/tag' },
|
|
15
15
|
{ id: 'admin-console', specifier: '@openora/core/admin-console/plugin' },
|
|
16
|
+
{ id: 'analytics', specifier: '@openora/core/analytics/plugin' },
|
|
16
17
|
{ id: 'player-note', specifier: '@openora/core/pam/plugins/player-note' },
|
|
17
18
|
{ id: 'cms', specifier: '@openora/core/cms/plugins/cms' },
|
|
18
19
|
{ id: 'player-management', specifier: '@openora/core/pam/plugins/player-management' },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-plugins.js","sourceRoot":"","sources":["../../../src/server/plugin-host/core-plugins.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAG5C,MAAM,WAAW,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAEnD,MAAM,mBAAmB,GAAqD;IAC5E,EAAE,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,4BAA4B,EAAE;IACxD,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,0BAA0B,EAAE;IACpD,EAAE,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,oCAAoC,EAAE;IACnE,EAAE,EAAE,EAAE,eAAe,EAAE,SAAS,EAAE,gDAAgD,EAAE;IACpF,EAAE,EAAE,EAAE,YAAY,EAAE,SAAS,EAAE,6CAA6C,EAAE;IAC9E,EAAE,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,qCAAqC,EAAE;IAClE,EAAE,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,qCAAqC,EAAE;IAClE,EAAE,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,oCAAoC,EAAE;IAChE,EAAE,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,uCAAuC,EAAE;IAClE,EAAE,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,mCAA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AE,QAAQ,EAAE,SAAS,EAAE,qCAAqC,EAAE;IAClE,EAAE,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,oCAAoC,EAAE;IAChE,EAAE,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,uCAAuC,EAAE;IAClE,EAAE,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,mCAAmC,EAAE;IACjE,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,+BAA+B,EAAE;IACzD,EAAE,EAAE,EAAE,eAAe,EAAE,SAAS,EAAE,oCAAoC,EAAE;IACxE,EAAE,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,gCAAgC,EAAE;IAChE,EAAE,EAAE,EAAE,aAAa,EAAE,SAAS,EAAE,uCAAuC,EAAE;IACzE,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,+BAA+B,EAAE;IACzD,EAAE,EAAE,EAAE,mBAAmB,EAAE,SAAS,EAAE,6CAA6C,EAAE;CACtF,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,WAAW;IACzB,OAAO,mBAAmB,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CAAC;QACrD,EAAE;QACF,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,SAAS,CAAC;KACrC,CAAC,CAAC,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
CREATE INDEX "wallet_transaction_status_type_created_at_idx" ON "wallet_transaction" USING btree ("status","type","created_at");--> statement-breakpoint
|
|
2
|
+
CREATE INDEX "wallet_transaction_wallet_id_type_status_idx" ON "wallet_transaction" USING btree ("wallet_id","type","status");
|
|
@@ -0,0 +1,567 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "dc212a38-53e8-4ed3-9b0b-4e6eb50d9477",
|
|
3
|
+
"prevId": "726e1ddb-ace9-4680-8f91-9708c79b80d5",
|
|
4
|
+
"version": "7",
|
|
5
|
+
"dialect": "postgresql",
|
|
6
|
+
"tables": {
|
|
7
|
+
"public.auto_withdrawal_rule": {
|
|
8
|
+
"name": "auto_withdrawal_rule",
|
|
9
|
+
"schema": "",
|
|
10
|
+
"columns": {
|
|
11
|
+
"id": {
|
|
12
|
+
"name": "id",
|
|
13
|
+
"type": "uuid",
|
|
14
|
+
"primaryKey": true,
|
|
15
|
+
"notNull": true,
|
|
16
|
+
"default": "gen_random_uuid()"
|
|
17
|
+
},
|
|
18
|
+
"user_id": {
|
|
19
|
+
"name": "user_id",
|
|
20
|
+
"type": "uuid",
|
|
21
|
+
"primaryKey": false,
|
|
22
|
+
"notNull": true
|
|
23
|
+
},
|
|
24
|
+
"threshold": {
|
|
25
|
+
"name": "threshold",
|
|
26
|
+
"type": "numeric(18, 8)",
|
|
27
|
+
"primaryKey": false,
|
|
28
|
+
"notNull": true
|
|
29
|
+
},
|
|
30
|
+
"reason": {
|
|
31
|
+
"name": "reason",
|
|
32
|
+
"type": "text",
|
|
33
|
+
"primaryKey": false,
|
|
34
|
+
"notNull": true
|
|
35
|
+
},
|
|
36
|
+
"created_by": {
|
|
37
|
+
"name": "created_by",
|
|
38
|
+
"type": "uuid",
|
|
39
|
+
"primaryKey": false,
|
|
40
|
+
"notNull": true
|
|
41
|
+
},
|
|
42
|
+
"created_at": {
|
|
43
|
+
"name": "created_at",
|
|
44
|
+
"type": "timestamp with time zone",
|
|
45
|
+
"primaryKey": false,
|
|
46
|
+
"notNull": true,
|
|
47
|
+
"default": "now()"
|
|
48
|
+
},
|
|
49
|
+
"updated_at": {
|
|
50
|
+
"name": "updated_at",
|
|
51
|
+
"type": "timestamp with time zone",
|
|
52
|
+
"primaryKey": false,
|
|
53
|
+
"notNull": true
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"indexes": {},
|
|
57
|
+
"foreignKeys": {},
|
|
58
|
+
"compositePrimaryKeys": {},
|
|
59
|
+
"uniqueConstraints": {
|
|
60
|
+
"auto_withdrawal_rule_user_id_unique": {
|
|
61
|
+
"name": "auto_withdrawal_rule_user_id_unique",
|
|
62
|
+
"nullsNotDistinct": false,
|
|
63
|
+
"columns": ["user_id"]
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"policies": {},
|
|
67
|
+
"checkConstraints": {},
|
|
68
|
+
"isRLSEnabled": false
|
|
69
|
+
},
|
|
70
|
+
"public.wallet": {
|
|
71
|
+
"name": "wallet",
|
|
72
|
+
"schema": "",
|
|
73
|
+
"columns": {
|
|
74
|
+
"id": {
|
|
75
|
+
"name": "id",
|
|
76
|
+
"type": "uuid",
|
|
77
|
+
"primaryKey": true,
|
|
78
|
+
"notNull": true,
|
|
79
|
+
"default": "gen_random_uuid()"
|
|
80
|
+
},
|
|
81
|
+
"user_id": {
|
|
82
|
+
"name": "user_id",
|
|
83
|
+
"type": "uuid",
|
|
84
|
+
"primaryKey": false,
|
|
85
|
+
"notNull": true
|
|
86
|
+
},
|
|
87
|
+
"balance": {
|
|
88
|
+
"name": "balance",
|
|
89
|
+
"type": "numeric(18, 8)",
|
|
90
|
+
"primaryKey": false,
|
|
91
|
+
"notNull": true,
|
|
92
|
+
"default": "'0'"
|
|
93
|
+
},
|
|
94
|
+
"currency": {
|
|
95
|
+
"name": "currency",
|
|
96
|
+
"type": "text",
|
|
97
|
+
"primaryKey": false,
|
|
98
|
+
"notNull": true,
|
|
99
|
+
"default": "'USD'"
|
|
100
|
+
},
|
|
101
|
+
"updated_at": {
|
|
102
|
+
"name": "updated_at",
|
|
103
|
+
"type": "timestamp with time zone",
|
|
104
|
+
"primaryKey": false,
|
|
105
|
+
"notNull": true
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"indexes": {},
|
|
109
|
+
"foreignKeys": {},
|
|
110
|
+
"compositePrimaryKeys": {},
|
|
111
|
+
"uniqueConstraints": {
|
|
112
|
+
"wallet_user_id_unique": {
|
|
113
|
+
"name": "wallet_user_id_unique",
|
|
114
|
+
"nullsNotDistinct": false,
|
|
115
|
+
"columns": ["user_id"]
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"policies": {},
|
|
119
|
+
"checkConstraints": {},
|
|
120
|
+
"isRLSEnabled": false
|
|
121
|
+
},
|
|
122
|
+
"public.wallet_deposit_address": {
|
|
123
|
+
"name": "wallet_deposit_address",
|
|
124
|
+
"schema": "",
|
|
125
|
+
"columns": {
|
|
126
|
+
"id": {
|
|
127
|
+
"name": "id",
|
|
128
|
+
"type": "uuid",
|
|
129
|
+
"primaryKey": true,
|
|
130
|
+
"notNull": true,
|
|
131
|
+
"default": "gen_random_uuid()"
|
|
132
|
+
},
|
|
133
|
+
"user_id": {
|
|
134
|
+
"name": "user_id",
|
|
135
|
+
"type": "uuid",
|
|
136
|
+
"primaryKey": false,
|
|
137
|
+
"notNull": true
|
|
138
|
+
},
|
|
139
|
+
"currency": {
|
|
140
|
+
"name": "currency",
|
|
141
|
+
"type": "text",
|
|
142
|
+
"primaryKey": false,
|
|
143
|
+
"notNull": true
|
|
144
|
+
},
|
|
145
|
+
"address": {
|
|
146
|
+
"name": "address",
|
|
147
|
+
"type": "text",
|
|
148
|
+
"primaryKey": false,
|
|
149
|
+
"notNull": true
|
|
150
|
+
},
|
|
151
|
+
"provider_name": {
|
|
152
|
+
"name": "provider_name",
|
|
153
|
+
"type": "text",
|
|
154
|
+
"primaryKey": false,
|
|
155
|
+
"notNull": true
|
|
156
|
+
},
|
|
157
|
+
"created_at": {
|
|
158
|
+
"name": "created_at",
|
|
159
|
+
"type": "timestamp with time zone",
|
|
160
|
+
"primaryKey": false,
|
|
161
|
+
"notNull": true,
|
|
162
|
+
"default": "now()"
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"indexes": {
|
|
166
|
+
"wallet_deposit_address_user_id_currency_idx": {
|
|
167
|
+
"name": "wallet_deposit_address_user_id_currency_idx",
|
|
168
|
+
"columns": [
|
|
169
|
+
{
|
|
170
|
+
"expression": "user_id",
|
|
171
|
+
"isExpression": false,
|
|
172
|
+
"asc": true,
|
|
173
|
+
"nulls": "last"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"expression": "currency",
|
|
177
|
+
"isExpression": false,
|
|
178
|
+
"asc": true,
|
|
179
|
+
"nulls": "last"
|
|
180
|
+
}
|
|
181
|
+
],
|
|
182
|
+
"isUnique": true,
|
|
183
|
+
"concurrently": false,
|
|
184
|
+
"method": "btree",
|
|
185
|
+
"with": {}
|
|
186
|
+
},
|
|
187
|
+
"wallet_deposit_address_address_idx": {
|
|
188
|
+
"name": "wallet_deposit_address_address_idx",
|
|
189
|
+
"columns": [
|
|
190
|
+
{
|
|
191
|
+
"expression": "address",
|
|
192
|
+
"isExpression": false,
|
|
193
|
+
"asc": true,
|
|
194
|
+
"nulls": "last"
|
|
195
|
+
}
|
|
196
|
+
],
|
|
197
|
+
"isUnique": false,
|
|
198
|
+
"concurrently": false,
|
|
199
|
+
"method": "btree",
|
|
200
|
+
"with": {}
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"foreignKeys": {},
|
|
204
|
+
"compositePrimaryKeys": {},
|
|
205
|
+
"uniqueConstraints": {},
|
|
206
|
+
"policies": {},
|
|
207
|
+
"checkConstraints": {},
|
|
208
|
+
"isRLSEnabled": false
|
|
209
|
+
},
|
|
210
|
+
"public.wallet_transaction": {
|
|
211
|
+
"name": "wallet_transaction",
|
|
212
|
+
"schema": "",
|
|
213
|
+
"columns": {
|
|
214
|
+
"id": {
|
|
215
|
+
"name": "id",
|
|
216
|
+
"type": "uuid",
|
|
217
|
+
"primaryKey": true,
|
|
218
|
+
"notNull": true,
|
|
219
|
+
"default": "gen_random_uuid()"
|
|
220
|
+
},
|
|
221
|
+
"wallet_id": {
|
|
222
|
+
"name": "wallet_id",
|
|
223
|
+
"type": "uuid",
|
|
224
|
+
"primaryKey": false,
|
|
225
|
+
"notNull": true
|
|
226
|
+
},
|
|
227
|
+
"type": {
|
|
228
|
+
"name": "type",
|
|
229
|
+
"type": "wallet_transaction_type",
|
|
230
|
+
"typeSchema": "public",
|
|
231
|
+
"primaryKey": false,
|
|
232
|
+
"notNull": true
|
|
233
|
+
},
|
|
234
|
+
"amount": {
|
|
235
|
+
"name": "amount",
|
|
236
|
+
"type": "numeric(18, 8)",
|
|
237
|
+
"primaryKey": false,
|
|
238
|
+
"notNull": true
|
|
239
|
+
},
|
|
240
|
+
"currency": {
|
|
241
|
+
"name": "currency",
|
|
242
|
+
"type": "text",
|
|
243
|
+
"primaryKey": false,
|
|
244
|
+
"notNull": true
|
|
245
|
+
},
|
|
246
|
+
"status": {
|
|
247
|
+
"name": "status",
|
|
248
|
+
"type": "wallet_transaction_status",
|
|
249
|
+
"typeSchema": "public",
|
|
250
|
+
"primaryKey": false,
|
|
251
|
+
"notNull": true,
|
|
252
|
+
"default": "'pending'"
|
|
253
|
+
},
|
|
254
|
+
"rail": {
|
|
255
|
+
"name": "rail",
|
|
256
|
+
"type": "wallet_rail",
|
|
257
|
+
"typeSchema": "public",
|
|
258
|
+
"primaryKey": false,
|
|
259
|
+
"notNull": false
|
|
260
|
+
},
|
|
261
|
+
"reviewed_by": {
|
|
262
|
+
"name": "reviewed_by",
|
|
263
|
+
"type": "uuid",
|
|
264
|
+
"primaryKey": false,
|
|
265
|
+
"notNull": false
|
|
266
|
+
},
|
|
267
|
+
"reviewed_at": {
|
|
268
|
+
"name": "reviewed_at",
|
|
269
|
+
"type": "timestamp with time zone",
|
|
270
|
+
"primaryKey": false,
|
|
271
|
+
"notNull": false
|
|
272
|
+
},
|
|
273
|
+
"review_reason": {
|
|
274
|
+
"name": "review_reason",
|
|
275
|
+
"type": "text",
|
|
276
|
+
"primaryKey": false,
|
|
277
|
+
"notNull": false
|
|
278
|
+
},
|
|
279
|
+
"provider_name": {
|
|
280
|
+
"name": "provider_name",
|
|
281
|
+
"type": "text",
|
|
282
|
+
"primaryKey": false,
|
|
283
|
+
"notNull": false
|
|
284
|
+
},
|
|
285
|
+
"provider_ref_id": {
|
|
286
|
+
"name": "provider_ref_id",
|
|
287
|
+
"type": "text",
|
|
288
|
+
"primaryKey": false,
|
|
289
|
+
"notNull": false
|
|
290
|
+
},
|
|
291
|
+
"destination_address": {
|
|
292
|
+
"name": "destination_address",
|
|
293
|
+
"type": "text",
|
|
294
|
+
"primaryKey": false,
|
|
295
|
+
"notNull": false
|
|
296
|
+
},
|
|
297
|
+
"tx_hash": {
|
|
298
|
+
"name": "tx_hash",
|
|
299
|
+
"type": "text",
|
|
300
|
+
"primaryKey": false,
|
|
301
|
+
"notNull": false
|
|
302
|
+
},
|
|
303
|
+
"metadata": {
|
|
304
|
+
"name": "metadata",
|
|
305
|
+
"type": "text",
|
|
306
|
+
"primaryKey": false,
|
|
307
|
+
"notNull": false
|
|
308
|
+
},
|
|
309
|
+
"idempotency_key": {
|
|
310
|
+
"name": "idempotency_key",
|
|
311
|
+
"type": "uuid",
|
|
312
|
+
"primaryKey": false,
|
|
313
|
+
"notNull": false
|
|
314
|
+
},
|
|
315
|
+
"created_at": {
|
|
316
|
+
"name": "created_at",
|
|
317
|
+
"type": "timestamp with time zone",
|
|
318
|
+
"primaryKey": false,
|
|
319
|
+
"notNull": true,
|
|
320
|
+
"default": "now()"
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
"indexes": {
|
|
324
|
+
"wallet_transaction_wallet_id_idx": {
|
|
325
|
+
"name": "wallet_transaction_wallet_id_idx",
|
|
326
|
+
"columns": [
|
|
327
|
+
{
|
|
328
|
+
"expression": "wallet_id",
|
|
329
|
+
"isExpression": false,
|
|
330
|
+
"asc": true,
|
|
331
|
+
"nulls": "last"
|
|
332
|
+
}
|
|
333
|
+
],
|
|
334
|
+
"isUnique": false,
|
|
335
|
+
"concurrently": false,
|
|
336
|
+
"method": "btree",
|
|
337
|
+
"with": {}
|
|
338
|
+
},
|
|
339
|
+
"wallet_transaction_created_at_idx": {
|
|
340
|
+
"name": "wallet_transaction_created_at_idx",
|
|
341
|
+
"columns": [
|
|
342
|
+
{
|
|
343
|
+
"expression": "created_at",
|
|
344
|
+
"isExpression": false,
|
|
345
|
+
"asc": true,
|
|
346
|
+
"nulls": "last"
|
|
347
|
+
}
|
|
348
|
+
],
|
|
349
|
+
"isUnique": false,
|
|
350
|
+
"concurrently": false,
|
|
351
|
+
"method": "btree",
|
|
352
|
+
"with": {}
|
|
353
|
+
},
|
|
354
|
+
"wallet_transaction_type_idx": {
|
|
355
|
+
"name": "wallet_transaction_type_idx",
|
|
356
|
+
"columns": [
|
|
357
|
+
{
|
|
358
|
+
"expression": "type",
|
|
359
|
+
"isExpression": false,
|
|
360
|
+
"asc": true,
|
|
361
|
+
"nulls": "last"
|
|
362
|
+
}
|
|
363
|
+
],
|
|
364
|
+
"isUnique": false,
|
|
365
|
+
"concurrently": false,
|
|
366
|
+
"method": "btree",
|
|
367
|
+
"with": {}
|
|
368
|
+
},
|
|
369
|
+
"wallet_transaction_status_idx": {
|
|
370
|
+
"name": "wallet_transaction_status_idx",
|
|
371
|
+
"columns": [
|
|
372
|
+
{
|
|
373
|
+
"expression": "status",
|
|
374
|
+
"isExpression": false,
|
|
375
|
+
"asc": true,
|
|
376
|
+
"nulls": "last"
|
|
377
|
+
}
|
|
378
|
+
],
|
|
379
|
+
"isUnique": false,
|
|
380
|
+
"concurrently": false,
|
|
381
|
+
"method": "btree",
|
|
382
|
+
"with": {}
|
|
383
|
+
},
|
|
384
|
+
"wallet_transaction_rail_idx": {
|
|
385
|
+
"name": "wallet_transaction_rail_idx",
|
|
386
|
+
"columns": [
|
|
387
|
+
{
|
|
388
|
+
"expression": "rail",
|
|
389
|
+
"isExpression": false,
|
|
390
|
+
"asc": true,
|
|
391
|
+
"nulls": "last"
|
|
392
|
+
}
|
|
393
|
+
],
|
|
394
|
+
"isUnique": false,
|
|
395
|
+
"concurrently": false,
|
|
396
|
+
"method": "btree",
|
|
397
|
+
"with": {}
|
|
398
|
+
},
|
|
399
|
+
"wallet_transaction_currency_idx": {
|
|
400
|
+
"name": "wallet_transaction_currency_idx",
|
|
401
|
+
"columns": [
|
|
402
|
+
{
|
|
403
|
+
"expression": "currency",
|
|
404
|
+
"isExpression": false,
|
|
405
|
+
"asc": true,
|
|
406
|
+
"nulls": "last"
|
|
407
|
+
}
|
|
408
|
+
],
|
|
409
|
+
"isUnique": false,
|
|
410
|
+
"concurrently": false,
|
|
411
|
+
"method": "btree",
|
|
412
|
+
"with": {}
|
|
413
|
+
},
|
|
414
|
+
"wallet_transaction_tx_hash_idx": {
|
|
415
|
+
"name": "wallet_transaction_tx_hash_idx",
|
|
416
|
+
"columns": [
|
|
417
|
+
{
|
|
418
|
+
"expression": "tx_hash",
|
|
419
|
+
"isExpression": false,
|
|
420
|
+
"asc": true,
|
|
421
|
+
"nulls": "last"
|
|
422
|
+
}
|
|
423
|
+
],
|
|
424
|
+
"isUnique": false,
|
|
425
|
+
"concurrently": false,
|
|
426
|
+
"method": "btree",
|
|
427
|
+
"with": {}
|
|
428
|
+
},
|
|
429
|
+
"wallet_transaction_status_type_created_at_idx": {
|
|
430
|
+
"name": "wallet_transaction_status_type_created_at_idx",
|
|
431
|
+
"columns": [
|
|
432
|
+
{
|
|
433
|
+
"expression": "status",
|
|
434
|
+
"isExpression": false,
|
|
435
|
+
"asc": true,
|
|
436
|
+
"nulls": "last"
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
"expression": "type",
|
|
440
|
+
"isExpression": false,
|
|
441
|
+
"asc": true,
|
|
442
|
+
"nulls": "last"
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
"expression": "created_at",
|
|
446
|
+
"isExpression": false,
|
|
447
|
+
"asc": true,
|
|
448
|
+
"nulls": "last"
|
|
449
|
+
}
|
|
450
|
+
],
|
|
451
|
+
"isUnique": false,
|
|
452
|
+
"concurrently": false,
|
|
453
|
+
"method": "btree",
|
|
454
|
+
"with": {}
|
|
455
|
+
},
|
|
456
|
+
"wallet_transaction_wallet_id_type_status_idx": {
|
|
457
|
+
"name": "wallet_transaction_wallet_id_type_status_idx",
|
|
458
|
+
"columns": [
|
|
459
|
+
{
|
|
460
|
+
"expression": "wallet_id",
|
|
461
|
+
"isExpression": false,
|
|
462
|
+
"asc": true,
|
|
463
|
+
"nulls": "last"
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
"expression": "type",
|
|
467
|
+
"isExpression": false,
|
|
468
|
+
"asc": true,
|
|
469
|
+
"nulls": "last"
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"expression": "status",
|
|
473
|
+
"isExpression": false,
|
|
474
|
+
"asc": true,
|
|
475
|
+
"nulls": "last"
|
|
476
|
+
}
|
|
477
|
+
],
|
|
478
|
+
"isUnique": false,
|
|
479
|
+
"concurrently": false,
|
|
480
|
+
"method": "btree",
|
|
481
|
+
"with": {}
|
|
482
|
+
},
|
|
483
|
+
"wallet_transaction_provider_ref_id_idx": {
|
|
484
|
+
"name": "wallet_transaction_provider_ref_id_idx",
|
|
485
|
+
"columns": [
|
|
486
|
+
{
|
|
487
|
+
"expression": "provider_ref_id",
|
|
488
|
+
"isExpression": false,
|
|
489
|
+
"asc": true,
|
|
490
|
+
"nulls": "last"
|
|
491
|
+
}
|
|
492
|
+
],
|
|
493
|
+
"isUnique": true,
|
|
494
|
+
"where": "\"wallet_transaction\".\"provider_ref_id\" IS NOT NULL",
|
|
495
|
+
"concurrently": false,
|
|
496
|
+
"method": "btree",
|
|
497
|
+
"with": {}
|
|
498
|
+
},
|
|
499
|
+
"wallet_transaction_wallet_id_idempotency_key_idx": {
|
|
500
|
+
"name": "wallet_transaction_wallet_id_idempotency_key_idx",
|
|
501
|
+
"columns": [
|
|
502
|
+
{
|
|
503
|
+
"expression": "wallet_id",
|
|
504
|
+
"isExpression": false,
|
|
505
|
+
"asc": true,
|
|
506
|
+
"nulls": "last"
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
"expression": "idempotency_key",
|
|
510
|
+
"isExpression": false,
|
|
511
|
+
"asc": true,
|
|
512
|
+
"nulls": "last"
|
|
513
|
+
}
|
|
514
|
+
],
|
|
515
|
+
"isUnique": true,
|
|
516
|
+
"where": "\"wallet_transaction\".\"idempotency_key\" IS NOT NULL",
|
|
517
|
+
"concurrently": false,
|
|
518
|
+
"method": "btree",
|
|
519
|
+
"with": {}
|
|
520
|
+
}
|
|
521
|
+
},
|
|
522
|
+
"foreignKeys": {
|
|
523
|
+
"wallet_transaction_wallet_id_wallet_id_fk": {
|
|
524
|
+
"name": "wallet_transaction_wallet_id_wallet_id_fk",
|
|
525
|
+
"tableFrom": "wallet_transaction",
|
|
526
|
+
"tableTo": "wallet",
|
|
527
|
+
"columnsFrom": ["wallet_id"],
|
|
528
|
+
"columnsTo": ["id"],
|
|
529
|
+
"onDelete": "no action",
|
|
530
|
+
"onUpdate": "no action"
|
|
531
|
+
}
|
|
532
|
+
},
|
|
533
|
+
"compositePrimaryKeys": {},
|
|
534
|
+
"uniqueConstraints": {},
|
|
535
|
+
"policies": {},
|
|
536
|
+
"checkConstraints": {},
|
|
537
|
+
"isRLSEnabled": false
|
|
538
|
+
}
|
|
539
|
+
},
|
|
540
|
+
"enums": {
|
|
541
|
+
"public.wallet_rail": {
|
|
542
|
+
"name": "wallet_rail",
|
|
543
|
+
"schema": "public",
|
|
544
|
+
"values": ["crypto", "fiat"]
|
|
545
|
+
},
|
|
546
|
+
"public.wallet_transaction_status": {
|
|
547
|
+
"name": "wallet_transaction_status",
|
|
548
|
+
"schema": "public",
|
|
549
|
+
"values": ["pending", "processing", "completed", "failed", "rejected", "on_hold", "cancelled"]
|
|
550
|
+
},
|
|
551
|
+
"public.wallet_transaction_type": {
|
|
552
|
+
"name": "wallet_transaction_type",
|
|
553
|
+
"schema": "public",
|
|
554
|
+
"values": ["deposit", "withdrawal", "bet", "win", "loss", "bonus", "tip"]
|
|
555
|
+
}
|
|
556
|
+
},
|
|
557
|
+
"schemas": {},
|
|
558
|
+
"sequences": {},
|
|
559
|
+
"roles": {},
|
|
560
|
+
"policies": {},
|
|
561
|
+
"views": {},
|
|
562
|
+
"_meta": {
|
|
563
|
+
"columns": {},
|
|
564
|
+
"schemas": {},
|
|
565
|
+
"tables": {}
|
|
566
|
+
}
|
|
567
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/wallet/schema/index.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,yBAAyB,uGAGrC,CAAC;AAEF,eAAO,MAAM,2BAA2B,4HAGvC,CAAC;AAEF,eAAO,MAAM,cAAc,0DAAsC,CAAC;AAElE,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQjB,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/wallet/schema/index.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,yBAAyB,uGAGrC,CAAC;AAEF,eAAO,MAAM,2BAA2B,4HAGvC,CAAC;AAEF,eAAO,MAAM,cAAc,0DAAsC,CAAC;AAElE,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQjB,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoD7B,CAAC;AAGF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAU7B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAchC,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,YAAY,CAAC;AAChD,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC,YAAY,CAAC;AACtE,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC,YAAY,CAAC;AACxE,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC,YAAY,CAAC"}
|
|
@@ -55,6 +55,8 @@ export const walletTransaction = pgTable('wallet_transaction', {
|
|
|
55
55
|
index('wallet_transaction_rail_idx').on(t.rail),
|
|
56
56
|
index('wallet_transaction_currency_idx').on(t.currency),
|
|
57
57
|
index('wallet_transaction_tx_hash_idx').on(t.txHash),
|
|
58
|
+
index('wallet_transaction_status_type_created_at_idx').on(t.status, t.type, t.createdAt),
|
|
59
|
+
index('wallet_transaction_wallet_id_type_status_idx').on(t.walletId, t.type, t.status),
|
|
58
60
|
uniqueIndex('wallet_transaction_provider_ref_id_idx')
|
|
59
61
|
.on(t.providerRefId)
|
|
60
62
|
.where(sql `${t.providerRefId} IS NOT NULL`),
|