Skip to content

Commit 345816d

Browse files
committed
chore: fmt
1 parent 878d534 commit 345816d

File tree

1 file changed

+136
-136
lines changed

1 file changed

+136
-136
lines changed

crates/database/src/schema.rs

Lines changed: 136 additions & 136 deletions
Original file line numberDiff line numberDiff line change
@@ -1,184 +1,184 @@
11
// @generated automatically by Diesel CLI.
22

33
diesel::table! {
4-
autocomplete (id) {
5-
id -> Uuid,
6-
#[max_length = 16]
7-
name -> Varchar,
8-
searches -> Int4,
9-
}
4+
autocomplete (id) {
5+
id -> Uuid,
6+
#[max_length = 16]
7+
name -> Varchar,
8+
searches -> Int4,
9+
}
1010
}
1111

1212
diesel::table! {
13-
bazaar (id) {
14-
id -> Int4,
15-
item_id -> Int2,
16-
sell_price -> Float8,
17-
sell_volume -> Int4,
18-
sell_orders -> Int4,
19-
buy_price -> Float8,
20-
buy_volume -> Int4,
21-
buy_orders -> Int4,
22-
created_at -> Timestamptz,
23-
}
13+
bazaar (id) {
14+
id -> Int4,
15+
item_id -> Int2,
16+
sell_price -> Float8,
17+
sell_volume -> Int4,
18+
sell_orders -> Int4,
19+
buy_price -> Float8,
20+
buy_volume -> Int4,
21+
buy_orders -> Int4,
22+
created_at -> Timestamptz,
23+
}
2424
}
2525

2626
diesel::table! {
27-
bazaar_item (id) {
28-
id -> Int2,
29-
name -> Text,
30-
}
27+
bazaar_item (id) {
28+
id -> Int2,
29+
name -> Text,
30+
}
3131
}
3232

3333
diesel::table! {
34-
boost (user_id, guild_id) {
35-
user_id -> Int8,
36-
guild_id -> Int8,
37-
created_at -> Timestamptz,
38-
}
34+
boost (user_id, guild_id) {
35+
user_id -> Int8,
36+
guild_id -> Int8,
37+
created_at -> Timestamptz,
38+
}
3939
}
4040

4141
diesel::table! {
42-
guild_autocomplete (uuid) {
43-
uuid -> Uuid,
44-
#[max_length = 32]
45-
name -> Varchar,
46-
xp -> Int4,
47-
searches -> Int4,
48-
}
42+
guild_autocomplete (uuid) {
43+
uuid -> Uuid,
44+
#[max_length = 32]
45+
name -> Varchar,
46+
xp -> Int4,
47+
searches -> Int4,
48+
}
4949
}
5050

5151
diesel::table! {
52-
guild_schedule (uuid) {
53-
uuid -> Uuid,
54-
snapshots -> Int4,
55-
hash -> Int8,
56-
prev_hash -> Nullable<Int8>,
57-
update_at -> Timestamptz,
58-
created_at -> Timestamptz,
59-
}
52+
guild_schedule (uuid) {
53+
uuid -> Uuid,
54+
snapshots -> Int4,
55+
hash -> Int8,
56+
prev_hash -> Nullable<Int8>,
57+
update_at -> Timestamptz,
58+
created_at -> Timestamptz,
59+
}
6060
}
6161

6262
diesel::table! {
63-
guild_snapshot (id) {
64-
id -> Int8,
65-
uuid -> Uuid,
66-
hash -> Int8,
67-
did_update -> Bool,
68-
data -> Bytea,
69-
created_at -> Timestamptz,
70-
updated_at -> Timestamptz,
71-
days_since_epoch -> Int4,
72-
version -> Int2,
73-
trusted -> Bool,
74-
}
63+
guild_snapshot (id) {
64+
id -> Int8,
65+
uuid -> Uuid,
66+
hash -> Int8,
67+
did_update -> Bool,
68+
data -> Bytea,
69+
created_at -> Timestamptz,
70+
updated_at -> Timestamptz,
71+
days_since_epoch -> Int4,
72+
version -> Int2,
73+
trusted -> Bool,
74+
}
7575
}
7676

7777
diesel::table! {
78-
metric (id) {
79-
id -> Int4,
80-
discord_id -> Int8,
81-
kind -> Int2,
82-
created_at -> Timestamptz,
83-
}
78+
metric (id) {
79+
id -> Int4,
80+
discord_id -> Int8,
81+
kind -> Int2,
82+
created_at -> Timestamptz,
83+
}
8484
}
8585

