A mobile app for listening to radio stations from around the globe
git clone git://soophie.de/verbal
blob: 30e20002f3b5ad12631ec681bb1bc145c8c903f8 (970 bytes)[doc][blame][raw]
1
table! {2
account (id) {3
id -> Integer,4
username -> Nullable<Text>,5
language -> Text,6
is_playback_history -> Bool,7
}8
}10
table! {11
device (id) {12
id -> Integer,13
token -> Text,14
account_id -> Integer,15
}16
}18
table! {19
station (id) {20
id -> Integer,21
uuid -> Text,22
name -> Text,23
stream_url -> Text,24
votes -> Integer,25
favicon -> Nullable<Text>,26
homepage -> Nullable<Text>,27
tags -> Array<Text>,28
country -> Nullable<Text>,29
languages -> Array<Text>,30
state -> Nullable<Text>,31
}32
}34
table! {35
favorite (id) {36
id -> Integer,37
account_id -> Integer,38
station_id -> Integer,39
}40
}42
joinable!(device -> account (account_id));43
joinable!(favorite -> account (account_id));44
joinable!(favorite -> station (station_id));46
allow_tables_to_appear_in_same_query!(47
account,48
device,49
favorite,50
);