diff options
author | arf20 <aruizfernandez05@gmail.com> | 2024-03-20 17:31:54 +0100 |
---|---|---|
committer | arf20 <aruizfernandez05@gmail.com> | 2024-03-20 17:31:54 +0100 |
commit | 795940c0f278b7e2ff4ff7b0e328dca480662a1c (patch) | |
tree | 25b458537c49f90929ce944949c9cc73a288ca5e /dbinit.sql | |
parent | 041786bff99e94ea895bcbcd4cb257e53bd152b1 (diff) | |
download | arfnet2-cstims-795940c0f278b7e2ff4ff7b0e328dca480662a1c.tar.gz arfnet2-cstims-795940c0f278b7e2ff4ff7b0e328dca480662a1c.zip |
Add ticket and ticket management
Diffstat (limited to 'dbinit.sql')
-rw-r--r-- | dbinit.sql | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -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`) +); |