{"id":15173850,"url":"https://github.com/thesmartcooking/database","last_synced_at":"2026-01-07T04:34:46.933Z","repository":{"id":240789915,"uuid":"803394078","full_name":"TheSmartCooking/Database","owner":"TheSmartCooking","description":"Temporary code to visualise for the time being","archived":false,"fork":false,"pushed_at":"2024-06-04T22:14:51.000Z","size":112,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-10-30T03:48:26.600Z","etag":null,"topics":["mariadb","sql"],"latest_commit_sha":null,"homepage":"","language":"SQL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheSmartCooking.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-20T16:29:24.000Z","updated_at":"2024-06-04T22:14:54.000Z","dependencies_parsed_at":"2024-05-20T22:50:30.772Z","dependency_job_id":"b3fb716c-e0ba-423a-890b-9d2087c79bf1","html_url":"https://github.com/TheSmartCooking/Database","commit_stats":{"total_commits":98,"total_committers":2,"mean_commits":49.0,"dds":0.4285714285714286,"last_synced_commit":"15bdc77c5fe6f083409d1798966fd1aa3542bebb"},"previous_names":["thesmartcooking/database"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheSmartCooking%2FDatabase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheSmartCooking%2FDatabase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheSmartCooking%2FDatabase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheSmartCooking%2FDatabase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheSmartCooking","download_url":"https://codeload.github.com/TheSmartCooking/Database/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245787718,"owners_count":20671969,"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":["mariadb","sql"],"created_at":"2024-09-27T11:03:44.876Z","updated_at":"2026-01-07T04:34:46.927Z","avatar_url":"https://github.com/TheSmartCooking.png","language":"SQL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MariaDB SQL Database Generation\n\nThis repository contains SQL scripts to generate a database schema in MariaDB.\nThe schema includes tables for managing recipes, comments, users, tags, and more.\n\n## Getting Started\n\nTo set up the database locally, you'll need Docker installed. Follow the steps below to build and run the database in a container.\n\n### Setup Steps\n\n1. **Build the Docker Image**:\n\n   ```bash\n   docker build -t smartcooking-mariadb .\n   ```\n\n2. **Run the Docker Container**:\n\n   ```bash\n   docker run -d -p 3306:3306 --name Smart-Cooking_Database -e MARIADB_ROOT_PASSWORD=myrootpassword smartcooking-mariadb\n   ```\n\n3. **Access the Database**:\n\n   ```bash\n   docker exec -it Smart-Cooking_Database mariadb -uroot -pmyrootpassword smartcooking\n   ```\n\n## Database Schema Overview\n\nThe database schema consists of the following tables:\n\n1. **image**: Stores image data for avatars and recipe images.\n2. **person**: Contains information about users such as name, email, and registration date.\n3. **responsibility**: Stores responsibilities associated with users.\n4. **person_responsibility**: Defines a many-to-many relationship between persons and responsibilities.\n5. **status**: Defines status options for recipes.\n6. **language_code**: Stores language information for translations.\n7. **recipe**: Represents individual recipes with details like author, cook time, and difficulty level.\n8. **recipe_translation**: Stores translations of recipe details in different languages.\n9. **tag**: Contains tags associated with recipes.\n10. **comment**: Stores comments made by users on recipes.\n11. **comment_like**: Tracks likes on comments.\n12. **favorite**: Stores information about users' favorite recipes.\n13. **recipe_tag**: Represents a many-to-many relationship between recipes and tags.\n\n## Usage\n\n1. **Clone the Repository**: Clone this repository to your local machine using `git clone`.\n\n2. **Execute SQL Scripts**: Run the provided SQL scripts in your MariaDB environment to create the database schema.\n\n3. **Customization**: Modify the schema or add additional features as per your requirements.\n\n## Contributing\n\nContributions are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or create a pull request.\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesmartcooking%2Fdatabase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthesmartcooking%2Fdatabase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesmartcooking%2Fdatabase/lists"}