2020-01-25 22:16:08 +01:00
|
|
|
This is just a description of the database schema. It's not generated automatically, nor is it used
|
2020-01-26 02:39:58 +01:00
|
|
|
to automatically generate anything. For the latest version, check the files in app/models/
|
2020-01-25 22:16:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
user
|
|
|
|
username
|
|
|
|
is_admin
|
|
|
|
bias
|
|
|
|
|
|
|
|
order
|
|
|
|
id
|
|
|
|
courier_id
|
2020-01-26 02:39:58 +01:00
|
|
|
location_id HLDS identifier
|
|
|
|
location_name this allows historical orders to keep the same location name
|
|
|
|
starttime
|
|
|
|
stoptime
|
|
|
|
public
|
2020-01-25 22:16:08 +01:00
|
|
|
|
|
|
|
order_item
|
|
|
|
id
|
|
|
|
order_id
|
|
|
|
user_id
|
2020-01-26 02:39:58 +01:00
|
|
|
user_name for users who are not logged in
|
|
|
|
dish_id HLDS identifier
|
|
|
|
dish_name ) this allows historical orders to keep their correct name and price
|
|
|
|
price )
|
|
|
|
paid
|
|
|
|
comment
|
|
|
|
hlds_data_version Git commit hash to identify HLDS data version
|
2020-01-25 22:16:08 +01:00
|
|
|
|
|
|
|
order_item_choice
|
|
|
|
id
|
2020-01-26 02:39:58 +01:00
|
|
|
choice_id HLDS identifier
|
|
|
|
kind single_choice/multi_choice
|
2020-01-25 22:16:08 +01:00
|
|
|
order_item
|
|
|
|
name
|
|
|
|
description
|
2020-01-26 02:39:58 +01:00
|
|
|
value just a textual description of the chosen values
|