Changed database structure

This commit is contained in:
Gregorio Chiko Putra 2017-09-08 14:03:30 +07:00
parent d4dce8e460
commit 682fca8a05
2 changed files with 4 additions and 4 deletions

View File

@ -14,8 +14,8 @@ class Access extends \Core\Model
'salt char(23) NOT NULL',
'full_name varchar(50) NOT NULL',
'registered_at date NOT NULL DEFAULT CURRENT_TIMESTAMP',
'privilage int(3) NOT NULL DEFAULT 0',
'status tinyint NOT NULL DEFAULT 0',
'privilage tinyint(1) NOT NULL DEFAULT 0',
'status tinyint(1) NOT NULL DEFAULT 0',
'max_user int(1) NOT NULL DEFAULT 5',
'PRIMARY KEY (id)'
]

View File

@ -18,7 +18,7 @@ class Post extends \Core\Model
'edited_at date',
'editor int(3)',
'content varchar(255) NOT NULL',
'status tinyint NOT NULL DEFAULT 1',
'status tinyint(1) NOT NULL DEFAULT 1',
'PRIMARY KEY (id)'
]
);
@ -29,7 +29,7 @@ class Post extends \Core\Model
[
'id int(3) NOT NULL AUTO_INCREMENT',
'category varchar(20) NOT NULL',
'status tinyint NOT NULL DEFAULT 1',
'status tinyint(1) NOT NULL DEFAULT 1',
'PRIMARY KEY (id)'
]
);