package com.agiledeveloper

class Team {
  String name = "some default"
  static hasOne = [mascot: Mascot]
  static hasMany = [members: Person]
  
  String toString() { "$name -- $id" }
  
    static constraints = {
      name blank: false, unique: true
      mascot blank: true, nullable: true
    }
}
