create table User (
id INT(20) primary key auto_increment,
email varchar(50) not null unique,
password varchar(20) not null,
nickname varchar(20) not null,
phone varchar(12),
rate TINYINT not null,
province varchar(10),
city varchar(10),
address varchar(30),
motto text
);
create table Car (
id INT(20) primary key auto_increment,
make varchar(20) not null,
model varchar(20) not null,
type varchar(20) not null,
price INT(10) not null,
year DATE not null,
mile INT(10) not null,
fixed TINYINT(4) not null,
description text not null
);
create table Make (
id INT(20) primary key auto_increment,
make varchar(20) not null
);
create table Model (
id int(20) primary key auto_increment,
model varchar(20) not null,
make int(20),
foreign key (make) references Make(id)
);