{"id":16776478,"url":"https://github.com/hinton/eda216","last_synced_at":"2025-03-16T18:21:18.793Z","repository":{"id":28172196,"uuid":"31673488","full_name":"Hinton/EDA216","owner":"Hinton","description":"Project for the course EDA216 - Database Technology","archived":false,"fork":false,"pushed_at":"2016-03-17T18:18:27.000Z","size":937,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-23T05:14:17.409Z","etag":null,"topics":["database","java","school-project"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hinton.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-04T18:44:00.000Z","updated_at":"2017-02-18T00:23:39.000Z","dependencies_parsed_at":"2022-09-25T00:50:17.085Z","dependency_job_id":null,"html_url":"https://github.com/Hinton/EDA216","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hinton%2FEDA216","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hinton%2FEDA216/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hinton%2FEDA216/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hinton%2FEDA216/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hinton","download_url":"https://codeload.github.com/Hinton/EDA216/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243910749,"owners_count":20367545,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database","java","school-project"],"created_at":"2024-10-13T07:10:01.513Z","updated_at":"2025-03-16T18:21:18.768Z","avatar_url":"https://github.com/Hinton.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EDA216\n\nProject for the course [EDA216 - Database Technology](http://cs.lth.se/eda216/).\n\nTo start the program use `java -jar eda216.jar`.\n\nAs per requirement there is currently no GUI for viewing ingredient usage, the query ```select * from Ingredient_storage;``` can be used.\n\n![Screenshot](/doc/screenshot.png?raw=true \"Screenshot\")\n\n## Database Schema:\n\n![UML](/doc/model.png?raw=true \"UML Diagram\")\n\n```sql\ncreate table Customer (\n\tcustomerName VARCHAR(45), \n\taddress VARCHAR(45),\n\tprimary key(customerName)\n);\n\ncreate table `Order` (\n\torderId INT auto_increment,\n\tcustomerName VARCHAR(45),\n\torderDate DATETIME,\n\tprimary key(orderId),\n\tforeign key(customerName) references Customer(customerName)\n);\n\ncreate table Cookie (\n\tcookieName VARCHAR(45),\n\tprimary key(cookieName)\n);\n\ncreate table Order_Cookie (\n\torderId INT, \n\tcookieName VARCHAR(45), \n\tpalletAmount INT, \n\tprimary key(orderId, cookieName), \n\tforeign key(orderId) references `Order`(orderId), \n\tforeign key(cookieName) references Cookie(cookieName)\n);\n\ncreate table Pallet (\n\tpalletId INT auto_increment,\n\tcookieName VARCHAR(45),\n\torderId INT,\n\tproductionDate DATE,\n\tdeliveryDate DATE,\n\tlocation VARCHAR(45),\n\tisBlocked BOOLEAN,\n\tprimary key(palletId),\n\tforeign key(cookieName) references Cookie(cookieName),\n\tforeign key(orderId) references `Order`(orderId)\n);\n\ncreate table Ingredient_Storage (\n\tingredientName VARCHAR(45),\n\tamountLeft INT,\n\tprimary key(ingredientName)\n);\n\ncreate table Cookie_Ingredient (\n\tcookieName VARCHAR(45),\n\tingredientName VARCHAR(45),\n\tamount INT,\n\tprimary key(cookieName, ingredientName),\n\tforeign key(cookieName) references Cookie(cookieName),\n\tforeign key(ingredientName)\n\t\treferences Ingredient_Storage(ingredientName)\n);\n\ncreate table Ingredient_Delivery (\n\tingredientName VARCHAR(45), \n\tdeliveryDate DATETIME, \n\tamount INT, \n\tprimary key(ingredientName, deliveryDate), \n\tforeign key(ingredientName)\n\t\treferences Ingredient_Storage(ingredientName)\n);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhinton%2Feda216","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhinton%2Feda216","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhinton%2Feda216/lists"}