13 parent_id -> Nullable<Int4>,
17 published -> Timestamp,
18 updated -> Nullable<Timestamp>,
30 published -> Timestamp,
39 published -> Timestamp,
48 description -> Nullable<Text>,
52 published -> Timestamp,
53 updated -> Nullable<Timestamp>,
60 community_follower (id) {
64 published -> Timestamp,
69 community_moderator (id) {
73 published -> Timestamp,
78 community_user_ban (id) {
82 published -> Timestamp,
90 other_user_id -> Int4,
91 removed -> Nullable<Bool>,
97 mod_add_community (id) {
100 other_user_id -> Int4,
101 community_id -> Int4,
102 removed -> Nullable<Bool>,
111 other_user_id -> Int4,
112 reason -> Nullable<Text>,
113 banned -> Nullable<Bool>,
114 expires -> Nullable<Timestamp>,
120 mod_ban_from_community (id) {
123 other_user_id -> Int4,
124 community_id -> Int4,
125 reason -> Nullable<Text>,
126 banned -> Nullable<Bool>,
127 expires -> Nullable<Timestamp>,
137 locked -> Nullable<Bool>,
143 mod_remove_comment (id) {
147 reason -> Nullable<Text>,
148 removed -> Nullable<Bool>,
154 mod_remove_community (id) {
157 community_id -> Int4,
158 reason -> Nullable<Text>,
159 removed -> Nullable<Bool>,
160 expires -> Nullable<Timestamp>,
166 mod_remove_post (id) {
170 reason -> Nullable<Text>,
171 removed -> Nullable<Bool>,
180 url -> Nullable<Text>,
181 body -> Nullable<Text>,
183 community_id -> Int4,
186 published -> Timestamp,
187 updated -> Nullable<Timestamp>,
199 published -> Timestamp,
208 published -> Timestamp,
217 published -> Timestamp,
225 description -> Nullable<Text>,
227 published -> Timestamp,
228 updated -> Nullable<Timestamp>,
236 fedi_name -> Varchar,
237 preferred_username -> Nullable<Varchar>,
238 password_encrypted -> Text,
239 email -> Nullable<Text>,
240 icon -> Nullable<Bytea>,
243 published -> Timestamp,
244 updated -> Nullable<Timestamp>,
253 published -> Timestamp,
257 joinable!(comment -> post (post_id));
258 joinable!(comment -> user_ (creator_id));
259 joinable!(comment_like -> comment (comment_id));
260 joinable!(comment_like -> post (post_id));
261 joinable!(comment_like -> user_ (user_id));
262 joinable!(comment_saved -> comment (comment_id));
263 joinable!(comment_saved -> user_ (user_id));
264 joinable!(community -> category (category_id));
265 joinable!(community -> user_ (creator_id));
266 joinable!(community_follower -> community (community_id));
267 joinable!(community_follower -> user_ (user_id));
268 joinable!(community_moderator -> community (community_id));
269 joinable!(community_moderator -> user_ (user_id));
270 joinable!(community_user_ban -> community (community_id));
271 joinable!(community_user_ban -> user_ (user_id));
272 joinable!(mod_add_community -> community (community_id));
273 joinable!(mod_ban_from_community -> community (community_id));
274 joinable!(mod_lock_post -> post (post_id));
275 joinable!(mod_lock_post -> user_ (mod_user_id));
276 joinable!(mod_remove_comment -> comment (comment_id));
277 joinable!(mod_remove_comment -> user_ (mod_user_id));
278 joinable!(mod_remove_community -> community (community_id));
279 joinable!(mod_remove_community -> user_ (mod_user_id));
280 joinable!(mod_remove_post -> post (post_id));
281 joinable!(mod_remove_post -> user_ (mod_user_id));
282 joinable!(post -> community (community_id));
283 joinable!(post -> user_ (creator_id));
284 joinable!(post_like -> post (post_id));
285 joinable!(post_like -> user_ (user_id));
286 joinable!(post_read -> post (post_id));
287 joinable!(post_read -> user_ (user_id));
288 joinable!(post_saved -> post (post_id));
289 joinable!(post_saved -> user_ (user_id));
290 joinable!(site -> user_ (creator_id));
291 joinable!(user_ban -> user_ (user_id));
293 allow_tables_to_appear_in_same_query!(
305 mod_ban_from_community,
308 mod_remove_community,