-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Nov 27, 2024 at 11:03 PM
-- Server version: 10.4.22-MariaDB
-- PHP Version: 7.4.27

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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: `dash7`
--

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

--
-- Table structure for table `sudaniservicereports`
--

CREATE TABLE `sudaniservicereports` (
  `Id` int(11) NOT NULL,
  `ServiceId` char(36) CHARACTER SET ascii NOT NULL,
  `Day` int(11) NOT NULL,
  `Month` int(11) NOT NULL,
  `Year` int(11) NOT NULL,
  `TotalNew` int(11) NOT NULL,
  `TotalUnsub` int(11) NOT NULL,
  `Total` int(11) NOT NULL,
  `TotalAmount` decimal(65,30) NOT NULL,
  `UpdateDate` datetime(6) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;


--
-- Indexes for dumped tables
--

--
-- Indexes for table `sudaniservicereports`
--
ALTER TABLE `sudaniservicereports`
  ADD PRIMARY KEY (`Id`),
  ADD KEY `IX_SudaniServiceReports_ServiceId` (`ServiceId`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `sudaniservicereports`
--
ALTER TABLE `sudaniservicereports`
  MODIFY `Id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1490;

--
-- Constraints for dumped tables
--

--
-- Constraints for table `sudaniservicereports`
--
ALTER TABLE `sudaniservicereports`
  ADD CONSTRAINT `FK_SudaniServiceReports_Services_ServiceId` FOREIGN KEY (`ServiceId`) REFERENCES `services` (`Id`) ON DELETE CASCADE;

INSERT INTO `__efmigrationshistory`(`MigrationId`, `ProductVersion`) VALUES ('20241127160933_addreportEntity','6.0.7');
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 */;
