You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

44 lines
854 B

table! {
comments (id) {
id -> Integer,
author_hash -> Text,
author_title -> Text,
content -> Text,
create_time -> Timestamp,
is_deleted -> Bool,
post_id -> Integer,
}
}
table! {
posts (id) {
id -> Integer,
author_hash -> Text,
content -> Text,
cw -> Text,
author_title -> Text,
n_likes -> Integer,
n_comments -> Integer,
create_time -> Timestamp,
last_comment_time -> Timestamp,
is_deleted -> Bool,
is_reported -> Bool,
hot_score -> Integer,
allow_search -> Bool,
}
}
table! {
users (id) {
id -> Integer,
name -> Text,
token -> Text,
is_admin -> Bool,
}
}
allow_tables_to_appear_in_same_query!(
comments,
posts,
users,
);