-- MySQL dump 10.13  Distrib 8.0.44, for Linux (x86_64)
--
-- Host: localhost    Database: onlineapplication
-- ------------------------------------------------------
-- Server version	8.0.44-0ubuntu0.22.04.1

/*!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 */;
/*!50503 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `scholarships`
--

DROP TABLE IF EXISTS `scholarships`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `scholarships` (
  `id` int NOT NULL AUTO_INCREMENT,
  `name_th` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `name_en` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `shortname` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `description` text COLLATE utf8mb4_general_ci,
  `create_url` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `sponsor` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `cover_pic` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `academic_year_id` int DEFAULT NULL COMMENT 'ปีการศึกษา ดึงมาจาก academic year',
  `semester` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'เทอม',
  `start_date` date DEFAULT NULL,
  `end_date` date DEFAULT NULL,
  `open_time` time DEFAULT NULL COMMENT 'เวลาเปิดทุน',
  `close_time` time DEFAULT NULL COMMENT 'เวลาปิดทุน',
  `sold_out` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `textcontent` text COLLATE utf8mb4_general_ci,
  `field_status` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `scholarships`
--

LOCK TABLES `scholarships` WRITE;
/*!40000 ALTER TABLE `scholarships` DISABLE KEYS */;
INSERT INTO `scholarships` VALUES (2,'แมนเชสเตอร์ ยูไนเต็ด','Manchester United','United','The theater of dream',NULL,'Liverpool','uploads/uploads_20251120_163812_691ee1849bb5a.png',14,'1','2025-11-01','2026-12-30','10:21:00','22:21:00','1',NULL,NULL,'2025-11-20 16:38:12','2025-12-09 10:21:53'),(3,'ทุนสำหรับนักศึกษาต่างชาติที่มีผลการเรียนดีเยี่ยม – ปริญญาตรี','Excellent Foreign Students Scholarships for Undergraduate Students (EFS-U)','EFS_U','TESTETSETST',NULL,'SIIT','uploads/scholarships_20251120_161608_691edc5821c9d.jpg',12,'1','2025-11-01','2026-07-30','10:22:00','22:22:00','0',NULL,NULL,'2025-11-20 16:16:08','2025-12-09 10:22:21'),(4,'ทุนสำหรับนักศึกษาที่มีผลการเรียนดีและความประพฤติดี','Scholarships for Students with Good Academic Performance and Good Conduct (GAC)','GAC','TESTESTESTEST',NULL,'SIIT','uploads/scholarships_20251120_161539_691edc3b4dd99.jpg',13,'1','2025-11-02','2025-11-29',NULL,NULL,'1',NULL,NULL,'2025-11-20 16:15:39','2025-11-20 16:15:39'),(5,'กองทุนกู้ยืมเพื่อการศึกษาโดยมูลนิธิเทคโนโลยีสิรินธร','SIIT Loan for Education from Sirindhorn Technology Scholarship Fund','LEF','TESTTESTTTESTTEST',NULL,'SIIT','uploads/scholarships_20251120_161551_691edc471711b.jpg',13,'1','2025-11-01','2025-11-20','10:35:00','22:35:00','0',NULL,NULL,'2025-12-01 10:33:40','2025-12-02 11:28:46'),(9,'KhimKhim','KhimKhim','KhimKhim','KhimKhim','KhimKhim','KhimKhim',NULL,13,'2','2025-11-28','2025-12-05',NULL,NULL,'0',NULL,NULL,'2025-11-28 10:47:18','2025-11-28 10:47:18');
/*!40000 ALTER TABLE `scholarships` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!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 */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2025-12-18  3:29:27
