Skip to content

Latest commit

 

History

History
51 lines (35 loc) · 1.15 KB

public.authors.md

File metadata and controls

51 lines (35 loc) · 1.15 KB

public.authors

概要

著者(書籍とは別に作成可能)

カラム一覧

名前 タイプ デフォルト値 Nullable 子テーブル 親テーブル コメント
id text false public.author_books
name text false 著者名

Viewpoints

名前 定義
書籍の追加 書籍を追加する際に関連するテーブルのまとまり

制約一覧

名前 タイプ 定義
authors_pkey PRIMARY KEY PRIMARY KEY (id)

INDEX一覧

名前 定義
authors_pkey CREATE UNIQUE INDEX authors_pkey ON public.authors USING btree (id)

ER図

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
}
Loading

Generated by tbls