--
-- Host: localhost    Database: xoolin_hostdata
-- ------------------------------------------------------


--
-- Table structure for table `certificates`
--

CREATE TABLE `certificates` (
  `id` int NOT NULL AUTO_INCREMENT,
  `certificate_no` varchar(50) NOT NULL,
  `student_name` varchar(100) NOT NULL,
  `course_name` varchar(100) NOT NULL,
  `date_of_birth` date NOT NULL,
  `duration` varchar(50) NOT NULL,
  `grade` varchar(20) NOT NULL,
  `award_date` date NOT NULL,
  `marks` varchar(50) NOT NULL,
  `photo` varchar(255) NOT NULL,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `certificate_no` (`certificate_no`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `certificates`
--

INSERT INTO `certificates` VALUES (2,'JUB2026','LEEDHANU','MDMA','1991-03-07','6 Months','A+','2025-06-25','80%','uploads/photos/1750351886_Dhanush_500x500.jpg','2025-06-19 16:51:26');

--
-- Table structure for table `settings`
--

CREATE TABLE `settings` (
  `id` int NOT NULL,
  `academy_name` varchar(255) DEFAULT NULL,
  `website` varchar(255) DEFAULT NULL,
  `email` varchar(100) DEFAULT NULL,
  `contact_number` varchar(50) DEFAULT NULL,
  `address` text,
  `logo` varchar(255) DEFAULT 'uploads/logo.png',
  `background` varchar(255) DEFAULT 'uploads/bg.jpg',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `settings`
--

INSERT INTO `settings` VALUES (1,'My Academy','https://www.myacademy.com','info@myacademy.com','+91 9876543210','123, Main Street, Kochi, Kerala, India','uploads/logo.png','uploads/bg.jpg');


