Added tags table
This commit is contained in:
parent
b80a060faf
commit
8284438576
3 changed files with 18 additions and 1 deletions
|
|
@ -19,6 +19,13 @@ table! {
|
|||
}
|
||||
}
|
||||
|
||||
table! {
|
||||
tags (post_id, value) {
|
||||
post_id -> Uuid,
|
||||
value -> Varchar,
|
||||
}
|
||||
}
|
||||
|
||||
table! {
|
||||
versions (id) {
|
||||
id -> Uuid,
|
||||
|
|
@ -31,10 +38,12 @@ table! {
|
|||
}
|
||||
|
||||
joinable!(posts -> sections (section_id));
|
||||
joinable!(tags -> posts (post_id));
|
||||
joinable!(versions -> posts (post_id));
|
||||
|
||||
allow_tables_to_appear_in_same_query!(
|
||||
posts,
|
||||
sections,
|
||||
tags,
|
||||
versions,
|
||||
);
|
||||
|
|
|
|||
Reference in a new issue