CREATE TABLE IF NOT EXISTS `TV_Series(SQLScript)` (
  `id` INT AUTO_INCREMENT PRIMARY KEY,
  `genre` VARCHAR(50) NOT NULL,
  `name` VARCHAR(100) NOT NULL,
  `Created_by` VARCHAR(255) NOT NULL,
  `cast` TEXT NOT NULL,
  `No_of_seasons` INT NOT NULL,
  `Country_of_origin` TINYTEXT  NOT NULL,
  `realese_date` DATE NOT NULL,
  `Budget` DECIMAL NOT NULL,
  `awards` TEXT NOT NULL,
  `nominations` TEXT NOT NULL
);

INSERT INTO `TV_Series(SQLScript)`(
     `genre`, `name`, `Created_by`, `cast`, `No_of_seasons`, `Country_of_origin`, `realese_date`, `Budget`, `awards`, `nominations`) VALUES ('fiction','Flash','Mark Waid','Grant Gustin, Candice Patton, Danielle Panabaker, Carlos Valdes, Jesse L. Martin','9','USA','June 14, 2023','2130000','FWA of the Day. FWA of the Month. FWA of the Year','six BMI Film, TV & Visual Media')



CREATE TABLE IF NOT EXISTS `TV_Series(SQLScript)` (
  `id` INT AUTO_INCREMENT PRIMARY KEY,
  `genre` VARCHAR(50) NOT NULL,
  `name` VARCHAR(100) NOT NULL,
  `Created_by` VARCHAR(255) NOT NULL,
  `cast` TEXT NOT NULL,
  `No_of_seasons` INT NOT NULL CHECK (`No_of_seasons` > 0),
  `Country_of_origin` TINYTEXT NOT NULL,
  `realese_date` DATE NOT NULL CHECK (STR_TO_DATE(realese_date, '%Y-%m-%d') IS NOT NULL),
  `Budget` DECIMAL NOT NULL,
  `awards` TEXT NOT NULL,
  `nominations` TEXT NOT NULL
);

INSERT INTO `TV_Series(SQLScript)`(
     `genre`, `name`, `Created_by`, `cast`, `No_of_seasons`, `Country_of_origin`, `realese_date`, `Budget`, `awards`, `nominations`) VALUES ('fiction','Flash','Mark Waid','Grant Gustin, Candice Patton, Danielle Panabaker, Carlos Valdes, Jesse L. Martin','9','USA','2023-06-14','2130000','FWA of the Day. FWA of the Month. FWA of the Year','six BMI Film, TV & Visual Media');