class Meta(object): id = Field(type='integer', primary_key=True, auto_increment=True) type = Field(db_name='burndown_type') scope = Field() when = Field(type='datetime', db_name='timestamp') # REFACT: Consider splitting metadata tuple (pair) into two fields: # numeric value and actual metadata dict (component, etc) value = Field()
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): name = Field(primary_key=True) sprint = Field(primary_key=True) value = Field(type="real")
class Meta(object): id = Field(primary_key=True, auto_increment=True) name = Field()
class Meta(object): scope = Field(primary_key=True)
class Meta(object): name = Field(primary_key=True) mypo = Relation(MyPO)
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: value0 = Field(unique=True) value1 = Field(type="real") value2 = Field(type="integer") value3 = Field()
class Meta(object): name = Field(unique=True) prop2 = Relation(MyPO)
class Meta(object): name = Field(primary_key=True) # , db_name='foobar'
class Meta(object): name = Field(unique=True) description = Field()
class Meta(object): name = Field(unique=True, db_name='mypo_key') another = Field()
class Meta(object): name = Field(primary_key=True, db_name='mypo_key') what = Field()
class Meta(object): name = Field(primary_key=True) users = Field(type='number') amount = Field(type='real') description = Field()
class Meta(object): name = Field(unique=True) value = Field(type="real")
class Meta(object): id = Field(primary_key=True, type='integer') start = Field(type='datetime')
class Meta(object): sprint = Field(primary_key=True)
class Meta(object): manager = Manager('agilo.scrum.team.TeamModelManager') name = Field(primary_key=True) description = Field()
class Meta(object): name = Field(unique=True)
class Meta(object): name = Field(primary_key=True)
class Meta(object): name = Field(primary_key=True) number = Field(type='real')
class Meta(object): name = Field(primary_key=True) sprint = Relation(FakeSprint, db_name='sprint', primary_key=True)
class Meta(object): id = Field(type='number', primary_key=True) users = Field(type='number')