Skip to content

Instantly share code, notes, and snippets.

@sebastienblanc
Created February 18, 2014 16:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sebastienblanc/9074932 to your computer and use it in GitHub Desktop.
Save sebastienblanc/9074932 to your computer and use it in GitHub Desktop.

A simple app that manages players, teams and tournaments:

Team {
  name : String
  hasMany : Player
  hasMany: Tournamenent // many-to-many 
 }

Player {
name : String
dateOfBirth: Date
injured: boolean
hasOne : Team
}

Tournament {
 name: String
 price : number
 hasMany: Team
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment