2020-05-09 15:41:25 +00:00
|
|
|
table! {
|
|
|
|
body (character_id) {
|
|
|
|
character_id -> Integer,
|
2020-05-29 18:23:00 +00:00
|
|
|
species -> SmallInt,
|
2020-05-09 15:41:25 +00:00
|
|
|
body_type -> SmallInt,
|
|
|
|
hair_style -> SmallInt,
|
|
|
|
beard -> SmallInt,
|
2020-05-29 18:23:00 +00:00
|
|
|
eyes -> SmallInt,
|
2020-05-09 15:41:25 +00:00
|
|
|
accessory -> SmallInt,
|
|
|
|
hair_color -> SmallInt,
|
|
|
|
skin -> SmallInt,
|
|
|
|
eye_color -> SmallInt,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
table! {
|
|
|
|
character (id) {
|
|
|
|
id -> Integer,
|
|
|
|
player_uuid -> Text,
|
|
|
|
alias -> Text,
|
|
|
|
tool -> Nullable<Text>,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-01 21:34:52 +00:00
|
|
|
table! {
|
|
|
|
inventory (character_id) {
|
|
|
|
character_id -> Integer,
|
|
|
|
items -> Text,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-20 08:44:29 +00:00
|
|
|
table! {
|
|
|
|
stats (character_id) {
|
|
|
|
character_id -> Integer,
|
|
|
|
level -> Integer,
|
|
|
|
exp -> Integer,
|
|
|
|
endurance -> Integer,
|
|
|
|
fitness -> Integer,
|
|
|
|
willpower -> Integer,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-09 15:41:25 +00:00
|
|
|
joinable!(body -> character (character_id));
|
2020-06-01 21:34:52 +00:00
|
|
|
joinable!(inventory -> character (character_id));
|
2020-04-20 08:44:29 +00:00
|
|
|
joinable!(stats -> character (character_id));
|
2020-05-09 15:41:25 +00:00
|
|
|
|
2020-06-01 21:34:52 +00:00
|
|
|
allow_tables_to_appear_in_same_query!(body, character, inventory, stats);
|