aboutsummaryrefslogtreecommitdiff
path: root/dbinit.sql
diff options
context:
space:
mode:
authorarf20 <aruizfernandez05@gmail.com>2024-03-15 22:28:01 +0100
committerarf20 <aruizfernandez05@gmail.com>2024-03-15 22:28:01 +0100
commitecdcfff2460db708ae4b471140335ce47aaaf54b (patch)
treeac39f984b8a291107bc024c06b766fb5df524825 /dbinit.sql
parent2705e4a140918cfc5afad306afccdd6cc49475da (diff)
downloadarfnet2-cstims-ecdcfff2460db708ae4b471140335ce47aaaf54b.tar.gz
arfnet2-cstims-ecdcfff2460db708ae4b471140335ce47aaaf54b.zip
Landing page and fixed register problems
Diffstat (limited to 'dbinit.sql')
-rw-r--r--dbinit.sql10
1 files changed, 10 insertions, 0 deletions
diff --git a/dbinit.sql b/dbinit.sql
index 271eb2b..95cdf2f 100644
--- a/dbinit.sql
+++ b/dbinit.sql
@@ -1,2 +1,12 @@
CREATE DATABASE arfnet2;
+CREATE TABLE `arfnet2`.`users` (
+ `id` INT NOT NULL AUTO_INCREMENT ,
+ `username` VARCHAR(31) NOT NULL ,
+ `password` VARCHAR(255) NOT NULL ,
+ `email` VARCHAR(127) NOT NULL ,
+ `verifycode` VARCHAR(31) NOT NULL ,
+ `type` ENUM('client','helpdesk','accountant','admin') NOT NULL ,
+ `regdate` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ,
+ PRIMARY KEY (`id`)
+);