2020-05-09 15:41:25 +00:00
|
|
|
table! {
|
2020-09-17 23:02:14 +00:00
|
|
|
body (body_id) {
|
|
|
|
body_id -> BigInt,
|
|
|
|
variant -> Text,
|
|
|
|
body_data -> Text,
|
2020-05-09 15:41:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
table! {
|
2020-09-17 23:02:14 +00:00
|
|
|
character (character_id) {
|
|
|
|
character_id -> BigInt,
|
2020-05-09 15:41:25 +00:00
|
|
|
player_uuid -> Text,
|
|
|
|
alias -> Text,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-01 21:34:52 +00:00
|
|
|
table! {
|
2020-09-17 23:02:14 +00:00
|
|
|
entity (entity_id) {
|
|
|
|
entity_id -> BigInt,
|
2020-06-01 21:34:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-04 11:44:33 +00:00
|
|
|
table! {
|
2020-09-17 23:02:14 +00:00
|
|
|
item (item_id) {
|
|
|
|
item_id -> BigInt,
|
|
|
|
parent_container_item_id -> BigInt,
|
|
|
|
item_definition_id -> Text,
|
|
|
|
stack_size -> Integer,
|
|
|
|
position -> Text,
|
2020-06-04 11:44:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-20 08:44:29 +00:00
|
|
|
table! {
|
2020-09-17 23:02:14 +00:00
|
|
|
stats (stats_id) {
|
|
|
|
stats_id -> BigInt,
|
2020-04-20 08:44:29 +00:00
|
|
|
level -> Integer,
|
|
|
|
exp -> Integer,
|
|
|
|
endurance -> Integer,
|
|
|
|
fitness -> Integer,
|
|
|
|
willpower -> Integer,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-09-17 23:02:14 +00:00
|
|
|
joinable!(character -> body (character_id));
|
|
|
|
joinable!(character -> stats (character_id));
|
2020-05-09 15:41:25 +00:00
|
|
|
|
2020-09-17 23:02:14 +00:00
|
|
|
allow_tables_to_appear_in_same_query!(body, character, entity, item, stats,);
|