-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.sql
More file actions
32 lines (26 loc) · 724 Bytes
/
init.sql
File metadata and controls
32 lines (26 loc) · 724 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
CREATE DATABASE IF NOT EXISTS minecraft_store;
USE minecraft_store;
create table if not exists products
(
id int auto_increment,
name varchar(128) null,
description varchar(500) null,
price smallint null,
command varchar(128) null,
primary key (id)
);
create table if not exists purchases
(
id int auto_increment,
product_id int not null,
nickname varchar(64) not null,
email varchar(128) null,
transaction_id boolean default false null,
primary key (id)
);
create table if not exists transactions
(
id varchar(36),
status varchar(20),
primary key (id)
);