質問編集履歴
1
usersテーブルとpostsテーブルを追加しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -34,6 +34,62 @@
|
|
34
34
|
|
35
35
|
|
36
36
|
|
37
|
+
###usersテーブル
|
38
|
+
|
39
|
+
```mysql
|
40
|
+
|
41
|
+
+------------+------------------+------+-----+----------+----------------+
|
42
|
+
|
43
|
+
| Field | Type | Null | Key | Default | Extra |
|
44
|
+
|
45
|
+
+------------+------------------+------+-----+----------+----------------+
|
46
|
+
|
47
|
+
| id | int(10) unsigned | NO | PRI | NULL | auto_increment |
|
48
|
+
|
49
|
+
| username | varchar(255) | NO | | NULL | |
|
50
|
+
|
51
|
+
| mail | varchar(255) | NO | | NULL | |
|
52
|
+
|
53
|
+
| password | varchar(255) | NO | | NULL | |
|
54
|
+
|
55
|
+
| bio | varchar(400) | YES | | NULL | |
|
56
|
+
|
57
|
+
| images | varchar(255) | YES | | dawn.png | |
|
58
|
+
|
59
|
+
| created_at | timestamp | YES | | NULL | |
|
60
|
+
|
61
|
+
| updated_at | timestamp | YES | | NULL | |
|
62
|
+
|
63
|
+
+------------+------------------+------+-----+----------+----------------+
|
64
|
+
|
65
|
+
```
|
66
|
+
|
67
|
+
###postsテーブル
|
68
|
+
|
69
|
+
```mysql
|
70
|
+
|
71
|
+
+------------+------------------+------+-----+---------+----------------+
|
72
|
+
|
73
|
+
| Field | Type | Null | Key | Default | Extra |
|
74
|
+
|
75
|
+
+------------+------------------+------+-----+---------+----------------+
|
76
|
+
|
77
|
+
| id | int(10) unsigned | NO | PRI | NULL | auto_increment |
|
78
|
+
|
79
|
+
| user_id | int(11) | NO | | NULL | |
|
80
|
+
|
81
|
+
| posts | varchar(500) | NO | | NULL | |
|
82
|
+
|
83
|
+
| created_at | timestamp | YES | | NULL | |
|
84
|
+
|
85
|
+
| updated_at | timestamp | YES | | NULL | |
|
86
|
+
|
87
|
+
+------------+------------------+------+-----+---------+----------------+
|
88
|
+
|
89
|
+
```
|
90
|
+
|
91
|
+
|
92
|
+
|
37
93
|
### 該当のソースコード
|
38
94
|
|
39
95
|
|