-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdbmodel.sql
22 lines (19 loc) · 912 Bytes
/
dbmodel.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
-- ------
-- BGA framework: © Gregory Isabelli <[email protected]> & Emmanuel Colin <[email protected]>
-- Coup implementation : © quietmint
--
-- This code has been produced on the BGA studio platform for use on http://boardgamearena.com.
-- See http://en.boardgamearena.com/#!doc/Studio for more information.
-- -----
CREATE TABLE IF NOT EXISTS `card` (
`card_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`card_type` varchar(16) NOT NULL,
`card_type_arg` int(11) NOT NULL,
`card_location` varchar(16) NOT NULL,
`card_location_arg` int(11) NOT NULL,
PRIMARY KEY (`card_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
ALTER TABLE `player` ADD `player_wealth` INT NOT NULL DEFAULT 0;
ALTER TABLE `player` ADD `round_eliminated` INT NOT NULL DEFAULT 0;
ALTER TABLE `player` ADD `faction` INT NOT NULL DEFAULT 0;
ALTER TABLE `player` ADD `balloon` MEDIUMTEXT;