-
Notifications
You must be signed in to change notification settings - Fork 3
/
account.schema.json
80 lines (80 loc) · 2.22 KB
/
account.schema.json
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
{
"$id": "https://casimir.co/account.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Account",
"type": "object",
"properties": {
"address": {
"type": "string",
"description": "The account address"
},
"balance": {
"type": "number",
"description": "The account balance"
},
"currency": {
"type": "string",
"description": "The account currency"
},
"created_at": {
"type": "string",
"description": "The account creation date in ISO 8601 format"
},
"id": {
"type": "serial",
"description": "The account ID (PK)"
},
"path_index": {
"type": "integer",
"description": "The account path index (typically used for HD wallets)"
},
"snapshots": {
"type": "array",
"description": "The account snapshots",
"items": {
"type": "object",
"properties": {
"date": {
"type": "string",
"description": "The ISO 8601 snapshot date"
},
"balance": {
"type": "number",
"description": "The account balance snapshot"
}
}
}
},
"transactions": {
"type": "array",
"description": "The account transactions"
},
"updated_at": {
"type": "string",
"description": "The account last update date in ISO 8601 format"
},
"user_id": {
"type": "integer",
"description": "The account user ID (FK)"
},
"wallet_provider": {
"type": "string",
"description": "The account wallet provider"
}
},
"uniqueFields": [
"address",
"path_index",
"user_id",
"wallet_provider"
],
"required": [
"id",
"address",
"created_at",
"currency",
"updated_at",
"user_id",
"wallet_provider"
]
}