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>,
59 community_follower (id) {
63 published -> Timestamp,
68 community_moderator (id) {
72 published -> Timestamp,
77 community_user_ban (id) {
81 published -> Timestamp,
89 other_user_id -> Int4,
90 removed -> Nullable<Bool>,
96 mod_add_community (id) {
99 other_user_id -> Int4,
100 community_id -> Int4,
101 removed -> Nullable<Bool>,
110 other_user_id -> Int4,
111 reason -> Nullable<Text>,
112 banned -> Nullable<Bool>,
113 expires -> Nullable<Timestamp>,
119 mod_ban_from_community (id) {
122 other_user_id -> Int4,
123 community_id -> Int4,
124 reason -> Nullable<Text>,
125 banned -> Nullable<Bool>,
126 expires -> Nullable<Timestamp>,
136 locked -> Nullable<Bool>,
142 mod_remove_comment (id) {
146 reason -> Nullable<Text>,
147 removed -> Nullable<Bool>,
153 mod_remove_community (id) {
156 community_id -> Int4,
157 reason -> Nullable<Text>,
158 removed -> Nullable<Bool>,
159 expires -> Nullable<Timestamp>,
165 mod_remove_post (id) {
169 reason -> Nullable<Text>,
170 removed -> Nullable<Bool>,
179 url -> Nullable<Text>,
180 body -> Nullable<Text>,
182 community_id -> Int4,
185 published -> Timestamp,
186 updated -> Nullable<Timestamp>,
197 published -> Timestamp,
206 published -> Timestamp,
215 published -> Timestamp,
223 description -> Nullable<Text>,
225 published -> Timestamp,
226 updated -> Nullable<Timestamp>,
234 fedi_name -> Varchar,
235 preferred_username -> Nullable<Varchar>,
236 password_encrypted -> Text,
237 email -> Nullable<Text>,
238 icon -> Nullable<Bytea>,
241 published -> Timestamp,
242 updated -> Nullable<Timestamp>,
250 published -> Timestamp,
254 joinable!(comment -> post (post_id));
255 joinable!(comment -> user_ (creator_id));
256 joinable!(comment_like -> comment (comment_id));
257 joinable!(comment_like -> post (post_id));
258 joinable!(comment_like -> user_ (user_id));
259 joinable!(comment_saved -> comment (comment_id));
260 joinable!(comment_saved -> user_ (user_id));
261 joinable!(community -> category (category_id));
262 joinable!(community -> user_ (creator_id));
263 joinable!(community_follower -> community (community_id));
264 joinable!(community_follower -> user_ (user_id));
265 joinable!(community_moderator -> community (community_id));
266 joinable!(community_moderator -> user_ (user_id));
267 joinable!(community_user_ban -> community (community_id));
268 joinable!(community_user_ban -> user_ (user_id));
269 joinable!(mod_add_community -> community (community_id));
270 joinable!(mod_ban_from_community -> community (community_id));
271 joinable!(mod_lock_post -> post (post_id));
272 joinable!(mod_lock_post -> user_ (mod_user_id));
273 joinable!(mod_remove_comment -> comment (comment_id));
274 joinable!(mod_remove_comment -> user_ (mod_user_id));
275 joinable!(mod_remove_community -> community (community_id));
276 joinable!(mod_remove_community -> user_ (mod_user_id));
277 joinable!(mod_remove_post -> post (post_id));
278 joinable!(mod_remove_post -> user_ (mod_user_id));
279 joinable!(post -> community (community_id));
280 joinable!(post -> user_ (creator_id));
281 joinable!(post_like -> post (post_id));
282 joinable!(post_like -> user_ (user_id));
283 joinable!(post_read -> post (post_id));
284 joinable!(post_read -> user_ (user_id));
285 joinable!(post_saved -> post (post_id));
286 joinable!(post_saved -> user_ (user_id));
287 joinable!(site -> user_ (creator_id));
288 joinable!(user_ban -> user_ (user_id));
290 allow_tables_to_appear_in_same_query!(
302 mod_ban_from_community,
305 mod_remove_community,