diff --git a/app/database/muhscheme b/app/database/muhscheme deleted file mode 100644 index e4358ee..0000000 --- a/app/database/muhscheme +++ /dev/null @@ -1,19 +0,0 @@ -ORDERS -======= -OrderID | User | LocatieID | Starttijdstip | Eindtijstip | Comment - -Item -===== -ItemID | OrderID | User | FoodID - -Locaties -====== -LocatieID | Naam | Adres | Coordinaten(2.0) | Website - -LocatieMetaData -=============== -LocatieID | Key | Value - -Food -===== -FoodID | LocatieID | Naam | Prijs \ No newline at end of file diff --git a/app/database/muhscheme.txt b/app/database/muhscheme.txt new file mode 100644 index 0000000..2937354 --- /dev/null +++ b/app/database/muhscheme.txt @@ -0,0 +1,36 @@ +This is just a description of the database schema. It's not generated automatically, nor is it used +to automatically generate anything. + + +user + username + is_admin + bias + +order + id + location_id HLDS identifier + location_name this allows historical orders to keep the same location name + create_at + close_at + creator_id + courier_id + +order_item + id + order_id + item_id HLDS identifier + user_id + user_name for users who are not logged in + price this allows historical orders to keep their correct price + product_name + commit_hash Git commit hash to identify HLDS data version + +order_item_choice + id + choice_id HLDS identifier + kind single_choice/multi_choice + order_item + name + description + value just a textual description of the chosen values