2020-05-19 20:36:56 +02:00
|
|
|
create database bin_database;
|
|
|
|
use bin_database;
|
|
|
|
|
|
|
|
create table users(
|
|
|
|
id int key not null auto_increment,
|
|
|
|
username varchar(30),
|
2020-05-27 13:15:06 +02:00
|
|
|
passwd varchar(200),
|
2020-05-20 00:11:17 +02:00
|
|
|
admin bool
|
2020-05-19 20:36:56 +02:00
|
|
|
);
|
|
|
|
|
|
|
|
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)
|
|
|
|
);
|