Skip to content
Rex edited this page Jul 26, 2016 · 16 revisions

model Game

Attributes

  1. winner (could be space, :teamNO, :draw)
  2. field
  3. team_amount
  4. member_amount
  5. equal_member

Relations

  1. Game has_many team(Team)
  2. Game has_many turn(Turn)

model Team

Attributes

  1. life
  2. star
  3. maximum

Relations

  1. Team has_many player(Player)

model Player

Attributes

  1. metal_summoned
  2. wood_summoned
  3. water_summoned
  4. fire_summoned
  5. earth_summoned
  6. shell
  7. hand_limit

Relation

  1. has_many card(Card)
  2. has_one role(Role)
  3. belongs_to user(User)

Gamelogs

model Turn

Attributes

Relations

  1. has_many Event
  2. belongs_to Game

model Event

Attributes

  1. effect (json string)

Relations

  1. has_many costs(Card)
  2. has_one target(Player)
  3. belongs_to Turn