示例#1
0
文件: model.py 项目: nagyist/agilo
 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')
示例#2
0
文件: model.py 项目: nagyist/agilo
 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')
示例#3
0
 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')
示例#4
0
文件: model.py 项目: nagyist/agilo
 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')
示例#5
0
文件: model.py 项目: nagyist/agilo
 class Meta(object):
     date = Field(type='integer', primary_key=True)
     teammember = Relation(TeamMember,
                           primary_key=True,
                           db_name='teammember')
     hours = Field(type='real')
示例#6
0
 class Meta(object):
     name = Field(primary_key=True)
     sprint = Relation(FakeSprint,
                       db_name='sprint',
                       primary_key=True)
示例#7
0
 class Meta(object):
     name = Field(unique=True)
     prop2 = Relation(MyPO)
示例#8
0
 class Meta(object):
     name = Field(primary_key=True)
     mypo = Relation(MyPO)