@revealui/db 0.3.0 → 0.3.1
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/cleanup/cross-db-cleanup.d.ts +19 -0
- package/dist/cleanup/cross-db-cleanup.d.ts.map +1 -1
- package/dist/cleanup/cross-db-cleanup.js +40 -1
- package/dist/cleanup/cross-db-cleanup.js.map +1 -1
- package/dist/cleanup/index.d.ts +2 -1
- package/dist/cleanup/index.d.ts.map +1 -1
- package/dist/cleanup/index.js +2 -1
- package/dist/cleanup/index.js.map +1 -1
- package/dist/cleanup/rag-site-cleanup.d.ts +58 -0
- package/dist/cleanup/rag-site-cleanup.d.ts.map +1 -0
- package/dist/cleanup/rag-site-cleanup.js +68 -0
- package/dist/cleanup/rag-site-cleanup.js.map +1 -0
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +3 -6
- package/dist/client/index.js.map +1 -1
- package/dist/client/types.d.ts.map +1 -1
- package/dist/pool.d.ts +4 -0
- package/dist/pool.d.ts.map +1 -1
- package/dist/pool.js +46 -20
- package/dist/pool.js.map +1 -1
- package/dist/queries/conversations.d.ts +29 -0
- package/dist/queries/conversations.d.ts.map +1 -0
- package/dist/queries/conversations.js +80 -0
- package/dist/queries/conversations.js.map +1 -0
- package/dist/queries/orders.d.ts +87 -0
- package/dist/queries/orders.d.ts.map +1 -0
- package/dist/queries/orders.js +36 -0
- package/dist/queries/orders.js.map +1 -0
- package/dist/queries/pages.d.ts.map +1 -1
- package/dist/queries/pages.js +0 -5
- package/dist/queries/pages.js.map +1 -1
- package/dist/queries/posts.d.ts +31 -0
- package/dist/queries/posts.d.ts.map +1 -1
- package/dist/queries/posts.js +21 -0
- package/dist/queries/posts.js.map +1 -1
- package/dist/queries/products.d.ts +102 -0
- package/dist/queries/products.d.ts.map +1 -0
- package/dist/queries/products.js +55 -0
- package/dist/queries/products.js.map +1 -0
- package/dist/queries/ticket-comments.d.ts +25 -0
- package/dist/queries/ticket-comments.d.ts.map +1 -1
- package/dist/queries/ticket-comments.js +28 -1
- package/dist/queries/ticket-comments.js.map +1 -1
- package/dist/queries/tickets.d.ts +41 -0
- package/dist/queries/tickets.d.ts.map +1 -1
- package/dist/queries/tickets.js +24 -0
- package/dist/queries/tickets.js.map +1 -1
- package/dist/queries/users.d.ts +112 -0
- package/dist/queries/users.d.ts.map +1 -1
- package/dist/queries/users.js +51 -1
- package/dist/queries/users.js.map +1 -1
- package/dist/schema/accounts.d.ts.map +1 -1
- package/dist/schema/accounts.js +2 -0
- package/dist/schema/accounts.js.map +1 -1
- package/dist/schema/agents.d.ts +51 -0
- package/dist/schema/agents.d.ts.map +1 -1
- package/dist/schema/agents.js +5 -1
- package/dist/schema/agents.js.map +1 -1
- package/dist/schema/circuit-breaker.d.ts +139 -0
- package/dist/schema/circuit-breaker.d.ts.map +1 -0
- package/dist/schema/circuit-breaker.js +28 -0
- package/dist/schema/circuit-breaker.js.map +1 -0
- package/dist/schema/index.d.ts +7 -0
- package/dist/schema/index.d.ts.map +1 -1
- package/dist/schema/index.js +20 -0
- package/dist/schema/index.js.map +1 -1
- package/dist/schema/licenses.d.ts +17 -0
- package/dist/schema/licenses.d.ts.map +1 -1
- package/dist/schema/licenses.js +4 -1
- package/dist/schema/licenses.js.map +1 -1
- package/dist/schema/marketplace.d.ts.map +1 -1
- package/dist/schema/marketplace.js +6 -2
- package/dist/schema/marketplace.js.map +1 -1
- package/dist/schema/passkeys.d.ts.map +1 -1
- package/dist/schema/passkeys.js +1 -0
- package/dist/schema/passkeys.js.map +1 -1
- package/dist/schema/products.d.ts +519 -0
- package/dist/schema/products.d.ts.map +1 -0
- package/dist/schema/products.js +101 -0
- package/dist/schema/products.js.map +1 -0
- package/dist/schema/rest.d.ts +3 -0
- package/dist/schema/rest.d.ts.map +1 -1
- package/dist/schema/rest.js +3 -0
- package/dist/schema/rest.js.map +1 -1
- package/dist/schema/revealcoin.d.ts +267 -0
- package/dist/schema/revealcoin.d.ts.map +1 -0
- package/dist/schema/revealcoin.js +54 -0
- package/dist/schema/revealcoin.js.map +1 -0
- package/dist/schema/tenants.d.ts.map +1 -1
- package/dist/schema/tenants.js +0 -1
- package/dist/schema/tenants.js.map +1 -1
- package/dist/schema/users.d.ts.map +1 -1
- package/dist/schema/users.js +0 -1
- package/dist/schema/users.js.map +1 -1
- package/dist/schema/vector.d.ts +10 -3
- package/dist/schema/vector.d.ts.map +1 -1
- package/dist/schema/vector.js +11 -4
- package/dist/schema/vector.js.map +1 -1
- package/dist/types/database.d.ts +69 -2
- package/dist/types/database.d.ts.map +1 -1
- package/dist/types/database.js +15 -1
- package/dist/types/database.js.map +1 -1
- package/dist/types/generate-contracts.js +1 -1
- package/dist/validation/cross-db.d.ts +6 -6
- package/dist/validation/cross-db.d.ts.map +1 -1
- package/dist/validation/cross-db.js.map +1 -1
- package/package.json +38 -9
- package/dist/queries/optimized-queries.d.ts +0 -89
- package/dist/queries/optimized-queries.d.ts.map +0 -1
- package/dist/queries/optimized-queries.js +0 -371
- package/dist/queries/optimized-queries.js.map +0 -1
- package/dist/queries/todos.d.ts +0 -37
- package/dist/queries/todos.d.ts.map +0 -1
- package/dist/queries/todos.js +0 -37
- package/dist/queries/todos.js.map +0 -1
- package/dist/schema/query.d.ts +0 -11
- package/dist/schema/query.d.ts.map +0 -1
- package/dist/schema/query.js +0 -11
- package/dist/schema/query.js.map +0 -1
- package/dist/schema/todos.d.ts +0 -98
- package/dist/schema/todos.d.ts.map +0 -1
- package/dist/schema/todos.js +0 -12
- package/dist/schema/todos.js.map +0 -1
- package/dist/security-audit-storage.d.ts +0 -54
- package/dist/security-audit-storage.d.ts.map +0 -1
- package/dist/security-audit-storage.js +0 -100
- package/dist/security-audit-storage.js.map +0 -1
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RevealCoin Payment Tables
|
|
3
|
+
*
|
|
4
|
+
* Tracks verified RVUI payments and price snapshots for anti-manipulation
|
|
5
|
+
* safeguards (TWAP pricing, rate limiting, duplicate tx rejection, discount caps).
|
|
6
|
+
*/
|
|
7
|
+
export declare const revealcoinPayments: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
8
|
+
name: "revealcoin_payments";
|
|
9
|
+
schema: undefined;
|
|
10
|
+
columns: {
|
|
11
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
12
|
+
name: "id";
|
|
13
|
+
tableName: "revealcoin_payments";
|
|
14
|
+
dataType: "string";
|
|
15
|
+
columnType: "PgText";
|
|
16
|
+
data: string;
|
|
17
|
+
driverParam: string;
|
|
18
|
+
notNull: true;
|
|
19
|
+
hasDefault: false;
|
|
20
|
+
isPrimaryKey: true;
|
|
21
|
+
isAutoincrement: false;
|
|
22
|
+
hasRuntimeDefault: false;
|
|
23
|
+
enumValues: [string, ...string[]];
|
|
24
|
+
baseColumn: never;
|
|
25
|
+
identity: undefined;
|
|
26
|
+
generated: undefined;
|
|
27
|
+
}, {}, {}>;
|
|
28
|
+
txSignature: import("drizzle-orm/pg-core").PgColumn<{
|
|
29
|
+
name: "tx_signature";
|
|
30
|
+
tableName: "revealcoin_payments";
|
|
31
|
+
dataType: "string";
|
|
32
|
+
columnType: "PgText";
|
|
33
|
+
data: string;
|
|
34
|
+
driverParam: string;
|
|
35
|
+
notNull: true;
|
|
36
|
+
hasDefault: false;
|
|
37
|
+
isPrimaryKey: false;
|
|
38
|
+
isAutoincrement: false;
|
|
39
|
+
hasRuntimeDefault: false;
|
|
40
|
+
enumValues: [string, ...string[]];
|
|
41
|
+
baseColumn: never;
|
|
42
|
+
identity: undefined;
|
|
43
|
+
generated: undefined;
|
|
44
|
+
}, {}, {}>;
|
|
45
|
+
walletAddress: import("drizzle-orm/pg-core").PgColumn<{
|
|
46
|
+
name: "wallet_address";
|
|
47
|
+
tableName: "revealcoin_payments";
|
|
48
|
+
dataType: "string";
|
|
49
|
+
columnType: "PgText";
|
|
50
|
+
data: string;
|
|
51
|
+
driverParam: string;
|
|
52
|
+
notNull: true;
|
|
53
|
+
hasDefault: false;
|
|
54
|
+
isPrimaryKey: false;
|
|
55
|
+
isAutoincrement: false;
|
|
56
|
+
hasRuntimeDefault: false;
|
|
57
|
+
enumValues: [string, ...string[]];
|
|
58
|
+
baseColumn: never;
|
|
59
|
+
identity: undefined;
|
|
60
|
+
generated: undefined;
|
|
61
|
+
}, {}, {}>;
|
|
62
|
+
userId: import("drizzle-orm/pg-core").PgColumn<{
|
|
63
|
+
name: "user_id";
|
|
64
|
+
tableName: "revealcoin_payments";
|
|
65
|
+
dataType: "string";
|
|
66
|
+
columnType: "PgText";
|
|
67
|
+
data: string;
|
|
68
|
+
driverParam: string;
|
|
69
|
+
notNull: true;
|
|
70
|
+
hasDefault: false;
|
|
71
|
+
isPrimaryKey: false;
|
|
72
|
+
isAutoincrement: false;
|
|
73
|
+
hasRuntimeDefault: false;
|
|
74
|
+
enumValues: [string, ...string[]];
|
|
75
|
+
baseColumn: never;
|
|
76
|
+
identity: undefined;
|
|
77
|
+
generated: undefined;
|
|
78
|
+
}, {}, {}>;
|
|
79
|
+
amountRvui: import("drizzle-orm/pg-core").PgColumn<{
|
|
80
|
+
name: "amount_rvc";
|
|
81
|
+
tableName: "revealcoin_payments";
|
|
82
|
+
dataType: "string";
|
|
83
|
+
columnType: "PgText";
|
|
84
|
+
data: string;
|
|
85
|
+
driverParam: string;
|
|
86
|
+
notNull: true;
|
|
87
|
+
hasDefault: false;
|
|
88
|
+
isPrimaryKey: false;
|
|
89
|
+
isAutoincrement: false;
|
|
90
|
+
hasRuntimeDefault: false;
|
|
91
|
+
enumValues: [string, ...string[]];
|
|
92
|
+
baseColumn: never;
|
|
93
|
+
identity: undefined;
|
|
94
|
+
generated: undefined;
|
|
95
|
+
}, {}, {}>;
|
|
96
|
+
amountUsd: import("drizzle-orm/pg-core").PgColumn<{
|
|
97
|
+
name: "amount_usd";
|
|
98
|
+
tableName: "revealcoin_payments";
|
|
99
|
+
dataType: "string";
|
|
100
|
+
columnType: "PgNumeric";
|
|
101
|
+
data: string;
|
|
102
|
+
driverParam: string;
|
|
103
|
+
notNull: true;
|
|
104
|
+
hasDefault: false;
|
|
105
|
+
isPrimaryKey: false;
|
|
106
|
+
isAutoincrement: false;
|
|
107
|
+
hasRuntimeDefault: false;
|
|
108
|
+
enumValues: undefined;
|
|
109
|
+
baseColumn: never;
|
|
110
|
+
identity: undefined;
|
|
111
|
+
generated: undefined;
|
|
112
|
+
}, {}, {}>;
|
|
113
|
+
discountUsd: import("drizzle-orm/pg-core").PgColumn<{
|
|
114
|
+
name: "discount_usd";
|
|
115
|
+
tableName: "revealcoin_payments";
|
|
116
|
+
dataType: "string";
|
|
117
|
+
columnType: "PgNumeric";
|
|
118
|
+
data: string;
|
|
119
|
+
driverParam: string;
|
|
120
|
+
notNull: true;
|
|
121
|
+
hasDefault: true;
|
|
122
|
+
isPrimaryKey: false;
|
|
123
|
+
isAutoincrement: false;
|
|
124
|
+
hasRuntimeDefault: false;
|
|
125
|
+
enumValues: undefined;
|
|
126
|
+
baseColumn: never;
|
|
127
|
+
identity: undefined;
|
|
128
|
+
generated: undefined;
|
|
129
|
+
}, {}, {}>;
|
|
130
|
+
purpose: import("drizzle-orm/pg-core").PgColumn<{
|
|
131
|
+
name: "purpose";
|
|
132
|
+
tableName: "revealcoin_payments";
|
|
133
|
+
dataType: "string";
|
|
134
|
+
columnType: "PgText";
|
|
135
|
+
data: string;
|
|
136
|
+
driverParam: string;
|
|
137
|
+
notNull: true;
|
|
138
|
+
hasDefault: false;
|
|
139
|
+
isPrimaryKey: false;
|
|
140
|
+
isAutoincrement: false;
|
|
141
|
+
hasRuntimeDefault: false;
|
|
142
|
+
enumValues: [string, ...string[]];
|
|
143
|
+
baseColumn: never;
|
|
144
|
+
identity: undefined;
|
|
145
|
+
generated: undefined;
|
|
146
|
+
}, {}, {}>;
|
|
147
|
+
status: import("drizzle-orm/pg-core").PgColumn<{
|
|
148
|
+
name: "status";
|
|
149
|
+
tableName: "revealcoin_payments";
|
|
150
|
+
dataType: "string";
|
|
151
|
+
columnType: "PgText";
|
|
152
|
+
data: string;
|
|
153
|
+
driverParam: string;
|
|
154
|
+
notNull: true;
|
|
155
|
+
hasDefault: true;
|
|
156
|
+
isPrimaryKey: false;
|
|
157
|
+
isAutoincrement: false;
|
|
158
|
+
hasRuntimeDefault: false;
|
|
159
|
+
enumValues: [string, ...string[]];
|
|
160
|
+
baseColumn: never;
|
|
161
|
+
identity: undefined;
|
|
162
|
+
generated: undefined;
|
|
163
|
+
}, {}, {}>;
|
|
164
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
165
|
+
name: "created_at";
|
|
166
|
+
tableName: "revealcoin_payments";
|
|
167
|
+
dataType: "date";
|
|
168
|
+
columnType: "PgTimestamp";
|
|
169
|
+
data: Date;
|
|
170
|
+
driverParam: string;
|
|
171
|
+
notNull: true;
|
|
172
|
+
hasDefault: true;
|
|
173
|
+
isPrimaryKey: false;
|
|
174
|
+
isAutoincrement: false;
|
|
175
|
+
hasRuntimeDefault: false;
|
|
176
|
+
enumValues: undefined;
|
|
177
|
+
baseColumn: never;
|
|
178
|
+
identity: undefined;
|
|
179
|
+
generated: undefined;
|
|
180
|
+
}, {}, {}>;
|
|
181
|
+
};
|
|
182
|
+
dialect: "pg";
|
|
183
|
+
}>;
|
|
184
|
+
/** Row type for select queries. */
|
|
185
|
+
export type RevealcoinPaymentRow = typeof revealcoinPayments.$inferSelect;
|
|
186
|
+
/** Insert type for new records. */
|
|
187
|
+
export type RevealcoinPaymentInsert = typeof revealcoinPayments.$inferInsert;
|
|
188
|
+
export declare const revealcoinPriceSnapshots: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
189
|
+
name: "revealcoin_price_snapshots";
|
|
190
|
+
schema: undefined;
|
|
191
|
+
columns: {
|
|
192
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
193
|
+
name: "id";
|
|
194
|
+
tableName: "revealcoin_price_snapshots";
|
|
195
|
+
dataType: "string";
|
|
196
|
+
columnType: "PgText";
|
|
197
|
+
data: string;
|
|
198
|
+
driverParam: string;
|
|
199
|
+
notNull: true;
|
|
200
|
+
hasDefault: false;
|
|
201
|
+
isPrimaryKey: true;
|
|
202
|
+
isAutoincrement: false;
|
|
203
|
+
hasRuntimeDefault: false;
|
|
204
|
+
enumValues: [string, ...string[]];
|
|
205
|
+
baseColumn: never;
|
|
206
|
+
identity: undefined;
|
|
207
|
+
generated: undefined;
|
|
208
|
+
}, {}, {}>;
|
|
209
|
+
priceUsd: import("drizzle-orm/pg-core").PgColumn<{
|
|
210
|
+
name: "price_usd";
|
|
211
|
+
tableName: "revealcoin_price_snapshots";
|
|
212
|
+
dataType: "string";
|
|
213
|
+
columnType: "PgNumeric";
|
|
214
|
+
data: string;
|
|
215
|
+
driverParam: string;
|
|
216
|
+
notNull: true;
|
|
217
|
+
hasDefault: false;
|
|
218
|
+
isPrimaryKey: false;
|
|
219
|
+
isAutoincrement: false;
|
|
220
|
+
hasRuntimeDefault: false;
|
|
221
|
+
enumValues: undefined;
|
|
222
|
+
baseColumn: never;
|
|
223
|
+
identity: undefined;
|
|
224
|
+
generated: undefined;
|
|
225
|
+
}, {}, {}>;
|
|
226
|
+
source: import("drizzle-orm/pg-core").PgColumn<{
|
|
227
|
+
name: "source";
|
|
228
|
+
tableName: "revealcoin_price_snapshots";
|
|
229
|
+
dataType: "string";
|
|
230
|
+
columnType: "PgText";
|
|
231
|
+
data: string;
|
|
232
|
+
driverParam: string;
|
|
233
|
+
notNull: true;
|
|
234
|
+
hasDefault: false;
|
|
235
|
+
isPrimaryKey: false;
|
|
236
|
+
isAutoincrement: false;
|
|
237
|
+
hasRuntimeDefault: false;
|
|
238
|
+
enumValues: [string, ...string[]];
|
|
239
|
+
baseColumn: never;
|
|
240
|
+
identity: undefined;
|
|
241
|
+
generated: undefined;
|
|
242
|
+
}, {}, {}>;
|
|
243
|
+
recordedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
244
|
+
name: "recorded_at";
|
|
245
|
+
tableName: "revealcoin_price_snapshots";
|
|
246
|
+
dataType: "date";
|
|
247
|
+
columnType: "PgTimestamp";
|
|
248
|
+
data: Date;
|
|
249
|
+
driverParam: string;
|
|
250
|
+
notNull: true;
|
|
251
|
+
hasDefault: true;
|
|
252
|
+
isPrimaryKey: false;
|
|
253
|
+
isAutoincrement: false;
|
|
254
|
+
hasRuntimeDefault: false;
|
|
255
|
+
enumValues: undefined;
|
|
256
|
+
baseColumn: never;
|
|
257
|
+
identity: undefined;
|
|
258
|
+
generated: undefined;
|
|
259
|
+
}, {}, {}>;
|
|
260
|
+
};
|
|
261
|
+
dialect: "pg";
|
|
262
|
+
}>;
|
|
263
|
+
/** Row type for select queries. */
|
|
264
|
+
export type RevealcoinPriceSnapshotRow = typeof revealcoinPriceSnapshots.$inferSelect;
|
|
265
|
+
/** Insert type for new records. */
|
|
266
|
+
export type RevealcoinPriceSnapshotInsert = typeof revealcoinPriceSnapshots.$inferInsert;
|
|
267
|
+
//# sourceMappingURL=revealcoin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"revealcoin.d.ts","sourceRoot":"","sources":["../../src/schema/revealcoin.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AASH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyC9B,CAAC;AAEF,mCAAmC;AACnC,MAAM,MAAM,oBAAoB,GAAG,OAAO,kBAAkB,CAAC,YAAY,CAAC;AAE1E,mCAAmC;AACnC,MAAM,MAAM,uBAAuB,GAAG,OAAO,kBAAkB,CAAC,YAAY,CAAC;AAM7E,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBpC,CAAC;AAEF,mCAAmC;AACnC,MAAM,MAAM,0BAA0B,GAAG,OAAO,wBAAwB,CAAC,YAAY,CAAC;AAEtF,mCAAmC;AACnC,MAAM,MAAM,6BAA6B,GAAG,OAAO,wBAAwB,CAAC,YAAY,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RevealCoin Payment Tables
|
|
3
|
+
*
|
|
4
|
+
* Tracks verified RVUI payments and price snapshots for anti-manipulation
|
|
5
|
+
* safeguards (TWAP pricing, rate limiting, duplicate tx rejection, discount caps).
|
|
6
|
+
*/
|
|
7
|
+
import { index, numeric, pgTable, text, timestamp, uniqueIndex } from 'drizzle-orm/pg-core';
|
|
8
|
+
import { users } from './users.js';
|
|
9
|
+
// =============================================================================
|
|
10
|
+
// RevealCoin Payments
|
|
11
|
+
// =============================================================================
|
|
12
|
+
export const revealcoinPayments = pgTable('revealcoin_payments', {
|
|
13
|
+
/** Unique payment ID (UUID). */
|
|
14
|
+
id: text('id').primaryKey(),
|
|
15
|
+
/** Solana transaction signature (base58). Unique — prevents replay. */
|
|
16
|
+
txSignature: text('tx_signature').notNull(),
|
|
17
|
+
/** Payer's Solana wallet address (base58 public key). */
|
|
18
|
+
walletAddress: text('wallet_address').notNull(),
|
|
19
|
+
/** RevealUI user who initiated the payment. */
|
|
20
|
+
userId: text('user_id')
|
|
21
|
+
.notNull()
|
|
22
|
+
.references(() => users.id, { onDelete: 'cascade' }),
|
|
23
|
+
/** RVUI amount transferred (raw token units as string for precision). */
|
|
24
|
+
amountRvui: text('amount_rvc').notNull(),
|
|
25
|
+
/** USD equivalent at time of payment (TWAP-based). */
|
|
26
|
+
amountUsd: numeric('amount_usd', { precision: 12, scale: 4 }).notNull(),
|
|
27
|
+
/** USD discount applied (difference vs fiat price). */
|
|
28
|
+
discountUsd: numeric('discount_usd', { precision: 12, scale: 4 }).notNull().default('0'),
|
|
29
|
+
/** Payment purpose (e.g., 'subscription:pro', 'ai_credits', 'agent_task'). */
|
|
30
|
+
purpose: text('purpose').notNull(),
|
|
31
|
+
/** Payment verification status. */
|
|
32
|
+
status: text('status').notNull().default('verified'),
|
|
33
|
+
/** When the payment was recorded. */
|
|
34
|
+
createdAt: timestamp('created_at', { withTimezone: true }).defaultNow().notNull(),
|
|
35
|
+
}, (table) => [
|
|
36
|
+
uniqueIndex('revealcoin_payments_tx_sig_idx').on(table.txSignature),
|
|
37
|
+
index('revealcoin_payments_user_id_idx').on(table.userId),
|
|
38
|
+
index('revealcoin_payments_wallet_idx').on(table.walletAddress),
|
|
39
|
+
index('revealcoin_payments_created_at_idx').on(table.createdAt),
|
|
40
|
+
]);
|
|
41
|
+
// =============================================================================
|
|
42
|
+
// Price Snapshots (for TWAP calculation)
|
|
43
|
+
// =============================================================================
|
|
44
|
+
export const revealcoinPriceSnapshots = pgTable('revealcoin_price_snapshots', {
|
|
45
|
+
/** Unique snapshot ID (UUID). */
|
|
46
|
+
id: text('id').primaryKey(),
|
|
47
|
+
/** RVUI price in USD at this point in time. */
|
|
48
|
+
priceUsd: numeric('price_usd', { precision: 18, scale: 8 }).notNull(),
|
|
49
|
+
/** Price data source (e.g., 'jupiter', 'raydium', 'manual'). */
|
|
50
|
+
source: text('source').notNull(),
|
|
51
|
+
/** When this price was recorded. */
|
|
52
|
+
recordedAt: timestamp('recorded_at', { withTimezone: true }).defaultNow().notNull(),
|
|
53
|
+
}, (table) => [index('revealcoin_price_snapshots_recorded_at_idx').on(table.recordedAt)]);
|
|
54
|
+
//# sourceMappingURL=revealcoin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"revealcoin.js","sourceRoot":"","sources":["../../src/schema/revealcoin.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBASgC,MAAM;;;;;;;;;;;;;;wBAAN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"tenants.d.ts","sourceRoot":"","sources":["../../src/schema/tenants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBASgC,MAAM;;;;;;;;;;;;;;wBAAN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMzD,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG,OAAO,OAAO,CAAC,YAAY,CAAC;AACjD,MAAM,MAAM,SAAS,GAAG,OAAO,OAAO,CAAC,YAAY,CAAC"}
|
package/dist/schema/tenants.js
CHANGED
|
@@ -7,7 +7,6 @@ export const tenants = pgTable('tenants', {
|
|
|
7
7
|
password: text('password'),
|
|
8
8
|
roles: jsonb('roles').$type().default([]).notNull(),
|
|
9
9
|
domains: jsonb('domains').$type().default([]).notNull(),
|
|
10
|
-
// biome-ignore lint/style/useNamingConvention: RevealUI document metadata field
|
|
11
10
|
_json: jsonb('_json').default({}).notNull(),
|
|
12
11
|
createdAt: timestamp('created_at', { withTimezone: true }).defaultNow().notNull(),
|
|
13
12
|
updatedAt: timestamp('updated_at', { withTimezone: true }).defaultNow().notNull(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tenants.js","sourceRoot":"","sources":["../../src/schema/tenants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2CpB,CAAC;AAMF,MAAM,MAAM,IAAI,GAAG,OAAO,KAAK,CAAC,YAAY,CAAC;AAC7C,MAAM,MAAM,OAAO,GAAG,OAAO,KAAK,CAAC,YAAY,CAAC;AAChD,MAAM,MAAM,OAAO,GAAG,OAAO,QAAQ,CAAC,YAAY,CAAC;AACnD,MAAM,MAAM,UAAU,GAAG,OAAO,QAAQ,CAAC,YAAY,CAAC"}
|
package/dist/schema/users.js
CHANGED
|
@@ -59,7 +59,6 @@ export const users = pgTable('users', {
|
|
|
59
59
|
deletedAt: timestamp('deleted_at', { withTimezone: true }),
|
|
60
60
|
// GDPR anonymization: null = not anonymized, timestamp = when PII was wiped
|
|
61
61
|
anonymizedAt: timestamp('anonymized_at', { withTimezone: true }),
|
|
62
|
-
// biome-ignore lint/style/useNamingConvention: RevealUI document metadata field
|
|
63
62
|
_json: jsonb('_json').default('{}'),
|
|
64
63
|
}, (table) => [
|
|
65
64
|
uniqueIndex('users_email_idx').on(table.email),
|
package/dist/schema/users.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.js","sourceRoot":"","sources":["../../src/schema/users.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEnG,gFAAgF;AAChF,cAAc;AACd,gFAAgF;AAEhF,MAAM,CAAC,MAAM,KAAK,GAAG,OAAO,CAC1B,OAAO,EACP;IACE,qBAAqB;IACrB,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE;IAE3B,mCAAmC;IACnC,aAAa,EAAE,IAAI,CAAC,gBAAgB,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CA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AS,CAAC;IACpD,KAAK,CAAC,yBAAyB,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC;IACpD,oEAAoE;IACpE,KAAK,CAAC,2BAA2B,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;IACpE,KAAK,CAAC,yBAAyB,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC;CACrD,CACF,CAAC"}
|
package/dist/schema/vector.d.ts
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @revealui/db/schema/vector - Vector Database Schemas
|
|
2
|
+
* @revealui/db/schema/vector - Vector-Capable Database Schemas
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* Schemas for AI/vector operations that require pgvector.
|
|
5
|
+
*
|
|
6
|
+
* ARCHITECTURE NOTE: Despite the "vector" naming, `agentMemories` currently
|
|
7
|
+
* lives in NeonDB (not Supabase) because its FK constraints reference
|
|
8
|
+
* NeonDB's `sites` and `users` tables. Cross-database FKs are not possible.
|
|
9
|
+
* The table is re-exported here for semantic grouping (it uses vector embeddings),
|
|
10
|
+
* but its data resides in the REST (Neon) database.
|
|
11
|
+
*
|
|
12
|
+
* RAG tables also require pgvector and follow the same pattern.
|
|
6
13
|
*/
|
|
7
14
|
export type { AgentMemory, AgentMemory as AgentMemoryType, NewAgentMemory, NewAgentMemory as NewAgentMemoryType, } from './agents.js';
|
|
8
15
|
export { agentMemories } from './agents.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vector.d.ts","sourceRoot":"","sources":["../../src/schema/vector.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"vector.d.ts","sourceRoot":"","sources":["../../src/schema/vector.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,YAAY,EACV,WAAW,EACX,WAAW,IAAI,eAAe,EAC9B,cAAc,EACd,cAAc,IAAI,kBAAkB,GACrC,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,cAAc,UAAU,CAAC"}
|
package/dist/schema/vector.js
CHANGED
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @revealui/db/schema/vector - Vector Database Schemas
|
|
2
|
+
* @revealui/db/schema/vector - Vector-Capable Database Schemas
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* Schemas for AI/vector operations that require pgvector.
|
|
5
|
+
*
|
|
6
|
+
* ARCHITECTURE NOTE: Despite the "vector" naming, `agentMemories` currently
|
|
7
|
+
* lives in NeonDB (not Supabase) because its FK constraints reference
|
|
8
|
+
* NeonDB's `sites` and `users` tables. Cross-database FKs are not possible.
|
|
9
|
+
* The table is re-exported here for semantic grouping (it uses vector embeddings),
|
|
10
|
+
* but its data resides in the REST (Neon) database.
|
|
11
|
+
*
|
|
12
|
+
* RAG tables also require pgvector and follow the same pattern.
|
|
6
13
|
*/
|
|
7
|
-
//
|
|
14
|
+
// Vector-capable schemas (require pgvector, but live in NeonDB due to FK constraints)
|
|
8
15
|
export { agentMemories } from './agents.js';
|
|
9
16
|
// RAG tables (pgvector-backed, stored on Supabase)
|
|
10
17
|
export * from './rag.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vector.js","sourceRoot":"","sources":["../../src/schema/vector.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"vector.js","sourceRoot":"","sources":["../../src/schema/vector.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AASH,sFAAsF;AACtF,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,mDAAmD;AACnD,cAAc,UAAU,CAAC"}
|
package/dist/types/database.d.ts
CHANGED
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
* This file is auto-generated by packages/db/src/types/generate.ts
|
|
5
5
|
* DO NOT MODIFY MANUALLY - regenerate using: pnpm generate:types
|
|
6
6
|
*
|
|
7
|
-
* Generated: 2026-03-
|
|
7
|
+
* Generated: 2026-03-28T02:03:54.538Z
|
|
8
8
|
*
|
|
9
9
|
* This type matches the Supabase Database type structure for feature parity.
|
|
10
10
|
* Tables are automatically discovered from packages/db/src/schema/*.ts
|
|
11
11
|
*/
|
|
12
|
-
import type { accountEntitlements, accountMemberships, accounts, accountSubscriptions, agentActions, agentContexts, agentMemories, agentTaskUsage, aiMemorySessions, appLogs, auditLog, billingCatalog, boardColumns, boards, codeProvenance, codeReviews, collabEdits, conversations, coordinationAgents, coordinationEvents, coordinationFileClaims, coordinationMail, coordinationQueueItems, coordinationSessions, coordinationWorkItems, crdtOperations, errorEvents, failedAttempts, gdprBreaches, gdprConsents, gdprDeletionRequests, globalFooter, globalHeader, globalSettings, jobs, licenses, magicLinks, marketplaceServers, marketplaceTransactions, media, messages, nodeIdMappings, oauthAccounts, pageRevisions, pages, passkeys, passwordResetTokens, posts, processedWebhookEvents, ragChunks, ragDocuments, ragWorkspaces, rateLimits, registeredAgents, sessions, siteCollaborators, sites, syncMetadata, tenantProviderConfigs, tenants, ticketComments, ticketLabelAssignments, ticketLabels, tickets, usageMeters, userApiKeys, userDevices, users, waitlist, yjsDocuments } from '../schema/index.js';
|
|
12
|
+
import type { accountEntitlements, accountMemberships, accounts, accountSubscriptions, agentActions, agentContexts, agentMemories, agentTaskUsage, aiMemorySessions, appLogs, auditLog, billingCatalog, boardColumns, boards, circuitBreakerState, codeProvenance, codeReviews, collabEdits, conversations, coordinationAgents, coordinationEvents, coordinationFileClaims, coordinationMail, coordinationQueueItems, coordinationSessions, coordinationWorkItems, crdtOperations, errorEvents, failedAttempts, gdprBreaches, gdprConsents, gdprDeletionRequests, globalFooter, globalHeader, globalSettings, jobs, licenses, magicLinks, marketplaceServers, marketplaceTransactions, media, messages, nodeIdMappings, oauthAccounts, orders, pageRevisions, pages, passkeys, passwordResetTokens, posts, processedWebhookEvents, products, ragChunks, ragDocuments, ragWorkspaces, rateLimits, registeredAgents, revealcoinPayments, revealcoinPriceSnapshots, sessions, siteCollaborators, sites, syncMetadata, tenantProviderConfigs, tenants, ticketComments, ticketLabelAssignments, ticketLabels, tickets, usageMeters, userApiKeys, userDevices, users, waitlist, yjsDocuments } from '../schema/index.js';
|
|
13
13
|
export type AccountEntitlementsRow = typeof accountEntitlements.$inferSelect;
|
|
14
14
|
export type AccountEntitlementsInsert = typeof accountEntitlements.$inferInsert;
|
|
15
15
|
export type AccountEntitlementsUpdate = Partial<AccountEntitlementsInsert>;
|
|
@@ -52,6 +52,9 @@ export type BoardColumnsUpdate = Partial<BoardColumnsInsert>;
|
|
|
52
52
|
export type BoardsRow = typeof boards.$inferSelect;
|
|
53
53
|
export type BoardsInsert = typeof boards.$inferInsert;
|
|
54
54
|
export type BoardsUpdate = Partial<BoardsInsert>;
|
|
55
|
+
export type CircuitBreakerStateRow = typeof circuitBreakerState.$inferSelect;
|
|
56
|
+
export type CircuitBreakerStateInsert = typeof circuitBreakerState.$inferInsert;
|
|
57
|
+
export type CircuitBreakerStateUpdate = Partial<CircuitBreakerStateInsert>;
|
|
55
58
|
export type CodeProvenanceRow = typeof codeProvenance.$inferSelect;
|
|
56
59
|
export type CodeProvenanceInsert = typeof codeProvenance.$inferInsert;
|
|
57
60
|
export type CodeProvenanceUpdate = Partial<CodeProvenanceInsert>;
|
|
@@ -139,6 +142,9 @@ export type NodeIdMappingsUpdate = Partial<NodeIdMappingsInsert>;
|
|
|
139
142
|
export type OauthAccountsRow = typeof oauthAccounts.$inferSelect;
|
|
140
143
|
export type OauthAccountsInsert = typeof oauthAccounts.$inferInsert;
|
|
141
144
|
export type OauthAccountsUpdate = Partial<OauthAccountsInsert>;
|
|
145
|
+
export type OrdersRow = typeof orders.$inferSelect;
|
|
146
|
+
export type OrdersInsert = typeof orders.$inferInsert;
|
|
147
|
+
export type OrdersUpdate = Partial<OrdersInsert>;
|
|
142
148
|
export type PageRevisionsRow = typeof pageRevisions.$inferSelect;
|
|
143
149
|
export type PageRevisionsInsert = typeof pageRevisions.$inferInsert;
|
|
144
150
|
export type PageRevisionsUpdate = Partial<PageRevisionsInsert>;
|
|
@@ -157,6 +163,9 @@ export type PostsUpdate = Partial<PostsInsert>;
|
|
|
157
163
|
export type ProcessedWebhookEventsRow = typeof processedWebhookEvents.$inferSelect;
|
|
158
164
|
export type ProcessedWebhookEventsInsert = typeof processedWebhookEvents.$inferInsert;
|
|
159
165
|
export type ProcessedWebhookEventsUpdate = Partial<ProcessedWebhookEventsInsert>;
|
|
166
|
+
export type ProductsRow = typeof products.$inferSelect;
|
|
167
|
+
export type ProductsInsert = typeof products.$inferInsert;
|
|
168
|
+
export type ProductsUpdate = Partial<ProductsInsert>;
|
|
160
169
|
export type RagChunksRow = typeof ragChunks.$inferSelect;
|
|
161
170
|
export type RagChunksInsert = typeof ragChunks.$inferInsert;
|
|
162
171
|
export type RagChunksUpdate = Partial<RagChunksInsert>;
|
|
@@ -172,6 +181,12 @@ export type RateLimitsUpdate = Partial<RateLimitsInsert>;
|
|
|
172
181
|
export type RegisteredAgentsRow = typeof registeredAgents.$inferSelect;
|
|
173
182
|
export type RegisteredAgentsInsert = typeof registeredAgents.$inferInsert;
|
|
174
183
|
export type RegisteredAgentsUpdate = Partial<RegisteredAgentsInsert>;
|
|
184
|
+
export type RevealcoinPaymentsRow = typeof revealcoinPayments.$inferSelect;
|
|
185
|
+
export type RevealcoinPaymentsInsert = typeof revealcoinPayments.$inferInsert;
|
|
186
|
+
export type RevealcoinPaymentsUpdate = Partial<RevealcoinPaymentsInsert>;
|
|
187
|
+
export type RevealcoinPriceSnapshotsRow = typeof revealcoinPriceSnapshots.$inferSelect;
|
|
188
|
+
export type RevealcoinPriceSnapshotsInsert = typeof revealcoinPriceSnapshots.$inferInsert;
|
|
189
|
+
export type RevealcoinPriceSnapshotsUpdate = Partial<RevealcoinPriceSnapshotsInsert>;
|
|
175
190
|
export type SessionsRow = typeof sessions.$inferSelect;
|
|
176
191
|
export type SessionsInsert = typeof sessions.$inferInsert;
|
|
177
192
|
export type SessionsUpdate = Partial<SessionsInsert>;
|
|
@@ -253,6 +268,7 @@ export type DatabaseRelationships = {
|
|
|
253
268
|
billingCatalog: Relationship[];
|
|
254
269
|
boardColumns: Relationship[];
|
|
255
270
|
boards: Relationship[];
|
|
271
|
+
circuitBreakerState: Relationship[];
|
|
256
272
|
codeProvenance: Relationship[];
|
|
257
273
|
codeReviews: Relationship[];
|
|
258
274
|
collabEdits: Relationship[];
|
|
@@ -282,17 +298,21 @@ export type DatabaseRelationships = {
|
|
|
282
298
|
messages: Relationship[];
|
|
283
299
|
nodeIdMappings: Relationship[];
|
|
284
300
|
oauthAccounts: Relationship[];
|
|
301
|
+
orders: Relationship[];
|
|
285
302
|
pageRevisions: Relationship[];
|
|
286
303
|
pages: Relationship[];
|
|
287
304
|
passkeys: Relationship[];
|
|
288
305
|
passwordResetTokens: Relationship[];
|
|
289
306
|
posts: Relationship[];
|
|
290
307
|
processedWebhookEvents: Relationship[];
|
|
308
|
+
products: Relationship[];
|
|
291
309
|
ragChunks: Relationship[];
|
|
292
310
|
ragDocuments: Relationship[];
|
|
293
311
|
ragWorkspaces: Relationship[];
|
|
294
312
|
rateLimits: Relationship[];
|
|
295
313
|
registeredAgents: Relationship[];
|
|
314
|
+
revealcoinPayments: Relationship[];
|
|
315
|
+
revealcoinPriceSnapshots: Relationship[];
|
|
296
316
|
sessions: Relationship[];
|
|
297
317
|
siteCollaborators: Relationship[];
|
|
298
318
|
sites: Relationship[];
|
|
@@ -378,6 +398,7 @@ export declare const boardsRelationships: readonly [{
|
|
|
378
398
|
readonly referencedRelation: "users";
|
|
379
399
|
readonly referencedColumns: ["id"];
|
|
380
400
|
}];
|
|
401
|
+
export declare const circuitBreakerStateRelationships: readonly Relationship[];
|
|
381
402
|
export declare const codeProvenanceRelationships: readonly [{
|
|
382
403
|
readonly foreignKeyName: "code_provenance_reviewed_by_users_id_fk";
|
|
383
404
|
readonly columns: ["reviewed_by"];
|
|
@@ -473,6 +494,13 @@ export declare const oauthAccountsRelationships: readonly [{
|
|
|
473
494
|
readonly referencedRelation: "users";
|
|
474
495
|
readonly referencedColumns: ["id"];
|
|
475
496
|
}];
|
|
497
|
+
export declare const ordersRelationships: readonly [{
|
|
498
|
+
readonly foreignKeyName: "orders_customer_id_users_id_fk";
|
|
499
|
+
readonly columns: ["customer_id"];
|
|
500
|
+
readonly isOneToOne: true;
|
|
501
|
+
readonly referencedRelation: "users";
|
|
502
|
+
readonly referencedColumns: ["id"];
|
|
503
|
+
}];
|
|
476
504
|
export declare const pageRevisionsRelationships: readonly [{
|
|
477
505
|
readonly foreignKeyName: "page_revisions_page_id_pages_id_fk";
|
|
478
506
|
readonly columns: ["page_id"];
|
|
@@ -527,11 +555,20 @@ export declare const postsRelationships: readonly [{
|
|
|
527
555
|
readonly referencedColumns: ["id"];
|
|
528
556
|
}];
|
|
529
557
|
export declare const processedWebhookEventsRelationships: readonly Relationship[];
|
|
558
|
+
export declare const productsRelationships: readonly [{
|
|
559
|
+
readonly foreignKeyName: "products_owner_id_users_id_fk";
|
|
560
|
+
readonly columns: ["owner_id"];
|
|
561
|
+
readonly isOneToOne: true;
|
|
562
|
+
readonly referencedRelation: "users";
|
|
563
|
+
readonly referencedColumns: ["id"];
|
|
564
|
+
}];
|
|
530
565
|
export declare const ragChunksRelationships: readonly Relationship[];
|
|
531
566
|
export declare const ragDocumentsRelationships: readonly Relationship[];
|
|
532
567
|
export declare const ragWorkspacesRelationships: readonly Relationship[];
|
|
533
568
|
export declare const rateLimitsRelationships: readonly Relationship[];
|
|
534
569
|
export declare const registeredAgentsRelationships: readonly Relationship[];
|
|
570
|
+
export declare const revealcoinPaymentsRelationships: readonly Relationship[];
|
|
571
|
+
export declare const revealcoinPriceSnapshotsRelationships: readonly Relationship[];
|
|
535
572
|
export declare const sessionsRelationships: readonly [{
|
|
536
573
|
readonly foreignKeyName: "sessions_user_id_users_id_fk";
|
|
537
574
|
readonly columns: ["user_id"];
|
|
@@ -760,6 +797,12 @@ export type Database = {
|
|
|
760
797
|
Update: BoardsUpdate;
|
|
761
798
|
Relationships: typeof boardsRelationships;
|
|
762
799
|
};
|
|
800
|
+
circuit_breaker_state: {
|
|
801
|
+
Row: CircuitBreakerStateRow;
|
|
802
|
+
Insert: CircuitBreakerStateInsert;
|
|
803
|
+
Update: CircuitBreakerStateUpdate;
|
|
804
|
+
Relationships: typeof circuitBreakerStateRelationships;
|
|
805
|
+
};
|
|
763
806
|
code_provenance: {
|
|
764
807
|
Row: CodeProvenanceRow;
|
|
765
808
|
Insert: CodeProvenanceInsert;
|
|
@@ -934,6 +977,12 @@ export type Database = {
|
|
|
934
977
|
Update: OauthAccountsUpdate;
|
|
935
978
|
Relationships: typeof oauthAccountsRelationships;
|
|
936
979
|
};
|
|
980
|
+
orders: {
|
|
981
|
+
Row: OrdersRow;
|
|
982
|
+
Insert: OrdersInsert;
|
|
983
|
+
Update: OrdersUpdate;
|
|
984
|
+
Relationships: typeof ordersRelationships;
|
|
985
|
+
};
|
|
937
986
|
page_revisions: {
|
|
938
987
|
Row: PageRevisionsRow;
|
|
939
988
|
Insert: PageRevisionsInsert;
|
|
@@ -970,6 +1019,12 @@ export type Database = {
|
|
|
970
1019
|
Update: ProcessedWebhookEventsUpdate;
|
|
971
1020
|
Relationships: typeof processedWebhookEventsRelationships;
|
|
972
1021
|
};
|
|
1022
|
+
products: {
|
|
1023
|
+
Row: ProductsRow;
|
|
1024
|
+
Insert: ProductsInsert;
|
|
1025
|
+
Update: ProductsUpdate;
|
|
1026
|
+
Relationships: typeof productsRelationships;
|
|
1027
|
+
};
|
|
973
1028
|
rag_chunks: {
|
|
974
1029
|
Row: RagChunksRow;
|
|
975
1030
|
Insert: RagChunksInsert;
|
|
@@ -1000,6 +1055,18 @@ export type Database = {
|
|
|
1000
1055
|
Update: RegisteredAgentsUpdate;
|
|
1001
1056
|
Relationships: typeof registeredAgentsRelationships;
|
|
1002
1057
|
};
|
|
1058
|
+
revealcoin_payments: {
|
|
1059
|
+
Row: RevealcoinPaymentsRow;
|
|
1060
|
+
Insert: RevealcoinPaymentsInsert;
|
|
1061
|
+
Update: RevealcoinPaymentsUpdate;
|
|
1062
|
+
Relationships: typeof revealcoinPaymentsRelationships;
|
|
1063
|
+
};
|
|
1064
|
+
revealcoin_price_snapshots: {
|
|
1065
|
+
Row: RevealcoinPriceSnapshotsRow;
|
|
1066
|
+
Insert: RevealcoinPriceSnapshotsInsert;
|
|
1067
|
+
Update: RevealcoinPriceSnapshotsUpdate;
|
|
1068
|
+
Relationships: typeof revealcoinPriceSnapshotsRelationships;
|
|
1069
|
+
};
|
|
1003
1070
|
sessions: {
|
|
1004
1071
|
Row: SessionsRow;
|
|
1005
1072
|
Insert: SessionsInsert;
|