-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathschema.prisma
More file actions
83 lines (76 loc) · 2.34 KB
/
Copy pathschema.prisma
File metadata and controls
83 lines (76 loc) · 2.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "postgresql" // sqlite
// Runtime (serverless/Vercel) usa el transaction pooler (6543, pgbouncer).
// Las migraciones usan la conexión de sesión (5432) via directUrl.
url = env("DATABASE_URL")
directUrl = env("DIRECT_URL")
}
model Split {
id String @id @default(uuid())
totalAmount Float
mode String
status String @default("PENDING")
network String
assetType String
assetCode String
assetIssuer String?
webhookUrl String?
stellarTxHash String?
createdAt DateTime @default(now())
expiresAt DateTime?
releasedAt DateTime?
payments Payment[]
}
model Payment {
id String @id @default(uuid())
splitId String
split Split @relation(fields: [splitId], references: [id])
payerId String
method String
originalAsset String
originalAmount Float
conversionRate Float @default(1)
convertedAmount Float
externalStatus String @default("CONFIRMED")
createdAt DateTime @default(now())
}
model T3Transaction {
id String @id @default(uuid())
amountArs Float
reference String
status String @default("ACCREDITED")
bankTransactionId String?
coelsaId String?
stellarTxHash String?
settlementAsset String?
settlementAmount String?
payer String?
createdAt DateTime @default(now())
}
model AnchorTransaction {
id String @id @default(uuid())
direction String // deposit | withdraw
amount String?
anchorTransactionId String?
interactiveUrl String?
status String @default("pending")
assetCode String?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
model BlindPayPayout {
id String @id @default(uuid())
payoutId String?
quoteId String?
receiverId String?
bankAccountId String?
requestAmount Int?
receiverAmount Int?
status String @default("pending")
stellarTxHash String?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}