-- phpMyAdmin SQL Dump
-- version 4.9.5deb2
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: May 19, 2025 at 06:12 PM
-- Server version: 8.0.42-0ubuntu0.20.04.1
-- PHP Version: 7.4.3-4ubuntu2.29

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

--
-- Database: `demopractice`
--

-- --------------------------------------------------------

--
-- Table structure for table `smallanimal`
--

CREATE TABLE `smallanimal` (
  `SmallAnimalId` int NOT NULL,
  `BranchId` int NOT NULL,
  `Name` varchar(50) DEFAULT NULL,
  `ReceiptId` int DEFAULT NULL,
  `Year` int NOT NULL,
  `AnimalNo` varchar(11) NOT NULL,
  `AnimalType` enum('Small') CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT 'Small',
  `NoOfShares` int NOT NULL,
  `AreaId` int NOT NULL,
  `AssignedExcecutive` int NOT NULL,
  `Day` int NOT NULL,
  `AssignedStatus` enum('UnAssigned','Assigned') CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT 'UnAssigned',
  `QurbaniStatus` enum('Empty','Inprogress','Booked','Qurbani Done','MeatDistributed') CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL DEFAULT 'Empty',
  `SlaughtBy` int DEFAULT NULL,
  `SlaughtDate` datetime NOT NULL,
  `MeatDistributedBy` int DEFAULT NULL,
  `MeatDistributedDate` datetime NOT NULL,
  `QurbaniDoneDate` datetime NOT NULL,
  `CreatedBy` int NOT NULL,
  `CreatedDate` datetime NOT NULL,
  `UpdatedBy` int NOT NULL,
  `UpdatedDate` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `smallanimal`
--

--
-- Indexes for dumped tables
--

--
-- Indexes for table `smallanimal`
--
ALTER TABLE `smallanimal`
  ADD PRIMARY KEY (`SmallAnimalId`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `smallanimal`
--
ALTER TABLE `smallanimal`
  MODIFY `SmallAnimalId` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=97;
COMMIT;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
