diff options
author | LarsVomMars | 2021-01-28 12:53:19 +0100 |
---|---|---|
committer | LarsVomMars | 2021-01-28 15:25:53 +0100 |
commit | 2eff2deb98280aa61241e06163c87155911bbfae (patch) | |
tree | 92d2219abcb303fcade5649a6755e97ce5b51f26 /tables.sql | |
parent | 5feb9b1af9f6ff5b2e08bf9c7cc85ffc0f313945 (diff) |
TEACHER PREDICTION HAHAHA
Diffstat (limited to 'tables.sql')
-rw-r--r-- | tables.sql | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -176,3 +176,14 @@ CREATE TABLE IF NOT EXISTS profile_char CONSTRAINT `fk_char_user2` FOREIGN KEY (user_id) REFERENCES users (id) ) ENGINE = InnoDB DEFAULT CHARSET = utf8; + +CREATE TABLE IF NOT EXISTS teacher_prediction +( + id INTEGER PRIMARY KEY AUTO_INCREMENT, + user_id INTEGER NOT NULL UNIQUE, + teacher_id INTEGER NOT NULL, + + CONSTRAINT `fk_teacher_user` FOREIGN KEY (user_id) REFERENCES users (id), + CONSTRAINT `fk_teacher_teacher` FOREIGN KEY (teacher_id) REFERENCES users (id) +) ENGINE = InnoDB + DEFAULT CHARSET = utf8;
\ No newline at end of file |