Permalink
Browse files

Merge pull request #28 from shibayu36/api-users

reservationsのuser_idにインデックス
  • Loading branch information...
shibayu36 committed Sep 16, 2018
2 parents 72d16ca + 974b6b4 commit 8ba10dff4bf9f4b44a2abb4d40ba1e5f4a0be6b5
Showing with 11 additions and 1 deletion.
  1. +9 −0 README.md
  2. +2 −1 db/schema.sql
@@ -21,3 +21,12 @@ sokkyou/sokkyou.shあたりのサーバリストを設定すると、デプロ
- アプリケーション: `./sokkyou/deploy.sh`
- DB: `./sokkyou/deploy_mysql.sh`
- nginx: `./sokkyou/deploy_nginx.sh`
## プロファイルべんり君
```perl
my $now = Time::Moment->now;
warn "profile: start @{[ $now->second ]} @{[ $now->millisecond ]}";
$now = Time::Moment->now;
warn "profile: hoge @{[ $now->second ]} @{[ $now->millisecond ]}";
```
@@ -30,7 +30,8 @@ CREATE TABLE IF NOT EXISTS reservations (
reserved_at DATETIME(6) NOT NULL,
canceled_at DATETIME(6) DEFAULT NULL,
KEY event_id_and_sheet_id_idx (event_id, sheet_id),
KEY event_id_and_canceled_at (event_id, canceled_at)
KEY event_id_and_canceled_at (event_id, canceled_at),
KEY user_id (user_id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE IF NOT EXISTS administrators (

0 comments on commit 8ba10df

Please sign in to comment.