著者(書籍とは別に作成可能)
名前 | タイプ | デフォルト値 | Nullable | 子テーブル | 親テーブル | コメント |
---|---|---|---|---|---|---|
id | text | false | public.author_books | |||
name | text | false | 著者名 |
名前 | 定義 |
---|---|
書籍の追加 | 書籍を追加する際に関連するテーブルのまとまり |
名前 | タイプ | 定義 |
---|---|---|
authors_pkey | PRIMARY KEY | PRIMARY KEY (id) |
名前 | 定義 |
---|---|
authors_pkey | CREATE UNIQUE INDEX authors_pkey ON public.authors USING btree (id) |
erDiagram
"public.author_books" }o--|| "public.authors" : "FOREIGN KEY (author_id) REFERENCES authors(id) ON UPDATE CASCADE ON DELETE RESTRICT"
"public.authors" {
text id
text name
}
"public.author_books" {
text author_id FK
text book_id FK
}
Generated by tbls