CREATE DATABASE FavoriteMovies;
USE FavoriteMovies;


CREATE OR REPLACE TABLE `Movies` (
	`Movie_Id` INTEGER NOT NULL AUTO_INCREMENT UNIQUE,
	`Title` VARCHAR(255),
	`Genre` VARCHAR(255),
	`Year` INTEGER,
	PRIMARY KEY(`Movie_Id`)
);

CREATE OR REPLACE TABLE `Production` (
	`Production_id` INTEGER NOT NULL AUTO_INCREMENT UNIQUE,
	`Budget Price` FLOAT,
	`Country` VARCHAR(255),
	`Comapany Name` VARCHAR(255),
	PRIMARY KEY(`Production_id`)
);

CREATE OR REPLACE TABLE `Actors` (
	`Actor_id` INTEGER NOT NULL AUTO_INCREMENT UNIQUE,
	`Name` VARCHAR(255),
	`Nationality` VARCHAR(255),
	`Birthdate` INTEGER,
	PRIMARY KEY(`Actor_id`)
);

INSERT INTO Movies VALUES (1,"Forest Gump","Comedy",1994)
INSERT INTO Production VALUES (1,55000000,"United State of America","Paramount Pictures")
INSERT INTO Actors VALUES (1,"Tom Hanks","American",07091956)