-
Notifications
You must be signed in to change notification settings - Fork 0
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
takeshi.nakata
committed
Nov 19, 2019
1 parent
7078022
commit b44b390
Showing
4 changed files
with
95 additions
and
1 deletion.
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
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
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
uncountable: | ||
- fish | ||
irregular: | ||
- singular: person | ||
plulal: people | ||
plulal: | ||
- from: "(bu)s$" | ||
to: "${1}ses" | ||
singular: | ||
- from: "(bus)(es)?$" | ||
to: "${1}" |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
CREATE TABLE `users` ( | ||
`id` VARCHAR (36) NOT NULL DEFAULT '', | ||
`name` VARCHAR (255) NOT NULL DEFAULT '', | ||
`uid` VARCHAR (255) NOT NULL, | ||
`created_at` DATETIME NOT NULL, | ||
`updated_at` DATETIME NOT NULL, | ||
PRIMARY KEY (`id`), | ||
UNIQUE `idx_users_uid` (`uid`) | ||
) ENGINE = InnoDB, DEFAULT CHARACTER SET = utf8mb4; | ||
|
||
CREATE TABLE `friends` ( | ||
`id` BIGINT (20) NOT NULL AUTO_INCREMENT, | ||
`user_id` VARCHAR (36) NOT NULL, | ||
`to_id` VARCHAR (36) NOT NULL, | ||
`created_at` DATETIME NOT NULL, | ||
`updated_at` DATETIME NOT NULL, | ||
PRIMARY KEY (`id`), | ||
UNIQUE `idx_friends_user_id_to_id` (`user_id`, `to_id`), | ||
CONSTRAINT `fk_friends_users_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`), | ||
CONSTRAINT `fk_friends_users_2` FOREIGN KEY (`to_id`) REFERENCES `users` (`id`) | ||
) ENGINE = InnoDB, DEFAULT CHARACTER SET = utf8mb4; |