@@ -26,6 +26,18 @@ diesel::table! {
26
26
///
27
27
/// (Automatically generated by Diesel.)
28
28
id -> Uuid ,
29
+ /// The `avatar_id` column of the `accounts` table.
30
+ ///
31
+ /// Its SQL type is `Nullable<Uuid>`.
32
+ ///
33
+ /// (Automatically generated by Diesel.)
34
+ avatar_id -> Nullable <Uuid >,
35
+ /// The `header_id` column of the `accounts` table.
36
+ ///
37
+ /// Its SQL type is `Nullable<Uuid>`.
38
+ ///
39
+ /// (Automatically generated by Diesel.)
40
+ header_id -> Nullable <Uuid >,
29
41
/// The `display_name` column of the `accounts` table.
30
42
///
31
43
/// Its SQL type is `Nullable<Text>`.
@@ -62,96 +74,118 @@ diesel::table! {
62
74
///
63
75
/// (Automatically generated by Diesel.)
64
76
domain -> Text ,
65
- /// The `actor_type ` column of the `accounts` table.
77
+ /// The `account_type ` column of the `accounts` table.
66
78
///
67
79
/// Its SQL type is `Int4`.
68
80
///
69
81
/// (Automatically generated by Diesel.)
70
- actor_type -> Int4 ,
82
+ account_type -> Int4 ,
71
83
/// The `url` column of the `accounts` table.
72
84
///
73
85
/// Its SQL type is `Text`.
74
86
///
75
87
/// (Automatically generated by Diesel.)
76
88
url -> Text ,
77
- /// The `featured_collection_url ` column of the `accounts` table.
89
+ /// The `created_at ` column of the `accounts` table.
78
90
///
79
- /// Its SQL type is `Nullable<Text> `.
91
+ /// Its SQL type is `Timestamptz `.
80
92
///
81
93
/// (Automatically generated by Diesel.)
82
- featured_collection_url -> Nullable < Text > ,
83
- /// The `followers_url ` column of the `accounts` table.
94
+ created_at -> Timestamptz ,
95
+ /// The `updated_at ` column of the `accounts` table.
84
96
///
85
- /// Its SQL type is `Nullable<Text> `.
97
+ /// Its SQL type is `Timestamptz `.
86
98
///
87
99
/// (Automatically generated by Diesel.)
88
- followers_url -> Nullable < Text > ,
89
- /// The `following_url ` column of the `accounts` table.
100
+ updated_at -> Timestamptz ,
101
+ /// The `account_ts ` column of the `accounts` table.
90
102
///
91
- /// Its SQL type is `Nullable<Text> `.
103
+ /// Its SQL type is `Tsvector `.
92
104
///
93
105
/// (Automatically generated by Diesel.)
94
- following_url -> Nullable <Text >,
95
- /// The `inbox_url` column of the `accounts` table.
106
+ account_ts -> Tsvector ,
107
+ }
108
+ }
109
+
110
+ diesel:: table! {
111
+ use diesel:: sql_types:: * ;
112
+ use diesel_full_text_search:: Tsvector ;
113
+
114
+ /// Representation of the `accounts_activitypub` table.
115
+ ///
116
+ /// (Automatically generated by Diesel.)
117
+ accounts_activitypub ( account_id) {
118
+ /// The `account_id` column of the `accounts_activitypub` table.
96
119
///
97
- /// Its SQL type is `Nullable<Text> `.
120
+ /// Its SQL type is `Uuid `.
98
121
///
99
122
/// (Automatically generated by Diesel.)
100
- inbox_url -> Nullable < Text > ,
101
- /// The `outbox_url ` column of the `accounts ` table.
123
+ account_id -> Uuid ,
124
+ /// The `featured_collection_url ` column of the `accounts_activitypub ` table.
102
125
///
103
126
/// Its SQL type is `Nullable<Text>`.
104
127
///
105
128
/// (Automatically generated by Diesel.)
106
- outbox_url -> Nullable <Text >,
107
- /// The `shared_inbox_url ` column of the `accounts ` table.
129
+ featured_collection_url -> Nullable <Text >,
130
+ /// The `followers_url ` column of the `accounts_activitypub ` table.
108
131
///
109
132
/// Its SQL type is `Nullable<Text>`.
110
133
///
111
134
/// (Automatically generated by Diesel.)
112
- shared_inbox_url -> Nullable <Text >,
113
- /// The `public_key_id ` column of the `accounts ` table.
135
+ followers_url -> Nullable <Text >,
136
+ /// The `following_url ` column of the `accounts_activitypub ` table.
114
137
///
115
- /// Its SQL type is `Text`.
138
+ /// Its SQL type is `Nullable< Text> `.
116
139
///
117
140
/// (Automatically generated by Diesel.)
118
- public_key_id -> Text ,
119
- /// The `public_key ` column of the `accounts ` table.
141
+ following_url -> Nullable < Text > ,
142
+ /// The `inbox_url ` column of the `accounts_activitypub ` table.
120
143
///
121
- /// Its SQL type is `Text`.
144
+ /// Its SQL type is `Nullable< Text> `.
122
145
///
123
146
/// (Automatically generated by Diesel.)
124
- public_key -> Text ,
125
- /// The `created_at ` column of the `accounts ` table.
147
+ inbox_url -> Nullable < Text > ,
148
+ /// The `outbox_url ` column of the `accounts_activitypub ` table.
126
149
///
127
- /// Its SQL type is `Timestamptz `.
150
+ /// Its SQL type is `Nullable<Text> `.
128
151
///
129
152
/// (Automatically generated by Diesel.)
130
- created_at -> Timestamptz ,
131
- /// The `updated_at ` column of the `accounts ` table.
153
+ outbox_url -> Nullable < Text > ,
154
+ /// The `shared_inbox_url ` column of the `accounts_activitypub ` table.
132
155
///
133
- /// Its SQL type is `Timestamptz `.
156
+ /// Its SQL type is `Nullable<Text> `.
134
157
///
135
158
/// (Automatically generated by Diesel.)
136
- updated_at -> Timestamptz ,
137
- /// The `account_ts ` column of the `accounts ` table.
159
+ shared_inbox_url -> Nullable < Text > ,
160
+ /// The `key_id ` column of the `accounts_activitypub ` table.
138
161
///
139
- /// Its SQL type is `Tsvector `.
162
+ /// Its SQL type is `Text `.
140
163
///
141
164
/// (Automatically generated by Diesel.)
142
- account_ts -> Tsvector ,
143
- /// The `avatar_id` column of the `accounts` table.
165
+ key_id -> Text ,
166
+ }
167
+ }
168
+
169
+ diesel:: table! {
170
+ use diesel:: sql_types:: * ;
171
+ use diesel_full_text_search:: Tsvector ;
172
+
173
+ /// Representation of the `accounts_cryptographic_keys` table.
174
+ ///
175
+ /// (Automatically generated by Diesel.)
176
+ accounts_cryptographic_keys ( account_id, key_id) {
177
+ /// The `account_id` column of the `accounts_cryptographic_keys` table.
144
178
///
145
- /// Its SQL type is `Nullable< Uuid> `.
179
+ /// Its SQL type is `Uuid`.
146
180
///
147
181
/// (Automatically generated by Diesel.)
148
- avatar_id -> Nullable < Uuid > ,
149
- /// The `header_id ` column of the `accounts ` table.
182
+ account_id -> Uuid ,
183
+ /// The `key_id ` column of the `accounts_cryptographic_keys ` table.
150
184
///
151
- /// Its SQL type is `Nullable<Uuid> `.
185
+ /// Its SQL type is `Text `.
152
186
///
153
187
/// (Automatically generated by Diesel.)
154
- header_id -> Nullable < Uuid > ,
188
+ key_id -> Text ,
155
189
}
156
190
}
157
191
@@ -267,6 +301,41 @@ diesel::table! {
267
301
}
268
302
}
269
303
304
+ diesel:: table! {
305
+ use diesel:: sql_types:: * ;
306
+ use diesel_full_text_search:: Tsvector ;
307
+
308
+ /// Representation of the `cryptographic_keys` table.
309
+ ///
310
+ /// (Automatically generated by Diesel.)
311
+ cryptographic_keys ( key_id) {
312
+ /// The `key_id` column of the `cryptographic_keys` table.
313
+ ///
314
+ /// Its SQL type is `Text`.
315
+ ///
316
+ /// (Automatically generated by Diesel.)
317
+ key_id -> Text ,
318
+ /// The `public_key_pem` column of the `cryptographic_keys` table.
319
+ ///
320
+ /// Its SQL type is `Text`.
321
+ ///
322
+ /// (Automatically generated by Diesel.)
323
+ public_key_pem -> Text ,
324
+ /// The `private_key_pem` column of the `cryptographic_keys` table.
325
+ ///
326
+ /// Its SQL type is `Nullable<Text>`.
327
+ ///
328
+ /// (Automatically generated by Diesel.)
329
+ private_key_pem -> Nullable <Text >,
330
+ /// The `created_at` column of the `cryptographic_keys` table.
331
+ ///
332
+ /// Its SQL type is `Timestamptz`.
333
+ ///
334
+ /// (Automatically generated by Diesel.)
335
+ created_at -> Timestamptz ,
336
+ }
337
+ }
338
+
270
339
diesel:: table! {
271
340
use diesel:: sql_types:: * ;
272
341
use diesel_full_text_search:: Tsvector ;
@@ -765,6 +834,12 @@ diesel::table! {
765
834
///
766
835
/// (Automatically generated by Diesel.)
767
836
content_lang -> LanguageIsoCode ,
837
+ /// The `link_preview_url` column of the `posts` table.
838
+ ///
839
+ /// Its SQL type is `Nullable<Text>`.
840
+ ///
841
+ /// (Automatically generated by Diesel.)
842
+ link_preview_url -> Nullable <Text >,
768
843
/// The `visibility` column of the `posts` table.
769
844
///
770
845
/// Its SQL type is `Int4`.
@@ -801,12 +876,6 @@ diesel::table! {
801
876
///
802
877
/// (Automatically generated by Diesel.)
803
878
post_ts -> Tsvector ,
804
- /// The `link_preview_url` column of the `posts` table.
805
- ///
806
- /// Its SQL type is `Nullable<Text>`.
807
- ///
808
- /// (Automatically generated by Diesel.)
809
- link_preview_url -> Nullable <Text >,
810
879
}
811
880
}
812
881
@@ -946,12 +1015,6 @@ diesel::table! {
946
1015
///
947
1016
/// (Automatically generated by Diesel.)
948
1017
id -> Uuid ,
949
- /// The `account_id` column of the `users` table.
950
- ///
951
- /// Its SQL type is `Uuid`.
952
- ///
953
- /// (Automatically generated by Diesel.)
954
- account_id -> Uuid ,
955
1018
/// The `oidc_id` column of the `users` table.
956
1019
///
957
1020
/// Its SQL type is `Nullable<Text>`.
@@ -982,12 +1045,6 @@ diesel::table! {
982
1045
///
983
1046
/// (Automatically generated by Diesel.)
984
1047
domain -> Text ,
985
- /// The `private_key` column of the `users` table.
986
- ///
987
- /// Its SQL type is `Text`.
988
- ///
989
- /// (Automatically generated by Diesel.)
990
- private_key -> Text ,
991
1048
/// The `confirmed_at` column of the `users` table.
992
1049
///
993
1050
/// Its SQL type is `Nullable<Timestamptz>`.
@@ -1015,6 +1072,29 @@ diesel::table! {
1015
1072
}
1016
1073
}
1017
1074
1075
+ diesel:: table! {
1076
+ use diesel:: sql_types:: * ;
1077
+ use diesel_full_text_search:: Tsvector ;
1078
+
1079
+ /// Representation of the `users_accounts` table.
1080
+ ///
1081
+ /// (Automatically generated by Diesel.)
1082
+ users_accounts ( user_id, account_id) {
1083
+ /// The `user_id` column of the `users_accounts` table.
1084
+ ///
1085
+ /// Its SQL type is `Uuid`.
1086
+ ///
1087
+ /// (Automatically generated by Diesel.)
1088
+ user_id -> Uuid ,
1089
+ /// The `account_id` column of the `users_accounts` table.
1090
+ ///
1091
+ /// Its SQL type is `Uuid`.
1092
+ ///
1093
+ /// (Automatically generated by Diesel.)
1094
+ account_id -> Uuid ,
1095
+ }
1096
+ }
1097
+
1018
1098
diesel:: table! {
1019
1099
use diesel:: sql_types:: * ;
1020
1100
use diesel_full_text_search:: Tsvector ;
@@ -1050,6 +1130,10 @@ diesel::table! {
1050
1130
}
1051
1131
}
1052
1132
1133
+ diesel:: joinable!( accounts_activitypub -> accounts ( account_id) ) ;
1134
+ diesel:: joinable!( accounts_activitypub -> cryptographic_keys ( key_id) ) ;
1135
+ diesel:: joinable!( accounts_cryptographic_keys -> accounts ( account_id) ) ;
1136
+ diesel:: joinable!( accounts_cryptographic_keys -> cryptographic_keys ( key_id) ) ;
1053
1137
diesel:: joinable!( accounts_preferences -> accounts ( account_id) ) ;
1054
1138
diesel:: joinable!( custom_emojis -> media_attachments ( media_attachment_id) ) ;
1055
1139
diesel:: joinable!( notifications -> posts ( post_id) ) ;
@@ -1069,13 +1153,17 @@ diesel::joinable!(posts_media_attachments -> media_attachments (media_attachment
1069
1153
diesel:: joinable!( posts_media_attachments -> posts ( post_id) ) ;
1070
1154
diesel:: joinable!( posts_mentions -> accounts ( account_id) ) ;
1071
1155
diesel:: joinable!( posts_mentions -> posts ( post_id) ) ;
1072
- diesel:: joinable!( users -> accounts ( account_id) ) ;
1156
+ diesel:: joinable!( users_accounts -> accounts ( account_id) ) ;
1157
+ diesel:: joinable!( users_accounts -> users ( user_id) ) ;
1073
1158
diesel:: joinable!( users_roles -> users ( user_id) ) ;
1074
1159
1075
1160
diesel:: allow_tables_to_appear_in_same_query!(
1076
1161
accounts,
1162
+ accounts_activitypub,
1163
+ accounts_cryptographic_keys,
1077
1164
accounts_follows,
1078
1165
accounts_preferences,
1166
+ cryptographic_keys,
1079
1167
custom_emojis,
1080
1168
job_context,
1081
1169
link_previews,
@@ -1091,5 +1179,6 @@ diesel::allow_tables_to_appear_in_same_query!(
1091
1179
posts_media_attachments,
1092
1180
posts_mentions,
1093
1181
users,
1182
+ users_accounts,
1094
1183
users_roles,
1095
1184
) ;
0 commit comments