-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
21 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
use resource_profile; | ||
CREATE TABLE resource_profile.profile_black_list | ||
USE `resource_profile`; | ||
|
||
CREATE TABLE `profile_black_list` | ||
( | ||
id INT PRIMARY KEY NOT NULL AUTO_INCREMENT, | ||
profileTitle VARCHAR(100) NOT NULL, | ||
userId VARCHAR(20) NOT NULL, | ||
profileID INT(11) | ||
`id` BIGINT PRIMARY KEY NOT NULL AUTO_INCREMENT, | ||
`profileTitle` VARCHAR(100) NOT NULL, | ||
`userId` VARCHAR(20) NOT NULL, | ||
`profileID` INT(11) | ||
); | ||
CREATE UNIQUE INDEX profile_black_list_id_uindex ON resource_profile.profile_black_list (id); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
CREATE TABLE users | ||
USE `resource_profile`; | ||
|
||
DROP TABLE IF EXISTS `users`; | ||
|
||
CREATE TABLE `users` | ||
( | ||
username VARCHAR(45) PRIMARY KEY NOT NULL, | ||
password VARCHAR(45) NOT NULL, | ||
role VARCHAR(12) | ||
); | ||
`username` VARCHAR(45) PRIMARY KEY NOT NULL, | ||
`password` VARCHAR(45) NOT NULL, | ||
`role` VARCHAR(12) | ||
); | ||
|
||
INSERT INTO `users` (`username`, `password`, `role`) VALUES ('root', 'password', 'ADMIN'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters