-
Notifications
You must be signed in to change notification settings - Fork 0
/
PGADMIN
71 lines (58 loc) · 1.43 KB
/
PGADMIN
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
CREATE TABLE kaggle_catch(
capture_rate DECIMAL(5,2),
escape_rate DECIMAL(5,2),
weight DECIMAL(5,2),
height DECIMAL(5,2),
legendary BOOLEAN,
c_primary_key INTEGER PRIMARY KEY
);
CREATE TABLE kaggle_battle(
maxhp INTEGER,
maxcp INTEGER,
stamina INTEGER,
attack INTEGER,
defense INTEGER,
stats INTEGER,
primary_key INTEGER PRIMARY KEY
);
CREATE TABLE kaggle_name(
pokedex INTEGER,
name VARCHAR(100),
generation INTEGER,
primary_type VARCHAR(100),
secondary_type VARCHAR(100),
catch_fk INTEGER,
battle_fk INTEGER,
FOREIGN KEY (catch_fk) REFERENCES kaggle_catch(c_primary_key),
FOREIGN KEY (battle_fk) REFERENCES kaggle_battle(primary_key),
pk INTEGER PRIMARY KEY
);
CREATE TABLE rapid_catch (
attack_probability DECIMAL(5,2),
base_capture_rate DECIMAL(5,2),
base_flee_rate DECIMAL(5,2),
dodge_probability DECIMAL(5,2),
max_pokemon_action_frequency DECIMAL(5,2),
min_pokemon_action_frequency DECIMAL(5,2),
primary_key INTEGER PRIMARY KEY
);
CREATE TABLE rapid_battle(
max_cp INTEGER,
stamina INTEGER,
attack INTEGER,
defense INTEGER,
total_stats INTEGER,
primary_key INTEGER PRIMARY KEY
);
CREATE TABLE rapid_name(
pokemon_id INTEGER,
name TEXT,
primary_type VARCHAR(100),
secondary_type VARCHAR(100),
form VARCHAR(100),
battle_fk INTEGER,
catch_fk INTEGER,
FOREIGN KEY (catch_fk) REFERENCES rapid_catch(primary_key),
FOREIGN KEY (battle_fk) REFERENCES rapid_battle(primary_key),
pk INTEGER PRIMARY KEY
);