class Meta(object): manager = Manager('agilo.scrum.sprint.SprintModelManager') name = Field(primary_key=True) description = Field() start = Field(type='datetime') # We need also the hours end = Field(type='datetime', db_name='sprint_end') # We need also the hours milestone = Field() team = Relation(Team, db_name='team')
class Meta(object): manager = Manager('agilo.scrum.team.TeamMemberModelManager') name = Field(primary_key=True) team = Relation(Team, db_name='team') description = Field() ts_mon = Field(type='real') ts_tue = Field(type='real') ts_wed = Field(type='real') ts_thu = Field(type='real') ts_fri = Field(type='real') ts_sat = Field(type='real') ts_sun = Field(type='real')
class Meta(object): team = Relation(Team, primary_key=True, db_name='team') sprint = Relation(Sprint, primary_key=True, db_name='sprint') # in MySQL 'key' is a reserved word key = Field(primary_key=True, db_name='metrics_key') value = Field(type='real')
class Meta(object): name = Field(primary_key=True) sprint = Relation(Sprint, primary_key=True, db_name='sprint') amount = Field(type='real') actual = Field(type='real')
class Meta(object): date = Field(type='integer', primary_key=True) teammember = Relation(TeamMember, primary_key=True, db_name='teammember') hours = Field(type='real')
class Meta(object): name = Field(primary_key=True) sprint = Relation(FakeSprint, db_name='sprint', primary_key=True)
class Meta(object): name = Field(unique=True) prop2 = Relation(MyPO)
class Meta(object): name = Field(primary_key=True) mypo = Relation(MyPO)