8686
diesel::table! {
87-
schedule (uuid) {
88-
uuid -> Uuid,
89-
update_at -> Timestamptz,
90-
created_at -> Timestamptz,
91-
snapshots -> Int4,
92-
hash -> Int8,
93-
prev_hash -> Nullable<Int8>,
94-
weekly_schedule -> Int4,
95-
active_at -> Timestamptz,
96-
vendor_update_at -> Nullable<Timestamptz>,
97-
vendor_hash -> Nullable<Int8>,
98-
vendor_prev_hash -> Nullable<Int8>,
99-
}
87+
schedule (uuid) {
88+
uuid -> Uuid,
89+
update_at -> Timestamptz,
90+
created_at -> Timestamptz,
91+
snapshots -> Int4,
92+
hash -> Int8,
93+
prev_hash -> Nullable<Int8>,
94+
weekly_schedule -> Int4,
95+
active_at -> Timestamptz,
96+
vendor_update_at -> Nullable<Timestamptz>,
97+
vendor_hash -> Nullable<Int8>,
98+
vendor_prev_hash -> Nullable<Int8>,
99+
}
100100
}
101101

102102
diesel::table! {
103-
session (id) {
104-
id -> Uuid,
105-
snapshot_id -> Int8,
106-
user_id -> Int8,
107-
uuid -> Uuid,
108-
kind -> Int2,
109-
created_at -> Timestamptz,
110-
name -> Nullable<Text>,
111-
}
103+
session (id) {
104+
id -> Uuid,
105+
snapshot_id -> Int8,
106+
user_id -> Int8,
107+
uuid -> Uuid,
108+
kind -> Int2,
109+
created_at -> Timestamptz,
110+
name -> Nullable<Text>,
111+
}
112112
}
113113

114114
diesel::table! {
115-
snapshot (id) {
116-
uuid -> Uuid,
117-
created_at -> Timestamptz,
118-
updated_at -> Timestamptz,
119-
id -> Int8,
120-
data -> Bytea,
121-
did_update -> Bool,
122-
hash -> Int8,
123-
version -> Int2,
124-
trusted -> Bool,
125-
}
115+
snapshot (id) {
116+
uuid -> Uuid,
117+
created_at -> Timestamptz,
118+
updated_at -> Timestamptz,
119+
id -> Int8,
120+
data -> Bytea,
121+
did_update -> Bool,
122+
hash -> Int8,
123+
version -> Int2,
124+
trusted -> Bool,
125+
}
126126
}
127127

128128
diesel::table! {
129-
track (channel_id, uuid, user_id) {
130-
user_id -> Int8,
131-
guild_id -> Nullable<Int8>,
132-
channel_id -> Int8,
133-
uuid -> Uuid,
134-
state -> Int2,
135-
created_at -> Timestamptz,
136-
}
129+
track (channel_id, uuid, user_id) {
130+
user_id -> Int8,
131+
guild_id -> Nullable<Int8>,
132+
channel_id -> Int8,
133+
uuid -> Uuid,
134+
state -> Int2,
135+
created_at -> Timestamptz,
136+
}
137137
}
138138

139139
diesel::table! {
140-
usage (user_id, command_name) {
141-
user_id -> Int8,
142-
command_name -> Text,
143-
count -> Int4,
144-
}
140+
usage (user_id, command_name) {
141+
user_id -> Int8,
142+
command_name -> Text,
143+
count -> Int4,
144+
}
145145
}
146146

147147
diesel::table! {
148-
user (id) {
149-
id -> Int8,
150-
uuid -> Nullable<Uuid>,
151-
updated_at -> Timestamptz,
152-
created_at -> Timestamptz,
153-
display -> Int2,
154-
#[max_length = 4]
155-
suffix -> Nullable<Varchar>,
156-
colour -> Nullable<Int4>,
157-
votes -> Int2,
158-
tracks -> Int2,
159-
max_tracks -> Int2,
160-
premium_until -> Nullable<Timestamptz>,
161-
boosts -> Int2,
162-
max_boosts -> Int2,
163-
font -> Int2,
164-
}
148+
user (id) {
149+
id -> Int8,
150+
uuid -> Nullable<Uuid>,
151+
updated_at -> Timestamptz,
152+
created_at -> Timestamptz,
153+
display -> Int2,
154+
#[max_length = 4]
155+
suffix -> Nullable<Varchar>,
156+
colour -> Nullable<Int4>,
157+
votes -> Int2,
158+
tracks -> Int2,
159+
max_tracks -> Int2,
160+
premium_until -> Nullable<Timestamptz>,
161+
boosts -> Int2,
162+
max_boosts -> Int2,
163+
font -> Int2,
164+
}
165165
}
166166

167167
diesel::joinable!(bazaar -> bazaar_item (item_id));
168168

169169
diesel::allow_tables_to_appear_in_same_query!(
170-
autocomplete,
171-
bazaar,
172-
bazaar_item,
173-
boost,
174-
guild_autocomplete,
175-
guild_schedule,
176-
guild_snapshot,
177-
metric,
178-
schedule,
179-
session,
180-
snapshot,
181-
track,
182-
usage,
183-
user,
170+
autocomplete,
171+
bazaar,
172+
bazaar_item,
173+
boost,
174+
guild_autocomplete,
175+
guild_schedule,
176+
guild_snapshot,
177+
metric,
178+
schedule,
179+
session,
180+
snapshot,
181+
track,
182+
usage,
183+
user,
184184
);

0 commit comments

Comments
 (0)