回答編集履歴
1
修正
answer
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
外部キー制約はプライマリーキーに合わせる必要があります。
|
2
|
-
また
|
2
|
+
また作成や削除では依存関係の考慮が必要です。※作成は順序
|
3
3
|
以下の様にすると作成できます。
|
4
4
|
```SQL
|
5
|
-
drop table if exists usr;
|
5
|
+
drop table if exists usr cascade;
|
6
|
+
drop table if exists meeting_rooom cascade;
|
6
|
-
drop table if exists reservable_room;
|
7
|
+
drop table if exists reservable_room cascade;
|
7
8
|
drop table if exists reservation;
|
8
|
-
drop table if exists meeting_rooom;
|
9
9
|
create table usr(
|
10
10
|
user_id varchar(255) primary key,
|
11
11
|
first_name varchar(255) not null,
|