Total Complexity | 3 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | class m140501_075314_oauth_authorization_codes extends CreateTable |
||
6 | { |
||
7 | /** |
||
8 | * @inheritdoc |
||
9 | */ |
||
10 | public function getTableName(): string |
||
11 | { |
||
12 | return 'oauth_authorization_codes'; |
||
13 | } |
||
14 | |||
15 | /** |
||
16 | * @inheritdoc |
||
17 | */ |
||
18 | public function columns(): array |
||
19 | { |
||
20 | return [ |
||
21 | 'authorization_code' => $this->primaryKey(40), |
||
22 | 'client_id' => $this->string(32)->notNull(), |
||
23 | 'user_id' => $this->normalKey()->null()->defaultValue(null), |
||
24 | 'redirect_uri' => $this->string(1000)->notNull(), |
||
25 | 'expires' => $this->datetime()->notNull(), |
||
26 | 'scope' => $this->string(2000)->notNull()->defaultValue(null), |
||
27 | ]; |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * @inheritdoc |
||
32 | */ |
||
33 | public function foreignKeys(): array |
||
39 | ], |
||
40 | ]; |
||
41 | } |
||
43 |