aboutsummaryrefslogtreecommitdiff
path: root/dbinit.sql
diff options
context:
space:
mode:
Diffstat (limited to 'dbinit.sql')
-rw-r--r--dbinit.sql13
1 files changed, 12 insertions, 1 deletions
diff --git a/dbinit.sql b/dbinit.sql
index b505dbc..017f60a 100644
--- a/dbinit.sql
+++ b/dbinit.sql
@@ -28,7 +28,18 @@ CREATE TABLE `arfnet2`.`orders` (
`client` INT NOT NULL ,
`billing` VARCHAR(255) NOT NULL ,
`date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ,
- `status` ENUM('setting up','active','inactive') NOT NULL ,
+ `status` ENUM('setting up','active','inactive') NOT NULL DEFAULT 'setting up' ,
`comments` TEXT NOT NULL ,
PRIMARY KEY (`id`)
);
+
+CREATE TABLE `arfnet2`.`tickets` (
+ `id` INT NOT NULL AUTO_INCREMENT ,
+ `order` INT NOT NULL ,
+ `subject` VARCHAR(255) NOT NULL ,
+ `body` TEXT NOT NULL ,
+ `date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ,
+ `status` ENUM('open','closed') NOT NULL DEFAULT 'open' ,
+ `asignee` INT NOT NULL ,
+ PRIMARY KEY (`id`)
+);