{
  "format": "dataset-manifest/1",
  "slug": "food-waste-reduction-and-donation-platform",
  "version": 2,
  "seed": "food-waste-reduction-and-donation-platform:1",
  "spec": {
    "format": "dataset/1",
    "slug": "food-waste-reduction-and-donation-platform",
    "name": "Food Rescue Operations Data",
    "tagline": "Food donations, donor businesses, delivery routes, and partner organizations involved in food rescue operations.",
    "description": "Businesses donate surplus food to partner organizations, ensuring that excess produce and goods reach those in need rather than ending up in landfills. The nonprofit organization operates by facilitating these connections, coordinating logistics, and managing the flow of food donations. Volunteers and staff work diligently to arrange collection events and verify the needs of local organizations, which helps streamline the donation process. Each operation is carefully tracked, with an eye on inventory levels and the efficiency of delivery routes. This effort is crucial in combating food waste and alleviating food insecurity in communities.\n\nThe relational structure of the dataset is built around several interconnected tables. The 'donor_businesses' table contains entries for each business that contributes food, detailing their contact information and donation capacities. The 'partner_organizations' table lists the community organizations that receive these donations, along with their operational details. The 'food_donations' table records each instance of food given, linking donor businesses to partner organizations through unique identifiers. Delivery logistics are captured in the 'delivery_routes' table, which outlines the paths taken by drivers to ensure timely deliveries. Lastly, 'emergency_requests' records urgent needs from partner organizations, allowing the nonprofit to respond promptly in critical situations. Each row across these tables can be joined based on shared keys such as business IDs, organization IDs, and donation IDs, allowing for comprehensive analysis.\n\nThis dataset answers key questions about the dynamics of food donations, such as which businesses are the most active donors, what types of food are most commonly donated, and how efficiently deliveries are made. It also sheds light on the frequency of emergency requests, providing insight into how the organization can better prepare for unexpected challenges. Practicing with this synthetic data can enhance skills in data manipulation, relational database management, and analytical reporting.",
    "domain": "nonprofit",
    "shape": "event-log",
    "useCases": [
      "analytics-demo",
      "etl-pipelines"
    ],
    "keywords": [
      "food waste",
      "donations",
      "nonprofit",
      "logistics",
      "community support",
      "data analysis"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "donor_businesses": {
        "description": "This table captures information about businesses that donate food. Each row represents a donor business with its contact details and location.",
        "rows": 150,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the donor business."
          },
          "business_name": {
            "kind": "fullName",
            "description": "The name of the business donating food."
          },
          "contact_email": {
            "kind": "email",
            "from": "business_name",
            "description": "The contact email for the donor business.",
            "nullable": true
          },
          "location": {
            "kind": "city",
            "description": "City where the donor business is located.",
            "nullable": true
          },
          "created_at": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Timestamp of when the business was added to the database.",
            "dayProfile": "business"
          }
        }
      },
      "partner_organizations": {
        "description": "This table includes information about organizations receiving food donations. Each row represents a partner organization.",
        "rows": 100,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the partner organization."
          },
          "organization_name": {
            "kind": "fullName",
            "description": "The name of the partner organization."
          },
          "contact_email": {
            "kind": "email",
            "from": "organization_name",
            "description": "The contact email for the partner organization.",
            "nullable": true
          },
          "location": {
            "kind": "city",
            "description": "City where the partner organization is located.",
            "nullable": true
          },
          "created_at": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Timestamp of when the organization was added to the database.",
            "dayProfile": "business"
          }
        }
      },
      "food_donations": {
        "description": "This table tracks food donations made by donor businesses to partner organizations. Each row represents an individual donation event.",
        "rows": 300,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the food donation event."
          },
          "donor_id": {
            "kind": "fk",
            "ref": "donor_businesses.id",
            "description": "Foreign key referencing the donor business."
          },
          "partner_id": {
            "kind": "fk",
            "ref": "partner_organizations.id",
            "description": "Foreign key referencing the partner organization receiving the donation."
          },
          "donation_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Date of the food donation.",
            "trend": "growing"
          },
          "food_item": {
            "kind": "words",
            "max": 3,
            "description": "Description of the food item donated.",
            "nullable": true,
            "pool": [
              "bread",
              "vegetables",
              "fruit",
              "meat",
              "dairy",
              "canned",
              "grains",
              "snacks",
              "beverages",
              "sweets",
              "pasta",
              "rice",
              "sauces",
              "spices",
              "nuts",
              "seeds",
              "tofu",
              "eggs",
              "frozen",
              "prepared"
            ],
            "min": 1
          },
          "quantity": {
            "kind": "int",
            "min": 1,
            "max": 100,
            "description": "Quantity of food items donated.",
            "nullable": true
          }
        }
      },
      "delivery_routes": {
        "description": "This table captures the delivery routes taken by drivers to deliver food donations. Each row represents a delivery event.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the delivery route."
          },
          "donation_id": {
            "kind": "fk",
            "ref": "food_donations.id",
            "description": "Foreign key referencing the food donation being delivered."
          },
          "delivery_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Date of the delivery.",
            "trend": "growing"
          },
          "driver_name": {
            "kind": "fullName",
            "description": "Name of the driver making the delivery.",
            "nullable": true
          },
          "route": {
            "kind": "words",
            "max": 3,
            "description": "Description of the delivery route taken.",
            "nullable": true,
            "pool": [
              "north",
              "south",
              "east",
              "west",
              "downtown",
              "uptown",
              "suburbs",
              "city",
              "rural",
              "highway",
              "local",
              "express",
              "scenic",
              "short",
              "long",
              "direct",
              "loop",
              "detour",
              "main",
              "side",
              "backroad"
            ],
            "min": 1
          }
        }
      },
      "emergency_requests": {
        "description": "This table tracks emergency requests for food assistance from partner organizations. Each row represents a request event.",
        "rows": 50,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for the emergency request."
          },
          "partner_id": {
            "kind": "fk",
            "ref": "partner_organizations.id",
            "description": "Foreign key referencing the partner organization making the request."
          },
          "request_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2023-12-31",
            "description": "Date of the emergency request.",
            "trend": "growing"
          },
          "food_needed": {
            "kind": "words",
            "max": 3,
            "description": "Description of the food items needed.",
            "nullable": true,
            "when": {
              "column": "urgency_level",
              "in": [
                "low",
                "medium",
                "high"
              ]
            },
            "pool": [
              "canned",
              "fresh",
              "frozen",
              "dry",
              "snacks",
              "meat",
              "vegetables",
              "fruit",
              "dairy",
              "grains",
              "beverages",
              "sweets",
              "pasta",
              "rice",
              "soups",
              "sauces",
              "spices",
              "nuts",
              "tofu",
              "eggs"
            ],
            "min": 1
          },
          "urgency_level": {
            "kind": "enum",
            "values": [
              "low",
              "medium",
              "high"
            ],
            "description": "Level of urgency for the request."
          }
        }
      }
    },
    "structure": "multi-table",
    "traits": [
      "categorical",
      "timestamped",
      "nullable"
    ],
    "analysisQuestions": [
      "What types of food items are most frequently donated?",
      "How do donation patterns vary by day of the week?",
      "What is the average quantity of food donated per event?",
      "How often do emergency requests occur compared to regular donations?",
      "What delivery routes are most commonly used for food donations?"
    ],
    "suggestedQueries": [
      {
        "title": "List all food donations",
        "sql": "SELECT * FROM food_donations;",
        "dialect": "postgres"
      },
      {
        "title": "Count donations by donor",
        "sql": "SELECT donor_id, COUNT(*) FROM food_donations GROUP BY donor_id;",
        "dialect": "postgres"
      },
      {
        "title": "Average quantity of donations per partner",
        "sql": "SELECT partner_id, AVG(quantity) FROM food_donations GROUP BY partner_id;",
        "dialect": "postgres"
      },
      {
        "title": "Emergency requests over time",
        "sql": "SELECT request_date, COUNT(*) FROM emergency_requests GROUP BY request_date;",
        "dialect": "postgres"
      },
      {
        "title": "Delivery routes for high urgency requests",
        "sql": "SELECT dr.* FROM delivery_routes dr JOIN emergency_requests er ON dr.donation_id = er.id WHERE er.urgency_level = 'high';",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Data Analysis for Nonprofit Operations",
        "body": "Nonprofit analysts can use this dataset to analyze donation trends and identify peak donation times, allowing them to optimize their outreach and collection efforts. By understanding the types of food that are most frequently donated, they can better target their communication with businesses, encouraging more contributions."
      },
      {
        "title": "Logistics Planning for Deliveries",
        "body": "Logistics coordinators can leverage this dataset to plan efficient delivery routes based on historical data. By analyzing past delivery routes and timings, they can minimize transportation costs and ensure timely deliveries to partner organizations, enhancing the impact of their food rescue operations."
      },
      {
        "title": "Emergency Response Strategy Development",
        "body": "Strategic planners in the nonprofit can utilize this dataset to assess the frequency and urgency of emergency requests. By identifying patterns in these requests, they can develop more effective response strategies to ensure that food reaches those in critical need during times of crisis."
      },
      {
        "title": "Training for New Staff",
        "body": "New staff members can use this dataset for training purposes, gaining insights into the operational processes involved in food rescue. By analyzing real-world scenarios captured in the data, they can learn about the importance of timely donations and how to coordinate effectively with various stakeholders."
      }
    ]
  },
  "counts": {
    "donor_businesses": 150,
    "partner_organizations": 100,
    "emergency_requests": 50,
    "food_donations": 300,
    "delivery_routes": 200
  },
  "stats": {
    "donor_businesses": {
      "rows": 150,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 150,
          "min": 1,
          "max": 150
        },
        "business_name": {
          "nulls": 0,
          "distinct": 147,
          "min": "Ana Carter",
          "max": "Zoe Park"
        },
        "contact_email": {
          "nulls": 15,
          "distinct": 134
        },
        "location": {
          "nulls": 14,
          "distinct": 57,
          "min": "Amsterdam",
          "max": "Zurich"
        },
        "created_at": {
          "nulls": 0,
          "distinct": 150,
          "min": "2023-01-01 10:47:02",
          "max": "2023-12-31 10:54:38"
        }
      }
    },
    "partner_organizations": {
      "rows": 100,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 100,
          "min": 1,
          "max": 100
        },
        "organization_name": {
          "nulls": 0,
          "distinct": 99,
          "min": "Alice Sousa",
          "max": "Zoe Kim"
        },
        "contact_email": {
          "nulls": 7,
          "distinct": 92
        },
        "location": {
          "nulls": 10,
          "distinct": 45,
          "min": "Amsterdam",
          "max": "Zurich"
        },
        "created_at": {
          "nulls": 0,
          "distinct": 100,
          "min": "2023-01-02 12:08:37",
          "max": "2023-12-30 16:13:06"
        }
      }
    },
    "food_donations": {
      "rows": 300,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 300,
          "min": 1,
          "max": 300
        },
        "donor_id": {
          "nulls": 0,
          "distinct": 123,
          "min": 1,
          "max": 150
        },
        "partner_id": {
          "nulls": 0,
          "distinct": 95,
          "min": 1,
          "max": 100
        },
        "donation_date": {
          "nulls": 0,
          "distinct": 194,
          "min": "2023-01-04",
          "max": "2023-12-31"
        },
        "food_item": {
          "nulls": 30,
          "distinct": 191
        },
        "quantity": {
          "nulls": 36,
          "distinct": 96,
          "min": 1,
          "max": 100
        }
      }
    },
    "delivery_routes": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "donation_id": {
          "nulls": 0,
          "distinct": 150,
          "min": 1,
          "max": 299
        },
        "delivery_date": {
          "nulls": 0,
          "distinct": 162,
          "min": "2023-01-13",
          "max": "2023-12-30"
        },
        "driver_name": {
          "nulls": 22,
          "distinct": 176,
          "min": "Alice Ahmed",
          "max": "Zoe Reyes"
        },
        "route": {
          "nulls": 20,
          "distinct": 147
        }
      }
    },
    "emergency_requests": {
      "rows": 50,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 50,
          "min": 1,
          "max": 50
        },
        "partner_id": {
          "nulls": 0,
          "distinct": 45,
          "min": 6,
          "max": 100
        },
        "request_date": {
          "nulls": 0,
          "distinct": 48,
          "min": "2023-01-06",
          "max": "2023-12-07"
        },
        "food_needed": {
          "nulls": 0,
          "distinct": 41
        },
        "urgency_level": {
          "nulls": 0,
          "distinct": 3,
          "min": "high",
          "max": "medium"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/donor_businesses.csv",
      "format": "csv",
      "table": "donor_businesses",
      "key": "datasets/food-waste-reduction-and-donation-platform/v2/csv/donor_businesses.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/food-waste-reduction-and-donation-platform/v2/csv/donor_businesses.csv",
      "bytes": 9808,
      "sha256": "ff42d61498bdb1eef81b3967ad6e4dec6ae39be0bf23a8cab4a32987fda26394",
      "rows": 150,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/partner_organizations.csv",
      "format": "csv",
      "table": "partner_organizations",
      "key": "datasets/food-waste-reduction-and-donation-platform/v2/csv/partner_organizations.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/food-waste-reduction-and-donation-platform/v2/csv/partner_organizations.csv",
      "bytes": 6593,
      "sha256": "f2ecc030a1d990f7e3829cc85acc2736e0e4c8b01919cf17368305d6c30e9a7c",
      "rows": 100,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/emergency_requests.csv",
      "format": "csv",
      "table": "emergency_requests",
      "key": "datasets/food-waste-reduction-and-donation-platform/v2/csv/emergency_requests.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/food-waste-reduction-and-donation-platform/v2/csv/emergency_requests.csv",
      "bytes": 1738,
      "sha256": "944e1b3a1f4ba0722fd4bf2f82635b3ecdfef690ced17dbc9011880f1e34d592",
      "rows": 50,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/food_donations.csv",
      "format": "csv",
      "table": "food_donations",
      "key": "datasets/food-waste-reduction-and-donation-platform/v2/csv/food_donations.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/food-waste-reduction-and-donation-platform/v2/csv/food_donations.csv",
      "bytes": 11177,
      "sha256": "f453eddcf1398561afbc53db04283bc811c6b92cfb9ecee09ca65150a43f3121",
      "rows": 300,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/delivery_routes.csv",
      "format": "csv",
      "table": "delivery_routes",
      "key": "datasets/food-waste-reduction-and-donation-platform/v2/csv/delivery_routes.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/food-waste-reduction-and-donation-platform/v2/csv/delivery_routes.csv",
      "bytes": 8475,
      "sha256": "c6938ac0f9748e4c2c7a6c857f9d29e94e9901bb72a261a1e914d5aef186e88b",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "food-waste-reduction-and-donation-platform.json",
      "format": "json",
      "table": null,
      "key": "datasets/food-waste-reduction-and-donation-platform/v2/food-waste-reduction-and-donation-platform.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/food-waste-reduction-and-donation-platform/v2/food-waste-reduction-and-donation-platform.json",
      "bytes": 136551,
      "sha256": "99c56b4c0fae93094ec7545f4dca917b656d331dc1eea450145031aa6042dc7e",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/food-waste-reduction-and-donation-platform/v2/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/food-waste-reduction-and-donation-platform/v2/sql/postgres.sql",
      "bytes": 54250,
      "sha256": "aa929e7905751aec14a961d8c97a428a16316ab6d43f345b34c73088b37a3ca5",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/food-waste-reduction-and-donation-platform/v2/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/food-waste-reduction-and-donation-platform/v2/sql/mysql.sql",
      "bytes": 53609,
      "sha256": "b150fc632008b76e9d5fa2ecb5f9bd4f5d12f08419a9f8e5ea07603a54b0a505",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/food-waste-reduction-and-donation-platform/v2/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/food-waste-reduction-and-donation-platform/v2/sql/mssql.sql",
      "bytes": 56247,
      "sha256": "3d59bfedc9a86c7296d08b89af1677b2f3b740c57b116caede1a668a58cd1abe",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/food-waste-reduction-and-donation-platform/v2/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/food-waste-reduction-and-donation-platform/v2/sql/sqlite.sql",
      "bytes": 53325,
      "sha256": "c7882b75e2bb27498a1b8910eddaedfacf356499fe8841e801dde0469845cc13",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/food-waste-reduction-and-donation-platform/v2/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/food-waste-reduction-and-donation-platform/v2/prisma/seed.ts",
      "bytes": 109063,
      "sha256": "9c2a81c5f28f88c62ca84cdce718e916a81b4658ab6a7f35d8258b85093c778c",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/food-waste-reduction-and-donation-platform/v2/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/food-waste-reduction-and-donation-platform/v2/django/fixtures.json",
      "bytes": 174557,
      "sha256": "f2eafa1199f076bca49eb5bdacac8526d2273237615ce0ca69e6fd75988056ad",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788734383044,
  "updatedAt": 1788778862580
}
