PRAGMA foreign_keys = ON;

PRAGMA writable_schema = 1;
DELETE FROM sqlite_master WHERE type IN ("table", "index", "trigger");
PRAGMA writable_schema = 0;
VACUUM;

CREATE TABLE "course_arrange" (
"Course_ID" INT,
"Teacher_ID" INT,
"Grade" INT,
PRIMARY KEY ("Course_ID", "Teacher_ID", "Grade"),
FOREIGN KEY ("Teacher_ID") REFERENCES "teacher"("Teacher_ID")
);

CREATE TABLE "teacher" (
"Teacher_ID" INT UNIQUE,
"Name" TEXT,
PRIMARY KEY ("Teacher_ID")
);





INSERT INTO "teacher" VALUES ("1", "Alice Johnson");
INSERT INTO "teacher" VALUES ("2", "Bob Smith");
INSERT INTO "teacher" VALUES ("3", "Carol Lee");
INSERT INTO "teacher" VALUES ("4", "David Kim");
INSERT INTO "teacher" VALUES ("5", "Eva Brown");
INSERT INTO "teacher" VALUES ("6", "Frank Moore");
INSERT INTO "teacher" VALUES ("7", "Grace Wilson");
INSERT INTO "teacher" VALUES ("8", "Henry Clark");
INSERT INTO "teacher" VALUES ("9", "Ivy Martinez");
INSERT INTO "teacher" VALUES ("10", "Jack Davis");
INSERT INTO "course_arrange" VALUES ("101", "1", "2023");
INSERT INTO "course_arrange" VALUES ("102", "2", "2023");
INSERT INTO "course_arrange" VALUES ("103", "3", "2023");
INSERT INTO "course_arrange" VALUES ("104", "4", "2023");
INSERT INTO "course_arrange" VALUES ("105", "5", "2023");
INSERT INTO "course_arrange" VALUES ("106", "6", "2023");
INSERT INTO "course_arrange" VALUES ("107", "7", "2023");
INSERT INTO "course_arrange" VALUES ("108", "8", "2023");
INSERT INTO "course_arrange" VALUES ("109", "9", "2023");
INSERT INTO "course_arrange" VALUES ("110", "10", "2023");
INSERT INTO "course_arrange" VALUES ("111", "1", "2024");
INSERT INTO "course_arrange" VALUES ("112", "2", "2024");
INSERT INTO "course_arrange" VALUES ("113", "3", "2024");
INSERT INTO "course_arrange" VALUES ("114", "4", "2024");
INSERT INTO "course_arrange" VALUES ("115", "5", "2024");