Commit 8114eed1 authored by Frederik Wegner's avatar Frederik Wegner
Browse files

Added table user_pool TG-148

parent 93ee9633
......@@ -321,6 +321,26 @@ CREATE TABLE IF NOT EXISTS `user` (
ON UPDATE NO ACTION)
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `user_pool`
-- The pools a user selected to play.
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `user_pool` (
`user` INT UNSIGNED NOT NULL,
`pool` INT UNSIGNED NOT NULL,
CONSTRAINT `fk_user_pool_user` FOREIGN KEY
(`user`)
REFERENCES `user` (`iduser`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `fk_user_pool_pool` FOREIGN KEY
(`pool`)
REFERENCES `pool` (`idpool`)
ON DELETE NO ACTION
ON UPDATE NO ACTION
)
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `friend`
-- -----------------------------------------------------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment