Professional Documents
Culture Documents
id int primary
username varchar(255) unique
email varchar(255) not null DEFAULT 'name@gmail.com' (may be)
alter table <tb name> add foreign key<col name> references <tb name>(<col name>);
create table posts (id int primary key auto_increment,title varchar(255),content
text,created_at timestamp,user_id int,foreign key (col name) references users(id));