Hi,
I use Base as a frontend to a mysql database to fill my database with TV series episodes.
Here is my database schema :
And the SQL code :
CREATE TABLE SERIES(
seriesId INT AUTO_INCREMENT,
seriesTitle VARCHAR(50) NOT NULL,
PRIMARY KEY(seriesId)
);
CREATE TABLE SEASON(
seriesId INT,
seasonNumber TINYINT,
PRIMARY KEY(seriesId, seasonNumber),
FOREIGN KEY(seriesId) REFERENCES SERIES(seriesId)
);
CREATE TABLE EPISODE(
seriesId INT,
seasonNumber TINYINT,
episodeNumber TINYINT,
episodeTitle VARCHAR(50) NOT NULL,
episodeFrenchTitle VARCHAR(50),
PRIMARY KEY(seriesId, seasonNumber, episodeNumber),
FOREIGN KEY(seriesId, seasonNumber) REFERENCES SEASON(seriesId, seasonNumber)
);
I would like to take the data input easer, with automatically repeating the season number and making the column episode number a counter.
Therefore, I set the season number field property ‘Repeat’ to true and the episode number property counter to true.
That doesn’t work.
How could I do ?