create database bin_database; use bin_database; create table users( id int key not null auto_increment, username varchar(30), passwd varchar(200), admin bool ); create table packages( id int key not null auto_increment, created date default CURRENT_TIME(), name varchar(30), uses bool default false, user int, foreign key (user) references users(id) );