-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCreateBSDLE.sql
More file actions
38 lines (23 loc) · 907 Bytes
/
Copy pathCreateBSDLE.sql
File metadata and controls
38 lines (23 loc) · 907 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
29
30
31
32
33
34
35
CREATE SCHEMA IF NOT EXISTS BSDLE;
USE BSDLE;
CREATE TABLE IF NOT EXISTS BRAWLER(
id INT NOT NULL AUTO_INCREMENT,
nome VARCHAR(32) NOT NULL UNIQUE,
genero ENUM('F','M','U','N'),
raridade ENUM('rare','super rare','epic','mythic','legendary','ultra legendary'),
regiao ENUM('starr plaza', 'wild frontier', 'haunted haven',
'tomorrowland', 'fairytale kingdom', 'retropolis',
'mystic mountain', 'starr gardens', 'water world', 'brawlywood', 'unspecified'),
tipo ENUM('assasin', 'support', 'controller',
'artillery', 'marksman', 'tank',
'damage dealer', 'unknown'),
ano INT,
PRIMARY KEY (id)
);
CREATE TABLE IF NOT EXISTS BRAWLER_EMOJIS(
id INT NOT NULL AUTO_INCREMENT,
brawlerId INT NOT NULL,
emoji VARCHAR(10),
PRIMARY KEY(id),
FOREIGN KEY (brawlerId) REFERENCES BRAWLER(id)
);