low_resolution = BinaryJSONField(null=True) standard_resolution = BinaryJSONField(null=True) thumbnail = BinaryJSONField(null=True) id_str = TextField() like_count = IntegerField(null=True) likes = BinaryJSONField(null=True) link = TextField() type = TextField() class last(model_oper_bz.base): ''' 记录上次看到的那条message ''' user_id = IntegerField() last_time = DateTimeField() last_message_id = TextField() if __name__ == '__main__': # 需要用户登录模块 #model_oper_bz.reCreateTable(model_bz.user_info, db_name, user='******', password='******', host='bigzhu.org') #model_oper_bz.reCreateAllTable(globals().copy(), db_name, user='******', password='******', host='bigzhu.org') #model_oper_bz.reCreateAllTable(globals().copy(), db_name) #model_oper_bz.createAllTable(globals().copy(), db_name) #model_oper_bz.createAllTable(globals().copy(), db_name) #model_oper_bz.reCreateTable(model_bz.user_info, db_name) model_oper_bz.reCreateTable(last, db_name) #model_oper_bz.reCreateTable(model_bz.user_info, db_name)
class upload_info(model_oper_bz.base): openid = TextField() # 用户的标识,对当前公众号唯一 description = TextField(null=True) # 客户的描述 group_name = TextField() user_id = IntegerField(null=True) # 审核通过的管理员 id stat = IntegerField(null=True) # 1 审核通过 2 审核不通过 files = JSONField() # 上传的图片,只存储名字,不存储路径 class vote(model_oper_bz.base): openid = TextField() # 用户的标识,对当前公众号唯一 upload_info_id = IntegerField() # 作品的 id class hits(model_oper_bz.base): openid = TextField() # 用户标识 path = TextField() # 访问的url路径 if __name__ == '__main__': import model_bz model_bz.user_info # 需要用户登录模块 # user_bz.createTable(db_name) #model_oper_bz.dropTable(hits, db_name) #model_oper_bz.createTable(hits, db_name) #model_oper_bz.createAllTable(globals(), db_name, user=user, password=pw, host=host) model_oper_bz.reCreateTable(available_card_numbers, db_name, user=user, password=pw, host=host)
class last(model_oper_bz.base): ''' 记录上次看到的那条message ''' user_id = IntegerField() last_time = DateTimeField() last_message_id = TextField() class user_info(model_bz.user_info): ''' create by bigzhu at 15/08/19 09:27:08 增加18+ ''' p**n = IntegerField() # 1 荤的,0 素的 tumblr = TextField() # 汤不热 if __name__ == '__main__': # 需要用户登录模块 #model_oper_bz.reCreateTable(model_bz.user_info, db_name, user='******', password='******', host='bigzhu.org') #model_oper_bz.reCreateAllTable(globals().copy(), db_name, user='******', password='******', host='bigzhu.org') #model_oper_bz.reCreateAllTable(globals().copy(), db_name) #model_oper_bz.createAllTable(globals().copy(), db_name) #model_oper_bz.createAllTable(globals().copy(), db_name) #model_oper_bz.reCreateTable(model_bz.user_info, db_name) model_oper_bz.reCreateTable(tumblr_user, db_name) model_oper_bz.reCreateTable(tumblr_blog, db_name) #model_oper_bz.reCreateTable(model_bz.user_info, db_name)
class upload_info(model_oper_bz.base): openid = TextField() # 用户的标识,对当前公众号唯一 description = TextField(null=True) # 客户的描述 group_name = TextField() user_id = IntegerField(null=True) # 审核通过的管理员 id stat = IntegerField(null=True) # 1 审核通过 2 审核不通过 files = JSONField() # 上传的图片,只存储名字,不存储路径 class vote(model_oper_bz.base): openid = TextField() # 用户的标识,对当前公众号唯一 upload_info_id = IntegerField() # 作品的 id class hits(model_oper_bz.base): openid = TextField() # 用户标识 path = TextField() # 访问的url路径 if __name__ == '__main__': #import user_bz # user_bz.createTable(db_name) # 需要用户登录模块 # user_bz.createTable(db_name) #model_oper_bz.dropTable(hits, db_name) #model_oper_bz.createTable(hits, db_name) #model_oper_bz.createAllTable(globals(), db_name, user=user, password=pw, host=host) model_oper_bz.reCreateTable(pay, db_name, user=user, password=pw, host=host)