class Task(AuthModel): __table__ = 'grab_task' aid = baseorm.IdField() fid = baseorm.IdField() sid = baseorm.IdField() name = baseorm.StrField(ddl='varchar', max_length=50, searchable='in') params = baseorm.StrField(ddl='varchar', default=None, max_length=3000) worknum = baseorm.IntField(ddl='int', max_length=3) queuetype = baseorm.StrField(ddl='char', max_length=1) worktype = baseorm.StrField(ddl='varchar', max_length=30) timeout = baseorm.IntField(ddl='int', max_length=4) category = baseorm.StrField(ddl='varchar', max_length=50) tag = baseorm.StrField(ddl='varchar', default=None, max_length=500) type = baseorm.StrField(ddl='varchar', max_length=8) push_url = baseorm.StrField(ddl='varchar', max_length=100) period = baseorm.IntField(ddl='int', max_length=4) status = baseorm.IntField(ddl='int', default=1, max_length=1) state = baseorm.IntField(ddl='int', default=0, max_length=1) count = baseorm.IntField(ddl='int', max_length=5) extra = baseorm.StrField(ddl='varchar', max_length=300, default=None, searchable='in') creator = baseorm.IdField(updatable=False) updator = baseorm.IdField() create_time = baseorm.DatetimeField(ddl='datetime', updatable=False) update_time = baseorm.DatetimeField(ddl='timestamp')
class Flow(AuthModel): __table__ = 'grab_flow' aid = baseorm.IdField() name = baseorm.StrField(ddl='varchar', max_length=20, nullable=0, updatable=False, unique='gf') desc = baseorm.StrField(ddl='varchar', max_length=128, default=None) status = baseorm.IntField(ddl='int', max_length=1) creator = baseorm.IdField(updatable=False) updator = baseorm.IdField() create_time = baseorm.DatetimeField(ddl='datetime', updatable=False) update_time = baseorm.DatetimeField(ddl='timestamp')
class Unit(AuthModel): __table__ = 'grab_unit' dmid = baseorm.IdField() name = baseorm.StrField(ddl='varchar', max_length=20, nullable=0, updatable=False, unique='gu') desc = baseorm.StrField(ddl='char', max_length=128) filepath = baseorm.StrField(ddl='varchar', max_length=64) digest = baseorm.StrField(ddl='char', max_length=32, default=None) status = baseorm.IntField(ddl='int', max_length=1) extra = baseorm.StrField(ddl='varchar', max_length=300, default=None) creator = baseorm.IdField(updatable=False) updator = baseorm.IdField() create_time = baseorm.DatetimeField(ddl='datetime', updatable=False) update_time = baseorm.DatetimeField(ddl='timestamp')
class Permit(baseorm.Model): __table__ = 'grab_permit' cid = baseorm.IdField(unique='gp') oid = baseorm.IdField(unique='gp', default=None) otype = baseorm.StrField(ddl='varchar', max_length=50, nullable=0, updatable=False, unique='gp') authority = baseorm.IntField(ddl='int', max_length=3) desc = baseorm.StrField(ddl='char', max_length=4) status = baseorm.IntField(ddl='int', max_length=1) extra = baseorm.StrField(ddl='varchar', max_length=300, default=None) creator = baseorm.IdField(updatable=False) updator = baseorm.IdField() create_time = baseorm.DatetimeField(ddl='datetime', updatable=False) update_time = baseorm.DatetimeField(ddl='timestamp')
class Section(AuthModel): __table__ = 'grab_section' aid = baseorm.IdField(unique='gs') fid = baseorm.IdField(unique='gs') next_id = baseorm.IdField() name = baseorm.StrField(ddl='varchar', max_length=20, nullable=0, updatable=False, unique='gs') desc = baseorm.StrField(ddl='char', max_length=128) step = baseorm.IntField(ddl='int', max_length=2) flow = baseorm.StrField(ddl='varchar', max_length=20, nullable=0, updatable=False, unique='gs') index = baseorm.StrField(ddl='varchar', max_length=20) retry = baseorm.IntField(ddl='int', max_length=1) timelimit = baseorm.IntField(ddl='int', max_length=4) store = baseorm.IntField(ddl='int', max_length=1) additions = baseorm.StrField(ddl='varchar', max_length=1024, default=None) extra = baseorm.StrField(ddl='varchar', max_length=300, default=None) creator = baseorm.IdField(updatable=False) updator = baseorm.IdField() create_time = baseorm.DatetimeField(ddl='datetime', updatable=False) update_time = baseorm.DatetimeField(ddl='timestamp')
class Creator(AuthModel): __table__ = 'grab_creator' username = baseorm.StrField(ddl='varchar', max_length=20, nullable=0, updatable=False, unique='gc', searchable='in') password = baseorm.StrField(ddl='varchar', max_length=20) group = baseorm.StrField(ddl='varchar', max_length=20, searchable='all') desc = baseorm.StrField(ddl='varchar', max_length=128) avatar = baseorm.StrField(ddl='varchar', max_length=128) contact = baseorm.StrField(ddl='varchar', default=None, max_length=500) notify = baseorm.StrField(ddl='varchar', max_length=100) status = baseorm.IntField(ddl='int', max_length=1) extra = baseorm.StrField(ddl='varchar', max_length=300, default=None) secret = baseorm.StrField(ddl='varchar', max_length=100) creator = baseorm.IdField(updatable=False) updator = baseorm.IdField() create_time = baseorm.DatetimeField(ddl='datetime', updatable=False) update_time = baseorm.DatetimeField(ddl='timestamp')
class Datamodel(AuthModel): __table__ = 'grab_datamodel' name = baseorm.StrField(ddl='varchar', max_length=64, nullable=0, updatable=False, unique='gdm') table = baseorm.StrField(ddl='varchar', max_length=64) comment = baseorm.StrField(ddl='varchar', max_length=128) filepath = baseorm.StrField(ddl='varchar', max_length=64) digest = baseorm.StrField(ddl='char', max_length=32, default=None) status = baseorm.IntField(ddl='int', max_length=1) extra = baseorm.StrField(ddl='varchar', max_length=300, default=None) creator = baseorm.IdField(updatable=False) updator = baseorm.IdField() create_time = baseorm.DatetimeField(ddl='datetime', updatable=False) update_time = baseorm.DatetimeField(ddl='timestamp')
class Article(AuthModel): __table__ = 'grab_article' uid = baseorm.IdField(unique='ga') name = baseorm.StrField(ddl='varchar', max_length=20, nullable=0, updatable=False, unique='ga', searchable='end') desc = baseorm.StrField(ddl='char', max_length=128, searchable='in') clsname = baseorm.StrField(ddl='varchar', max_length=50, searchable='end') filepath = baseorm.StrField(ddl='varchar', max_length=64) digest = baseorm.StrField(ddl='char', max_length=32, default=None) status = baseorm.IntField(ddl='int', max_length=1) extra = baseorm.StrField(ddl='varchar', max_length=300, default=None) creator = baseorm.IdField(updatable=False) updator = baseorm.IdField() create_time = baseorm.DatetimeField(ddl='datetime', updatable=False) update_time = baseorm.DatetimeField(ddl='timestamp')