rezamalik15

Untitled

Dec 28th, 2023
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. CREATE TABLE `main_student` (
  2. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  3. `nisn` varchar(10) NOT NULL,
  4. `nis` varchar(10) NOT NULL,
  5. `firstname` varchar(100) NOT NULL,
  6. `lastname` varchar(100) NOT NULL,
  7. `is_active` tinyint(1) NOT NULL,
  8. `generation_id` bigint(20) NOT NULL,
  9. PRIMARY KEY (`id`),
  10. KEY `main_student_generation_id_b38aba7d_fk_main_generation_id` (`generation_id`),
  11. CONSTRAINT `main_student_generation_id_b38aba7d_fk_main_generation_id` FOREIGN KEY (`generation_id`) REFERENCES `main_generation` (`id`)
  12. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci
Advertisement
Add Comment
Please, Sign In to add comment