@@ -4,11 +4,22 @@ diesel::table! {
4
4
entries ( id, timestamp) {
5
5
id -> Uuid ,
6
6
pair_id -> Varchar ,
7
- publisher -> Text ,
8
- timestamp -> Timestamptz ,
9
7
price -> Numeric ,
8
+ timestamp -> Timestamptz ,
9
+ publisher -> Text ,
10
+ publisher_signature -> Nullable <Text >,
10
11
source -> Varchar ,
11
- publisher_signature -> Nullable <Varchar >,
12
+ }
13
+ }
14
+
15
+ diesel:: table! {
16
+ funding_rates ( id, timestamp) {
17
+ id -> Uuid ,
18
+ source -> Varchar ,
19
+ pair -> Varchar ,
20
+ annualized_rate -> Float8 ,
21
+ timestamp -> Timestamptz ,
22
+ created_at -> Timestamptz ,
12
23
}
13
24
}
14
25
@@ -20,7 +31,7 @@ diesel::table! {
20
31
timestamp -> Timestamptz ,
21
32
expiration_timestamp -> Nullable <Timestamptz >,
22
33
publisher -> Text ,
23
- publisher_signature -> Text ,
34
+ publisher_signature -> Nullable < Text > ,
24
35
source -> Varchar ,
25
36
}
26
37
}
@@ -31,9 +42,9 @@ diesel::table! {
31
42
name -> Varchar ,
32
43
master_key -> Varchar ,
33
44
active_key -> Varchar ,
34
- active -> Bool ,
35
45
account_address -> Varchar ,
46
+ active -> Bool ,
36
47
}
37
48
}
38
49
39
- diesel:: allow_tables_to_appear_in_same_query!( entries, future_entries, publishers, ) ;
50
+ diesel:: allow_tables_to_appear_in_same_query!( entries, funding_rates , future_entries, publishers, ) ;
0 commit comments