-- SQL script to create tbl_xray_receipts table
-- Run this script in your MySQL database

CREATE TABLE IF NOT EXISTS `tbl_xray_receipts` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ReceiptNo` int(11) DEFAULT NULL,
  `Date` date DEFAULT NULL,
  `MrdNo` varchar(50) DEFAULT NULL,
  `IpdNo` varchar(50) DEFAULT NULL,
  `UhidNo` varchar(100) DEFAULT NULL,
  `PatientName` varchar(255) DEFAULT NULL,
  `Procedure` varchar(255) DEFAULT 'X-RAY',
  `TotalNo` varchar(50) DEFAULT NULL,
  `ConsultantId` int(11) DEFAULT NULL,
  `Consultant` varchar(255) DEFAULT NULL,
  `Amount` decimal(10,2) DEFAULT 0.00,
  `PayMode` varchar(50) DEFAULT NULL,
  `Status` tinyint(1) DEFAULT 1,
  `CreatedBy` int(11) DEFAULT NULL,
  `CreatedDate` date DEFAULT NULL,
  `ModifiedBy` int(11) DEFAULT NULL,
  `ModifiedDate` date DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `idx_ReceiptNo` (`ReceiptNo`),
  KEY `idx_Date` (`Date`),
  KEY `idx_Status` (`Status`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
