25 lines
1.5 KiB
Plaintext
25 lines
1.5 KiB
Plaintext
|
|
Table "public.songs"
|
||
|
|
Column | Type | Collation | Nullable | Default
|
||
|
|
------------+------------------------+-----------+----------+-----------------------
|
||
|
|
id | character varying(255) | | not null |
|
||
|
|
title | character varying(500) | | not null |
|
||
|
|
artist | character varying(500) | | | ''::character varying
|
||
|
|
band | character varying(500) | | | ''::character varying
|
||
|
|
lyrics | text | | | ''::text
|
||
|
|
chords | text | | | ''::text
|
||
|
|
singer | character varying(500) | | | ''::character varying
|
||
|
|
memo | text | | | ''::text
|
||
|
|
created_at | bigint | | |
|
||
|
|
updated_at | bigint | | |
|
||
|
|
Indexes:
|
||
|
|
"songs_pkey" PRIMARY KEY, btree (id)
|
||
|
|
"idx_song_artist" btree (artist)
|
||
|
|
"idx_song_band" btree (band)
|
||
|
|
"idx_song_singer" btree (singer)
|
||
|
|
"idx_song_title" btree (title)
|
||
|
|
Referenced by:
|
||
|
|
TABLE "plan_songs" CONSTRAINT "plan_songs_song_id_fkey" FOREIGN KEY (song_id) REFERENCES songs(id) ON DELETE CASCADE
|
||
|
|
TABLE "profile_song_keys" CONSTRAINT "profile_song_keys_song_id_fkey" FOREIGN KEY (song_id) REFERENCES songs(id) ON DELETE CASCADE
|
||
|
|
TABLE "profile_songs" CONSTRAINT "profile_songs_song_id_fkey" FOREIGN KEY (song_id) REFERENCES songs(id) ON DELETE CASCADE
|
||
|
|
|