Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added tables for teacher awards

  • Loading branch information...
commit 82635aca5eefd347c635ea471787f308fb3b9a42 1 parent 3abe500
@DerWaldschrat authored
View
5 sql/teacher.table.sql
@@ -0,0 +1,5 @@
+-- Ok, die ist echt einfach :D
+CREATE TABLE abi_teacher (
+ teacherid INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
+ name VARCHAR(255) NOT NULL
+)
View
9 sql/teacher_award.table.sql
@@ -0,0 +1,9 @@
+CREATE TABLE abi_teacher_award (
+ awardid INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
+ categoryid INT NOT NULL,
+ userid INT NOT NULL,
+ firstid INT DEFAULT -1,
+ secondid INT DEFAULT -1,
+ thirdid INT DEFAULT -1,
+ UNIQUE(`categoryid`, `userid`)
+)
View
4 sql/teacher_category.table.sql
@@ -0,0 +1,4 @@
+CREATE TABLE abi_teacher_category (
+ categoryid INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
+ title VARCHAR (60) NOT NULL
+)
Please sign in to comment.
Something went wrong with that request. Please try again.