caproject
CREATE TABLE `users` (
`user_id` int NOT NULL AUTO_INCREMENT,
`username` varchar(50) NOT NULL,
`password` varchar(255) NOT NULL,
`email` varchar(100) NOT NULL,
`mobile_number` varchar(15) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`utr` varchar(45) DEFAULT NULL,
`refer_code` varchar(45) NOT NULL,
`is_subscribe` tinyint(1) NOT NULL DEFAULT '0',
`class_name` varchar(45) NOT NULL,
`refer_by` int DEFAULT NULL,
`referno` int DEFAULT '0',
UNIQUE
KEY `username`
(`username`
), UNIQUE
KEY `email`
(`email`
)) ENGINE=InnoDB AUTO_INCREMENT=45 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
CREATE TABLE `user_tokens` (
`user_id` int NOT NULL,
`token` varchar(255) NOT NULL,
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
CREATE TABLE `subject` (
`id` int NOT NULL AUTO_INCREMENT,
`subject_name` varchar(255) NOT NULL,
) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
CREATE TABLE `chapter` (
`id` int NOT NULL AUTO_INCREMENT,
`chapter_name` varchar(255) NOT NULL,
`subject_id` int DEFAULT NULL,
`questions` varchar(255) DEFAULT NULL,
KEY `subject_id`
(`subject_id`
), CONSTRAINT `fk_chapter_subject` FOREIGN
KEY (`subject_id`
) REFERENCES `subject`
(`id`
)) ENGINE=InnoDB AUTO_INCREMENT=97 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
CREATE TABLE `formulaparts` (
`id` int NOT NULL AUTO_INCREMENT,
`question` longtext,
`correct_answer` varchar(255) DEFAULT NULL,
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
CREATE TABLE `referamt` (
`id` int NOT NULL AUTO_INCREMENT,
`userupi` varchar(50) NOT NULL,
`amtfortransfer` int NOT NULL,
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
CREATE TABLE `user_answer` (
`id` int NOT NULL AUTO_INCREMENT,
`user_id` int DEFAULT NULL,
`question` longtext,
`correct_answer` varchar(255) DEFAULT NULL,
`user_answer` varchar(255) DEFAULT NULL,
`attempt_no` int DEFAULT NULL,
`similarity` float DEFAULT NULL,
`time_current` timestamp NULL DEFAULT NULL,
`test_no` int DEFAULT NULL,
`subjectname` varchar(45) DEFAULT NULL,
`chaptername` varchar(255) DEFAULT NULL,
`
date` datetime
DEFAULT NULL, KEY `user_id`
(`user_id`
), CONSTRAINT `user_answer_ibfk_1` FOREIGN
KEY (`user_id`
) REFERENCES `users`
(`user_id`
)) ENGINE=InnoDB AUTO_INCREMENT=77 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
CREATE TABLE `user_answer_interactive` (
`id` int NOT NULL AUTO_INCREMENT,
`user_id` int DEFAULT NULL,
`question` varchar(255) DEFAULT NULL,
`correct_answer` varchar(255) DEFAULT NULL,
`user_answer` varchar(255) DEFAULT NULL,
`similarity` float DEFAULT NULL,
`time_current` timestamp NULL DEFAULT NULL,
KEY `user_id`
(`user_id`
) ) ENGINE=InnoDB AUTO_INCREMENT=508 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
Y2Fwcm9qZWN0CgpDUkVBVEUgVEFCTEUgYHVzZXJzYCAoCiAgYHVzZXJfaWRgIGludCBOT1QgTlVMTCBBVVRPX0lOQ1JFTUVOVCwKICBgdXNlcm5hbWVgIHZhcmNoYXIoNTApIE5PVCBOVUxMLAogIGBwYXNzd29yZGAgdmFyY2hhcigyNTUpIE5PVCBOVUxMLAogIGBlbWFpbGAgdmFyY2hhcigxMDApIE5PVCBOVUxMLAogIGBtb2JpbGVfbnVtYmVyYCB2YXJjaGFyKDE1KSBERUZBVUxUIE5V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BVEU9dXRmOG1iNF8wOTAwX2FpX2NpOwoKCkNSRUFURSBUQUJMRSBgdXNlcl9hbnN3ZXJfaW50ZXJhY3RpdmVgICgKICBgaWRgIGludCBOT1QgTlVMTCBBVVRPX0lOQ1JFTUVOVCwKICBgdXNlcl9pZGAgaW50IERFRkFVTFQgTlVMTCwKICBgcXVlc3Rpb25gIHZhcmNoYXIoMjU1KSBERUZBVUxUIE5VTEwsCiAgYGNvcnJlY3RfYW5zd2VyYCB2YXJjaGFyKDI1NSkgREVGQVVMVCBOVUxMLAogIGB1c2VyX2Fuc3dlcmAgdmFyY2hhcigyNTUpIERFRkFVTFQgTlVMTCwKICBgc2ltaWxhcml0eWAgZmxvYXQgREVGQVVMVCBOVUxMLAogIGB0aW1lX2N1cnJlbnRgIHRpbWVzdGFtcCBOVUxMIERFRkFVTFQgTlVMTCwKICBQUklNQVJZIEtFWSAoYGlkYCksCiAgS0VZIGB1c2VyX2lkYCAoYHVzZXJfaWRgKQopIEVOR0lORT1Jbm5vREIgQVVUT19JTkNSRU1FTlQ9NTA4IERFRkFVTFQgQ0hBUlNFVD11dGY4bWI0IENPTExBVEU9dXRmOG1iNF8wOTAwX2FpX2NpOwo=
caproject
CREATE TABLE `users` (
`user_id` int NOT NULL AUTO_INCREMENT,
`username` varchar(50) NOT NULL,
`password` varchar(255) NOT NULL,
`email` varchar(100) NOT NULL,
`mobile_number` varchar(15) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`utr` varchar(45) DEFAULT NULL,
`refer_code` varchar(45) NOT NULL,
`is_subscribe` tinyint(1) NOT NULL DEFAULT '0',
`class_name` varchar(45) NOT NULL,
`refer_by` int DEFAULT NULL,
`referno` int DEFAULT '0',
PRIMARY KEY (`user_id`),
UNIQUE KEY `username` (`username`),
UNIQUE KEY `email` (`email`)
) ENGINE=InnoDB AUTO_INCREMENT=45 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
CREATE TABLE `user_tokens` (
`user_id` int NOT NULL,
`token` varchar(255) NOT NULL,
PRIMARY KEY (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
CREATE TABLE `subject` (
`id` int NOT NULL AUTO_INCREMENT,
`subject_name` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
CREATE TABLE `chapter` (
`id` int NOT NULL AUTO_INCREMENT,
`chapter_name` varchar(255) NOT NULL,
`subject_id` int DEFAULT NULL,
`questions` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `subject_id` (`subject_id`),
CONSTRAINT `fk_chapter_subject` FOREIGN KEY (`subject_id`) REFERENCES `subject` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=97 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
CREATE TABLE `formulaparts` (
`id` int NOT NULL AUTO_INCREMENT,
`question` longtext,
`correct_answer` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
CREATE TABLE `referamt` (
`id` int NOT NULL AUTO_INCREMENT,
`userupi` varchar(50) NOT NULL,
`amtfortransfer` int NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
CREATE TABLE `user_answer` (
`id` int NOT NULL AUTO_INCREMENT,
`user_id` int DEFAULT NULL,
`question` longtext,
`correct_answer` varchar(255) DEFAULT NULL,
`user_answer` varchar(255) DEFAULT NULL,
`attempt_no` int DEFAULT NULL,
`similarity` float DEFAULT NULL,
`time_current` timestamp NULL DEFAULT NULL,
`test_no` int DEFAULT NULL,
`subjectname` varchar(45) DEFAULT NULL,
`chaptername` varchar(255) DEFAULT NULL,
`date` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `user_id` (`user_id`),
CONSTRAINT `user_answer_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=77 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
CREATE TABLE `user_answer_interactive` (
`id` int NOT NULL AUTO_INCREMENT,
`user_id` int DEFAULT NULL,
`question` varchar(255) DEFAULT NULL,
`correct_answer` varchar(255) DEFAULT NULL,
`user_answer` varchar(255) DEFAULT NULL,
`similarity` float DEFAULT NULL,
`time_current` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=508 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;