Line data Source code
1 : // @generated automatically by Diesel CLI.
2 :
3 0 : diesel::table! {
4 0 : metadata_health (tenant_id, shard_number, shard_count) {
5 0 : tenant_id -> Varchar,
6 0 : shard_number -> Int4,
7 0 : shard_count -> Int4,
8 0 : healthy -> Bool,
9 0 : last_scrubbed_at -> Timestamptz,
10 0 : }
11 0 : }
12 :
13 0 : diesel::table! {
14 0 : nodes (node_id) {
15 0 : node_id -> Int8,
16 0 : scheduling_policy -> Varchar,
17 0 : listen_http_addr -> Varchar,
18 0 : listen_http_port -> Int4,
19 0 : listen_pg_addr -> Varchar,
20 0 : listen_pg_port -> Int4,
21 0 : }
22 0 : }
23 :
24 0 : diesel::table! {
25 0 : tenant_shards (tenant_id, shard_number, shard_count) {
26 0 : tenant_id -> Varchar,
27 0 : shard_number -> Int4,
28 0 : shard_count -> Int4,
29 0 : shard_stripe_size -> Int4,
30 0 : generation -> Nullable<Int4>,
31 0 : generation_pageserver -> Nullable<Int8>,
32 0 : placement_policy -> Varchar,
33 0 : splitting -> Int2,
34 0 : config -> Text,
35 0 : scheduling_policy -> Varchar,
36 0 : }
37 0 : }
38 :
39 : diesel::allow_tables_to_appear_in_same_query!(metadata_health, nodes, tenant_shards,);
|