{"id":14974030,"url":"https://github.com/snehawk20/dbms_mid_day_meal","last_synced_at":"2026-02-05T00:32:19.444Z","repository":{"id":170128598,"uuid":"600674136","full_name":"snehawk20/DBMS_mid_day_meal","owner":"snehawk20","description":"A database with a front-end interface that stores all details pertaining to Mid Day Meal Scheme in a state.","archived":false,"fork":false,"pushed_at":"2023-05-25T10:51:45.000Z","size":2487,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-26T08:31:32.052Z","etag":null,"topics":["mid-day-meal","node-js","plpgsql","postgresql","row-level-security"],"latest_commit_sha":null,"homepage":"","language":"EJS","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/snehawk20.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":"2023-02-12T08:15:48.000Z","updated_at":"2023-07-15T07:30:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"1d29232d-2e7c-4455-8701-a4c2bcc4c507","html_url":"https://github.com/snehawk20/DBMS_mid_day_meal","commit_stats":{"total_commits":34,"total_committers":4,"mean_commits":8.5,"dds":0.5294117647058824,"last_synced_commit":"a51dcc0dc4a9db21a7e1ead5127cbdc7326ee4a4"},"previous_names":["snehawk20/dbms_mid_day_meal"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/snehawk20/DBMS_mid_day_meal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snehawk20%2FDBMS_mid_day_meal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snehawk20%2FDBMS_mid_day_meal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snehawk20%2FDBMS_mid_day_meal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snehawk20%2FDBMS_mid_day_meal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/snehawk20","download_url":"https://codeload.github.com/snehawk20/DBMS_mid_day_meal/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snehawk20%2FDBMS_mid_day_meal/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264229252,"owners_count":23576239,"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":["mid-day-meal","node-js","plpgsql","postgresql","row-level-security"],"created_at":"2024-09-24T13:49:50.927Z","updated_at":"2026-02-05T00:32:19.409Z","avatar_url":"https://github.com/snehawk20.png","language":"EJS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mid Day Meal Management System\n\n## Description\nThe objective of our project is to create a self-sufficient database to store all details pertaining to the budget allocation and expenditure on remuneration and procurement of fresh produce, cereals, pulses, etc. There are several levels of users with the lowest being school which micromanages the activities and updates the records daily. The database will be succinct and provide a smooth interface to ensure that resources are being used efficiently and not mis-used. Since it holds all data for a state, it will deal with huge quantities of data over the long run and be more efficient that maintaining it in paper (as is done in many places today). This system will give schools the liberty to take decisions at the local level while maintaining transparency in the allocation of resources. It can also enable efficient resource distribution from government storage facilities. \n\nWe shall store stock, enrollment of students, audit details, details on prices and items and daily logs.\n\n## Installation\n* Login to your `psql` client as user `postgres`\n    ```\n    sudo -u postgres psql\n    ```\n* Create the roles as follows:  \n    ```\n    create role city_role;  \n    create role school_role;  \n    create role district_role;\n    ```\n* Create a database named `mdm`  \n    ```\n    create database mdm;\n    ```\n* Exit the `psql` client and restore the `mdm.tar` file  \n    ```\n    pg_restore -U postgres -d mdm \u003cpath to tar file\u003e\n    ```\n* Again login to your `psql` client as user `postgres`\n* Create roles for users with login\n    * There are three kinds of roles: district, city and school\n    * They should be named as district_officer\u003c\u003ci\u003enum\u003c/i\u003e\u003e, city_officer\u003c\u003ci\u003enum\u003c/i\u003e\u003e and school_manager\u003c\u003ci\u003enum\u003c/i\u003e\u003e\n    * Where \u003c\u003ci\u003enum\u003c/i\u003e\u003e is the respective `district_id`, `city_id` and `school_id`  \n        ```\n        create role district_officer2 with login password '\u003cpassword\u003e';\n        ```\n    * Grant the roles the associated permissions of `district_role`, `city_role` and `school_role` respectively  \n        ```\n        grant district_role to district_officer2;\n        ```  \n\n## Schema\n![Schema](https://github.com/snehawk20/DBMS_mid_day_meal/blob/main/schema.jpg)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnehawk20%2Fdbms_mid_day_meal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsnehawk20%2Fdbms_mid_day_meal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnehawk20%2Fdbms_mid_day_meal/lists"}