Billie/public/android23/autograding-revise.sql
2025-05-06 09:47:26 +07:00

141 lines
5.9 KiB
SQL

-- --------------------------------------------------------
-- Host: 127.0.0.1
-- Server version: 5.7.33 - MySQL Community Server (GPL)
-- Server OS: Win64
-- HeidiSQL Version: 11.2.0.6213
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!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 */;
-- Dumping database structure for iclop-sasa
CREATE DATABASE IF NOT EXISTS `iclop-sasa` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `iclop-sasa`;
-- Dumping structure for table iclop-sasa.android_enrollment
CREATE TABLE IF NOT EXISTS `android_enrollment` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`android_topic_id` bigint(20) NOT NULL,
`user_id` bigint(20) NOT NULL,
`status` enum('process','cancel','complete','review') COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Data exporting was unselected.
-- Dumping structure for table iclop-sasa.android_submits
CREATE TABLE IF NOT EXISTS `android_submits` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) NOT NULL,
`android_topic_id` bigint(20) NOT NULL,
`android_task_id` bigint(20) NOT NULL,
`duration` int(11) NOT NULL,
`upload` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`comment` text COLLATE utf8mb4_unicode_ci NOT NULL,
`validator` enum('process','validated') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Data exporting was unselected.
-- Dumping structure for table iclop-sasa.android_submits_submission
CREATE TABLE IF NOT EXISTS `android_submits_submission` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) NOT NULL,
`android_topic_id` bigint(20) NOT NULL,
`tipe` enum('github','zip') COLLATE utf8mb4_unicode_ci NOT NULL,
`userfile` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Data exporting was unselected.
-- Dumping structure for table iclop-sasa.android_submits_testcase
CREATE TABLE IF NOT EXISTS `android_submits_testcase` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) NOT NULL,
`android_submit_id` bigint(20) NOT NULL DEFAULT '0',
`android_testcase_id` bigint(20) NOT NULL DEFAULT '0',
`status` enum('passed','failed') COLLATE utf8mb4_unicode_ci NOT NULL,
`status_validate` enum('waiting','passed','failed') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`validated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Data exporting was unselected.
-- Dumping structure for table iclop-sasa.android_task
CREATE TABLE IF NOT EXISTS `android_task` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`android_topic_id` bigint(20) NOT NULL,
`task_no` tinyint(4) DEFAULT NULL,
`task_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`caption` varchar(150) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`material` text COLLATE utf8mb4_unicode_ci,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`tipe` enum('material','submission') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Data exporting was unselected.
-- Dumping structure for table iclop-sasa.android_task_waiting
CREATE TABLE IF NOT EXISTS `android_task_waiting` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) NOT NULL,
`android_topic_id` bigint(20) NOT NULL,
`android_task_id` bigint(20) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Data exporting was unselected.
-- Dumping structure for table iclop-sasa.android_testcase
CREATE TABLE IF NOT EXISTS `android_testcase` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`task_id` int(11) NOT NULL,
`case` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`score` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Data exporting was unselected.
-- Dumping structure for table iclop-sasa.android_topics
CREATE TABLE IF NOT EXISTS `android_topics` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(250) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description` text COLLATE utf8mb4_unicode_ci,
`folder_path` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`picturePath` text COLLATE utf8mb4_unicode_ci,
`status` enum('draft','publish') COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Data exporting was unselected.
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
/*!40014 SET FOREIGN_KEY_CHECKS=IFNULL(@OLD_FOREIGN_KEY_CHECKS, 1) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40111 SET SQL_NOTES=IFNULL(@OLD_SQL_NOTES, 1) */;