Skip to content

Instantly share code, notes, and snippets.

@veeara282
Last active August 11, 2019 18:54
Show Gist options
  • Save veeara282/ea08595dd0c022a489b107d75713aaad to your computer and use it in GitHub Desktop.
Save veeara282/ea08595dd0c022a489b107d75713aaad to your computer and use it in GitHub Desktop.
Data model for the Kindred web app (Violet Hacks 2019)
trait Model
trait User extends Model {
// Personally identifiable information
def name: String
def pronouns: String
def email: String
// Interests and skills
def causes: Set[Cause]
def skills: Set[Skill]
}
trait Organization extends Model {
// Identifying information
def name: String
// Categories and skills needed
def causes: Set[Cause]
def skillsNeeded: Set[Skill]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment