Create albums table
This commit is contained in:
@ -1,5 +1,20 @@
|
||||
// @generated automatically by Diesel CLI.
|
||||
|
||||
diesel::table! {
|
||||
album_artists (album_id, artist_id) {
|
||||
album_id -> Int4,
|
||||
artist_id -> Int4,
|
||||
}
|
||||
}
|
||||
|
||||
diesel::table! {
|
||||
albums (id) {
|
||||
id -> Int4,
|
||||
title -> Varchar,
|
||||
release_date -> Nullable<Date>,
|
||||
}
|
||||
}
|
||||
|
||||
diesel::table! {
|
||||
artists (id) {
|
||||
id -> Int4,
|
||||
@ -17,7 +32,12 @@ diesel::table! {
|
||||
}
|
||||
}
|
||||
|
||||
diesel::joinable!(album_artists -> albums (album_id));
|
||||
diesel::joinable!(album_artists -> artists (artist_id));
|
||||
|
||||
diesel::allow_tables_to_appear_in_same_query!(
|
||||
album_artists,
|
||||
albums,
|
||||
artists,
|
||||
users,
|
||||
);
|
||||
|
Reference in New Issue
Block a user