create table usertable( id int primary key, username ) not null, birthday date, sex ), address ) ); create table orders( id int primary key, user_id int not null, numberid ) not null, createtime date, note ), constraint fk_orders foreign key (user_id…