Skip to main content

PlaylistTrack

Description

Table Definition
CREATE TABLE [PlaylistTrack]
(
[PlaylistId] INTEGER NOT NULL,
[TrackId] INTEGER NOT NULL,
CONSTRAINT [PK_PlaylistTrack] PRIMARY KEY ([PlaylistId], [TrackId]),
FOREIGN KEY ([PlaylistId]) REFERENCES [Playlist] ([PlaylistId])
ON DELETE NO ACTION ON UPDATE NO ACTION,
FOREIGN KEY ([TrackId]) REFERENCES [Track] ([TrackId])
ON DELETE NO ACTION ON UPDATE NO ACTION
)

Columns

NameTypeDefaultNullableChildrenParentsComment
PlaylistIdINTEGERfalsePlaylist
TrackIdINTEGERfalseTrack

Constraints

NameTypeDefinition
PlaylistIdPRIMARY KEYPRIMARY KEY (PlaylistId)
TrackIdPRIMARY KEYPRIMARY KEY (TrackId)
- (Foreign key ID: 0)FOREIGN KEYFOREIGN KEY (TrackId) REFERENCES Track (TrackId) ON UPDATE NO ACTION ON DELETE NO ACTION MATCH NONE
- (Foreign key ID: 1)FOREIGN KEYFOREIGN KEY (PlaylistId) REFERENCES Playlist (PlaylistId) ON UPDATE NO ACTION ON DELETE NO ACTION MATCH NONE
sqlite_autoindex_PlaylistTrack_1PRIMARY KEYPRIMARY KEY (PlaylistId, TrackId)

Indexes

NameDefinition
IFK_PlaylistTrackTrackIdCREATE INDEX [IFK_PlaylistTrackTrackId] ON [PlaylistTrack] ([TrackId])
sqlite_autoindex_PlaylistTrack_1PRIMARY KEY (PlaylistId, TrackId)

Relations

er