-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathschema.sql
More file actions
61 lines (55 loc) · 1.62 KB
/
schema.sql
File metadata and controls
61 lines (55 loc) · 1.62 KB
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
-- -- Drops the programming_db if it already exists --
-- DROP DATABASE IF EXISTS magic_db;
-- -- Create the database burgers_db and specified it for use.
-- CREATE DATABASE magic_db;
-- USE magic_db;
-- -- Create the table tasks.
-- CREATE TABLE events
-- (
-- id int NOT NULL AUTO_INCREMENT,
-- -- This will hold our provider either Twitch or YouTube --
-- coverage_provider varchar(255),
-- -- Event Sponsor: Channel Fireball, Wizards of the Coast, Star City Games --
-- event_sponsor varchar(255),
-- -- Event Name: ex. Grand Prix Dublin or SCG Open: Milwaukee --
-- event_name varchar(255),
-- -- Date the event was held --
-- event_date DATE,
-- -- Format refers to the tournament format --
-- format varchar(255),
-- -- Primary Key set to ID --
-- PRIMARY KEY (id)
-- );
-- CREATE TABLE rounds
-- (
-- id int NOT NULL AUTO_INCREMENT,
-- -- Round Number --
-- round_number varchar(255),
-- -- Event Name same as events --
-- event_name varchar(255),
-- -- URL to Match Coverage --
-- coverage_link varchar(255),
-- -- Foreign Key --
-- Foreign KEY(event_name)
-- );
-- CREATE TABLE players
-- (
-- id int NOT NULL AUTO_INCREMENT,
-- -- Round Number --
-- round_number varchar(255),
-- -- Player --
-- player_name varchar(255),
-- -- Player --
-- player_deck varchar(255),
-- -- Primary Key --
-- PRIMARY KEY(round_number)
-- );
-- CREATE TABLE decks
-- (
-- id int NOT NULL AUTO_INCREMENT,
-- -- Deck Name --
-- deck_name varchar(255),
-- -- Format --
-- format varchar(255),
-- PRIMARY KEY(deck_name)
-- );