initial commit 2
This commit is contained in:
11
sql/0003-create-users-table.sql
Normal file
11
sql/0003-create-users-table.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
CREATE TABLE IF NOT EXISTS `db_boilerplate`.`tab_users` (
|
||||
`user_id` INT NOT NULL AUTO_INCREMENT,
|
||||
`user_name` VARCHAR(50) NOT NULL,
|
||||
`created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`updated_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
`active` TINYINT(1) NOT NULL DEFAULT 1,
|
||||
|
||||
PRIMARY KEY (`user_id`)
|
||||
)
|
||||
|
||||
ENGINE = InnoDB;
|
||||
Reference in New Issue
Block a user