from typing import List from tortoise import Tortoise, run_async from config.db_config import * from tools import utils def get_platform_models() -> List[str]: models = ["aerich.models", "store.xhs", "store.douyin", "store.bilibili", "store.kuaishou", "store.weibo"] return models async def init_db(create_db: bool = False) -> None: await Tortoise.init( db_url=RELATION_DB_URL, modules={'models': get_platform_models()}, _create_db=create_db ) async def close() -> None: await Tortoise.close_connections() async def init(): await init_db(create_db=True) await Tortoise.generate_schemas() await init_aerich() utils.logger.info("[db.init] Init DB Success!") TORTOISE_ORM_CONFIG = { "connections": {"default": RELATION_DB_URL}, "apps": { "models": { "models": get_platform_models(), "default_connection": "default", }, }, } async def init_aerich(): Tortoise.get_connection('default').execute_insert("""INSERT INTO aerich VALUES(1,'0_20240302150109_init.py','models','{"models.Aerich": {"name": "models.Aerich", "app": "models", "table": "aerich", "abstract": false, "description": null, "docstring": null, "unique_together": [], "indexes": [], "pk_field": {"name": "id", "field_type": "IntField", "db_column": "id", "python_type": "int", "generated": true, "nullable": false, "unique": true, "indexed": true, "default": null, "description": null, "docstring": null, "constraints": {"ge": 1, "le": 2147483647}, "db_field_types": {"": "INT"}}, "data_fields": [{"name": "version", "field_type": "CharField", "db_column": "version", "python_type": "str", "generated": false, "nullable": false, "unique": false, "indexed": false, "default": null, "description": null, "docstring": null, "constraints": {"max_length": 255}, "db_field_types": {"": "VARCHAR(255)"}}, {"name": "app", "field_type": "CharField", "db_column": "app", "python_type": "str", "generated": false, "nullable": false, "unique": false, "indexed": false, "default": null, "description": null, "docstring": null, "constraints": {"max_length": 100}, "db_field_types": {"": "VARCHAR(100)"}}, {"name": "content", "field_type": "JSONField", "db_column": "content", "python_type": "Union[dict, list]", "generated": false, "nullable": false, "unique": false, "indexed": false, "default": null, "description": null, "docstring": null, "constraints": {}, "db_field_types": {"": "JSON", "mssql": "NVARCHAR(MAX)", "oracle": "NCLOB", "postgres": "JSONB"}}], "fk_fields": [], "backward_fk_fields": [], "o2o_fields": [], "backward_o2o_fields": [], "m2m_fields": []}, "models.XHSNote": {"name": "models.XHSNote", "app": "models", "table": "xhs_note", "abstract": false, "description": "\u5c0f\u7ea2\u4e66\u7b14\u8bb0", "docstring": null, "unique_together": [], "indexes": [], "pk_field": {"name": "id", "field_type": "IntField", "db_column": "id", "python_type": "int", "generated": true, "nullable": false, "unique": true, "indexed": true, "default": null, "description": "\u81ea\u589eID", "docstring": null, "constraints": {"ge": 1, "le": 2147483647}, "db_field_types": {"": "INT"}}, "data_fields": [{"name": "user_id", "field_type": "CharField", "db_column": "user_id", "python_type": "str", "generated": false, "nullable": false, "unique": false, "indexed": false, "default": null, "description": "\u7528\u6237ID", "docstring": null, "constraints": {"max_length": 64}, "db_field_types": {"": "VARCHAR(64)"}}, {"name": "nickname", "field_type": "CharField", "db_column": "nickname", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7528\u6237\u6635\u79f0", "docstring": null, "constraints": {"max_length": 64}, "db_field_types": {"": "VARCHAR(64)"}}, {"name": "avatar", "field_type": "CharField", "db_column": "avatar", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7528\u6237\u5934\u50cf\u5730\u5740", "docstring": null, "constraints": {"max_length": 255}, "db_field_types": {"": "VARCHAR(255)"}}, {"name": "ip_location", "field_type": "CharField", "db_column": "ip_location", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u8bc4\u8bba\u65f6\u7684IP\u5730\u5740", "docstring": null, "constraints": {"max_length": 255}, "db_field_types": {"": "VARCHAR(255)"}}, {"name": "add_ts", "field_type": "BigIntField", "db_column": "add_ts", "python_type": "int", "generated": false, "nullable": false, "unique": false, "indexed": false, "default": null, "description": "\u8bb0\u5f55\u6dfb\u52a0\u65f6\u95f4\u6233", "docstring": null, "constraints": {"ge": -9223372036854775808, "le": 9223372036854775807}, "db_field_types": {"": "BIGINT", "oracle": "INT"}}, {"name": "last_modify_ts", "field_type": "BigIntField", "db_column": "last_modify_ts", "python_type": "int", "generated": false, "nullable": false, "unique": false, "indexed": false, "default": null, "description": "\u8bb0\u5f55\u6700\u540e\u4fee\u6539\u65f6\u95f4\u6233", "docstring": null, "constraints": {"ge": -9223372036854775808, "le": 9223372036854775807}, "db_field_types": {"": "BIGINT", "oracle": "INT"}}, {"name": "note_id", "field_type": "CharField", "db_column": "note_id", "python_type": "str", "generated": false, "nullable": false, "unique": false, "indexed": true, "default": null, "description": "\u7b14\u8bb0ID", "docstring": null, "constraints": {"max_length": 64}, "db_field_types": {"": "VARCHAR(64)"}}, {"name": "type", "field_type": "CharField", "db_column": "type", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7b14\u8bb0\u7c7b\u578b(normal | video)", "docstring": null, "constraints": {"max_length": 16}, "db_field_types": {"": "VARCHAR(16)"}}, {"name": "title", "field_type": "CharField", "db_column": "title", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7b14\u8bb0\u6807\u9898", "docstring": null, "constraints": {"max_length": 255}, "db_field_types": {"": "VARCHAR(255)"}}, {"name": "desc", "field_type": "TextField", "db_column": "desc", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7b14\u8bb0\u63cf\u8ff0", "docstring": null, "constraints": {}, "db_field_types": {"": "TEXT", "mssql": "NVARCHAR(MAX)", "mysql": "LONGTEXT", "oracle": "NCLOB"}}, {"name": "time", "field_type": "BigIntField", "db_column": "time", "python_type": "int", "generated": false, "nullable": false, "unique": false, "indexed": true, "default": null, "description": "\u7b14\u8bb0\u53d1\u5e03\u65f6\u95f4\u6233", "docstring": null, "constraints": {"ge": -9223372036854775808, "le": 9223372036854775807}, "db_field_types": {"": "BIGINT", "oracle": "INT"}}, {"name": "last_update_time", "field_type": "BigIntField", "db_column": "last_update_time", "python_type": "int", "generated": false, "nullable": false, "unique": false, "indexed": false, "default": null, "description": "\u7b14\u8bb0\u6700\u540e\u66f4\u65b0\u65f6\u95f4\u6233", "docstring": null, "constraints": {"ge": -9223372036854775808, "le": 9223372036854775807}, "db_field_types": {"": "BIGINT", "oracle": "INT"}}, {"name": "liked_count", "field_type": "CharField", "db_column": "liked_count", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7b14\u8bb0\u70b9\u8d5e\u6570", "docstring": null, "constraints": {"max_length": 16}, "db_field_types": {"": "VARCHAR(16)"}}, {"name": "collected_count", "field_type": "CharField", "db_column": "collected_count", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7b14\u8bb0\u6536\u85cf\u6570", "docstring": null, "constraints": {"max_length": 16}, "db_field_types": {"": "VARCHAR(16)"}}, {"name": "comment_count", "field_type": "CharField", "db_column": "comment_count", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7b14\u8bb0\u8bc4\u8bba\u6570", "docstring": null, "constraints": {"max_length": 16}, "db_field_types": {"": "VARCHAR(16)"}}, {"name": "share_count", "field_type": "CharField", "db_column": "share_count", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7b14\u8bb0\u5206\u4eab\u6570", "docstring": null, "constraints": {"max_length": 16}, "db_field_types": {"": "VARCHAR(16)"}}, {"name": "image_list", "field_type": "TextField", "db_column": "image_list", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7b14\u8bb0\u5c01\u9762\u56fe\u7247\u5217\u8868", "docstring": null, "constraints": {}, "db_field_types": {"": "TEXT", "mssql": "NVARCHAR(MAX)", "mysql": "LONGTEXT", "oracle": "NCLOB"}}, {"name": "note_url", "field_type": "CharField", "db_column": "note_url", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7b14\u8bb0\u8be6\u60c5\u9875\u7684URL", "docstring": null, "constraints": {"max_length": 255}, "db_field_types": {"": "VARCHAR(255)"}}], "fk_fields": [], "backward_fk_fields": [], "o2o_fields": [], "backward_o2o_fields": [], "m2m_fields": []}, "models.XHSNoteComment": {"name": "models.XHSNoteComment", "app": "models", "table": "xhs_note_comment", "abstract": false, "description": "\u5c0f\u7ea2\u4e66\u7b14\u8bb0\u8bc4\u8bba", "docstring": null, "unique_together": [], "indexes": [], "pk_field": {"name": "id", "field_type": "IntField", "db_column": "id", "python_type": "int", "generated": true, "nullable": false, "unique": true, "indexed": true, "default": null, "description": "\u81ea\u589eID", "docstring": null, "constraints": {"ge": 1, "le": 2147483647}, "db_field_types": {"": "INT"}}, "data_fields": [{"name": "user_id", "field_type": "CharField", "db_column": "user_id", "python_type": "str", "generated": false, "nullable": false, "unique": false, "indexed": false, "default": null, "description": "\u7528\u6237ID", "docstring": null, "constraints": {"max_length": 64}, "db_field_types": {"": "VARCHAR(64)"}}, {"name": "nickname", "field_type": "CharField", "db_column": "nickname", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7528\u6237\u6635\u79f0", "docstring": null, "constraints": {"max_length": 64}, "db_field_types": {"": "VARCHAR(64)"}}, {"name": "avatar", "field_type": "CharField", "db_column": "avatar", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7528\u6237\u5934\u50cf\u5730\u5740", "docstring": null, "constraints": {"max_length": 255}, "db_field_types": {"": "VARCHAR(255)"}}, {"name": "ip_location", "field_type": "CharField", "db_column": "ip_location", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u8bc4\u8bba\u65f6\u7684IP\u5730\u5740", "docstring": null, "constraints": {"max_length": 255}, "db_field_types": {"": "VARCHAR(255)"}}, {"name": "add_ts", "field_type": "BigIntField", "db_column": "add_ts", "python_type": "int", "generated": false, "nullable": false, "unique": false, "indexed": false, "default": null, "description": "\u8bb0\u5f55\u6dfb\u52a0\u65f6\u95f4\u6233", "docstring": null, "constraints": {"ge": -9223372036854775808, "le": 9223372036854775807}, "db_field_types": {"": "BIGINT", "oracle": "INT"}}, {"name": "last_modify_ts", "field_type": "BigIntField", "db_column": "last_modify_ts", "python_type": "int", "generated": false, "nullable": false, "unique": false, "indexed": false, "default": null, "description": "\u8bb0\u5f55\u6700\u540e\u4fee\u6539\u65f6\u95f4\u6233", "docstring": null, "constraints": {"ge": -9223372036854775808, "le": 9223372036854775807}, "db_field_types": {"": "BIGINT", "oracle": "INT"}}, {"name": "comment_id", "field_type": "CharField", "db_column": "comment_id", "python_type": "str", "generated": false, "nullable": false, "unique": false, "indexed": true, "default": null, "description": "\u8bc4\u8bbaID", "docstring": null, "constraints": {"max_length": 64}, "db_field_types": {"": "VARCHAR(64)"}}, {"name": "create_time", "field_type": "BigIntField", "db_column": "create_time", "python_type": "int", "generated": false, "nullable": false, "unique": false, "indexed": true, "default": null, "description": "\u8bc4\u8bba\u65f6\u95f4\u6233", "docstring": null, "constraints": {"ge": -9223372036854775808, "le": 9223372036854775807}, "db_field_types": {"": "BIGINT", "oracle": "INT"}}, {"name": "note_id", "field_type": "CharField", "db_column": "note_id", "python_type": "str", "generated": false, "nullable": false, "unique": false, "indexed": false, "default": null, "description": "\u7b14\u8bb0ID", "docstring": null, "constraints": {"max_length": 64}, "db_field_types": {"": "VARCHAR(64)"}}, {"name": "content", "field_type": "TextField", "db_column": "content", "python_type": "str", "generated": false, "nullable": false, "unique": false, "indexed": false, "default": null, "description": "\u8bc4\u8bba\u5185\u5bb9", "docstring": null, "constraints": {}, "db_field_types": {"": "TEXT", "mssql": "NVARCHAR(MAX)", "mysql": "LONGTEXT", "oracle": "NCLOB"}}, {"name": "sub_comment_count", "field_type": "IntField", "db_column": "sub_comment_count", "python_type": "int", "generated": false, "nullable": false, "unique": false, "indexed": false, "default": null, "description": "\u5b50\u8bc4\u8bba\u6570\u91cf", "docstring": null, "constraints": {"ge": -2147483648, "le": 2147483647}, "db_field_types": {"": "INT"}}], "fk_fields": [], "backward_fk_fields": [], "o2o_fields": [], "backward_o2o_fields": [], "m2m_fields": []}, "models.DouyinAweme": {"name": "models.DouyinAweme", "app": "models", "table": "douyin_aweme", "abstract": false, "description": "\u6296\u97f3\u89c6\u9891", "docstring": null, "unique_together": [], "indexes": [], "pk_field": {"name": "id", "field_type": "IntField", "db_column": "id", "python_type": "int", "generated": true, "nullable": false, "unique": true, "indexed": true, "default": null, "description": "\u81ea\u589eID", "docstring": null, "constraints": {"ge": 1, "le": 2147483647}, "db_field_types": {"": "INT"}}, "data_fields": [{"name": "user_id", "field_type": "CharField", "db_column": "user_id", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7528\u6237ID", "docstring": null, "constraints": {"max_length": 64}, "db_field_types": {"": "VARCHAR(64)"}}, {"name": "sec_uid", "field_type": "CharField", "db_column": "sec_uid", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7528\u6237sec_uid", "docstring": null, "constraints": {"max_length": 128}, "db_field_types": {"": "VARCHAR(128)"}}, {"name": "short_user_id", "field_type": "CharField", "db_column": "short_user_id", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7528\u6237\u77edID", "docstring": null, "constraints": {"max_length": 64}, "db_field_types": {"": "VARCHAR(64)"}}, {"name": "user_unique_id", "field_type": "CharField", "db_column": "user_unique_id", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7528\u6237\u552f\u4e00ID", "docstring": null, "constraints": {"max_length": 64}, "db_field_types": {"": "VARCHAR(64)"}}, {"name": "nickname", "field_type": "CharField", "db_column": "nickname", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7528\u6237\u6635\u79f0", "docstring": null, "constraints": {"max_length": 64}, "db_field_types": {"": "VARCHAR(64)"}}, {"name": "avatar", "field_type": "CharField", "db_column": "avatar", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7528\u6237\u5934\u50cf\u5730\u5740", "docstring": null, "constraints": {"max_length": 255}, "db_field_types": {"": "VARCHAR(255)"}}, {"name": "user_signature", "field_type": "CharField", "db_column": "user_signature", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7528\u6237\u7b7e\u540d", "docstring": null, "constraints": {"max_length": 500}, "db_field_types": {"": "VARCHAR(500)"}}, {"name": "ip_location", "field_type": "CharField", "db_column": "ip_location", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u8bc4\u8bba\u65f6\u7684IP\u5730\u5740", "docstring": null, "constraints": {"max_length": 255}, "db_field_types": {"": "VARCHAR(255)"}}, {"name": "add_ts", "field_type": "BigIntField", "db_column": "add_ts", "python_type": "int", "generated": false, "nullable": false, "unique": false, "indexed": false, "default": null, "description": "\u8bb0\u5f55\u6dfb\u52a0\u65f6\u95f4\u6233", "docstring": null, "constraints": {"ge": -9223372036854775808, "le": 9223372036854775807}, "db_field_types": {"": "BIGINT", "oracle": "INT"}}, {"name": "last_modify_ts", "field_type": "BigIntField", "db_column": "last_modify_ts", "python_type": "int", "generated": false, "nullable": false, "unique": false, "indexed": false, "default": null, "description": "\u8bb0\u5f55\u6700\u540e\u4fee\u6539\u65f6\u95f4\u6233", "docstring": null, "constraints": {"ge": -9223372036854775808, "le": 9223372036854775807}, "db_field_types": {"": "BIGINT", "oracle": "INT"}}, {"name": "aweme_id", "field_type": "CharField", "db_column": "aweme_id", "python_type": "str", "generated": false, "nullable": false, "unique": false, "indexed": true, "default": null, "description": "\u89c6\u9891ID", "docstring": null, "constraints": {"max_length": 64}, "db_field_types": {"": "VARCHAR(64)"}}, {"name": "aweme_type", "field_type": "CharField", "db_column": "aweme_type", "python_type": "str", "generated": false, "nullable": false, "unique": false, "indexed": false, "default": null, "description": "\u89c6\u9891\u7c7b\u578b", "docstring": null, "constraints": {"max_length": 16}, "db_field_types": {"": "VARCHAR(16)"}}, {"name": "title", "field_type": "CharField", "db_column": "title", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u89c6\u9891\u6807\u9898", "docstring": null, "constraints": {"max_length": 500}, "db_field_types": {"": "VARCHAR(500)"}}, {"name": "desc", "field_type": "TextField", "db_column": "desc", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u89c6\u9891\u63cf\u8ff0", "docstring": null, "constraints": {}, "db_field_types": {"": "TEXT", "mssql": "NVARCHAR(MAX)", "mysql": "LONGTEXT", "oracle": "NCLOB"}}, {"name": "create_time", "field_type": "BigIntField", "db_column": "create_time", "python_type": "int", "generated": false, "nullable": false, "unique": false, "indexed": true, "default": null, "description": "\u89c6\u9891\u53d1\u5e03\u65f6\u95f4\u6233", "docstring": null, "constraints": {"ge": -9223372036854775808, "le": 9223372036854775807}, "db_field_types": {"": "BIGINT", "oracle": "INT"}}, {"name": "liked_count", "field_type": "CharField", "db_column": "liked_count", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u89c6\u9891\u70b9\u8d5e\u6570", "docstring": null, "constraints": {"max_length": 16}, "db_field_types": {"": "VARCHAR(16)"}}, {"name": "comment_count", "field_type": "CharField", "db_column": "comment_count", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u89c6\u9891\u8bc4\u8bba\u6570", "docstring": null, "constraints": {"max_length": 16}, "db_field_types": {"": "VARCHAR(16)"}}, {"name": "share_count", "field_type": "CharField", "db_column": "share_count", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u89c6\u9891\u5206\u4eab\u6570", "docstring": null, "constraints": {"max_length": 16}, "db_field_types": {"": "VARCHAR(16)"}}, {"name": "collected_count", "field_type": "CharField", "db_column": "collected_count", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u89c6\u9891\u6536\u85cf\u6570", "docstring": null, "constraints": {"max_length": 16}, "db_field_types": {"": "VARCHAR(16)"}}, {"name": "aweme_url", "field_type": "CharField", "db_column": "aweme_url", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u89c6\u9891\u8be6\u60c5\u9875URL", "docstring": null, "constraints": {"max_length": 255}, "db_field_types": {"": "VARCHAR(255)"}}], "fk_fields": [], "backward_fk_fields": [], "o2o_fields": [], "backward_o2o_fields": [], "m2m_fields": []}, "models.DouyinAwemeComment": {"name": "models.DouyinAwemeComment", "app": "models", "table": "douyin_aweme_comment", "abstract": false, "description": "\u6296\u97f3\u89c6\u9891\u8bc4\u8bba", "docstring": null, "unique_together": [], "indexes": [], "pk_field": {"name": "id", "field_type": "IntField", "db_column": "id", "python_type": "int", "generated": true, "nullable": false, "unique": true, "indexed": true, "default": null, "description": "\u81ea\u589eID", "docstring": null, "constraints": {"ge": 1, "le": 2147483647}, "db_field_types": {"": "INT"}}, "data_fields": [{"name": "user_id", "field_type": "CharField", "db_column": "user_id", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7528\u6237ID", "docstring": null, "constraints": {"max_length": 64}, "db_field_types": {"": "VARCHAR(64)"}}, {"name": "sec_uid", "field_type": "CharField", "db_column": "sec_uid", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7528\u6237sec_uid", "docstring": null, "constraints": {"max_length": 128}, "db_field_types": {"": "VARCHAR(128)"}}, {"name": "short_user_id", "field_type": "CharField", "db_column": "short_user_id", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7528\u6237\u77edID", "docstring": null, "constraints": {"max_length": 64}, "db_field_types": {"": "VARCHAR(64)"}}, {"name": "user_unique_id", "field_type": "CharField", "db_column": "user_unique_id", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7528\u6237\u552f\u4e00ID", "docstring": null, "constraints": {"max_length": 64}, "db_field_types": {"": "VARCHAR(64)"}}, {"name": "nickname", "field_type": "CharField", "db_column": "nickname", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7528\u6237\u6635\u79f0", "docstring": null, "constraints": {"max_length": 64}, "db_field_types": {"": "VARCHAR(64)"}}, {"name": "avatar", "field_type": "CharField", "db_column": "avatar", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7528\u6237\u5934\u50cf\u5730\u5740", "docstring": null, "constraints": {"max_length": 255}, "db_field_types": {"": "VARCHAR(255)"}}, {"name": "user_signature", "field_type": "CharField", "db_column": "user_signature", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7528\u6237\u7b7e\u540d", "docstring": null, "constraints": {"max_length": 500}, "db_field_types": {"": "VARCHAR(500)"}}, {"name": "ip_location", "field_type": "CharField", "db_column": "ip_location", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u8bc4\u8bba\u65f6\u7684IP\u5730\u5740", "docstring": null, "constraints": {"max_length": 255}, "db_field_types": {"": "VARCHAR(255)"}}, {"name": "add_ts", "field_type": "BigIntField", "db_column": "add_ts", "python_type": "int", "generated": false, "nullable": false, "unique": false, "indexed": false, "default": null, "description": "\u8bb0\u5f55\u6dfb\u52a0\u65f6\u95f4\u6233", "docstring": null, "constraints": {"ge": -9223372036854775808, "le": 9223372036854775807}, "db_field_types": {"": "BIGINT", "oracle": "INT"}}, {"name": "last_modify_ts", "field_type": "BigIntField", "db_column": "last_modify_ts", "python_type": "int", "generated": false, "nullable": false, "unique": false, "indexed": false, "default": null, "description": "\u8bb0\u5f55\u6700\u540e\u4fee\u6539\u65f6\u95f4\u6233", "docstring": null, "constraints": {"ge": -9223372036854775808, "le": 9223372036854775807}, "db_field_types": {"": "BIGINT", "oracle": "INT"}}, {"name": "comment_id", "field_type": "CharField", "db_column": "comment_id", "python_type": "str", "generated": false, "nullable": false, "unique": false, "indexed": true, "default": null, "description": "\u8bc4\u8bbaID", "docstring": null, "constraints": {"max_length": 64}, "db_field_types": {"": "VARCHAR(64)"}}, {"name": "aweme_id", "field_type": "CharField", "db_column": "aweme_id", "python_type": "str", "generated": false, "nullable": false, "unique": false, "indexed": true, "default": null, "description": "\u89c6\u9891ID", "docstring": null, "constraints": {"max_length": 64}, "db_field_types": {"": "VARCHAR(64)"}}, {"name": "content", "field_type": "TextField", "db_column": "content", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u8bc4\u8bba\u5185\u5bb9", "docstring": null, "constraints": {}, "db_field_types": {"": "TEXT", "mssql": "NVARCHAR(MAX)", "mysql": "LONGTEXT", "oracle": "NCLOB"}}, {"name": "create_time", "field_type": "BigIntField", "db_column": "create_time", "python_type": "int", "generated": false, "nullable": false, "unique": false, "indexed": false, "default": null, "description": "\u8bc4\u8bba\u65f6\u95f4\u6233", "docstring": null, "constraints": {"ge": -9223372036854775808, "le": 9223372036854775807}, "db_field_types": {"": "BIGINT", "oracle": "INT"}}, {"name": "sub_comment_count", "field_type": "CharField", "db_column": "sub_comment_count", "python_type": "str", "generated": false, "nullable": false, "unique": false, "indexed": false, "default": null, "description": "\u8bc4\u8bba\u56de\u590d\u6570", "docstring": null, "constraints": {"max_length": 16}, "db_field_types": {"": "VARCHAR(16)"}}], "fk_fields": [], "backward_fk_fields": [], "o2o_fields": [], "backward_o2o_fields": [], "m2m_fields": []}, "models.BilibiliComment": {"name": "models.BilibiliComment", "app": "models", "table": "bilibili_video_comment", "abstract": false, "description": "B \u7ad9\u89c6\u9891\u8bc4\u8bba", "docstring": null, "unique_together": [], "indexes": [], "pk_field": {"name": "id", "field_type": "IntField", "db_column": "id", "python_type": "int", "generated": true, "nullable": false, "unique": true, "indexed": true, "default": null, "description": "\u81ea\u589eID", "docstring": null, "constraints": {"ge": 1, "le": 2147483647}, "db_field_types": {"": "INT"}}, "data_fields": [{"name": "user_id", "field_type": "CharField", "db_column": "user_id", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7528\u6237ID", "docstring": null, "constraints": {"max_length": 64}, "db_field_types": {"": "VARCHAR(64)"}}, {"name": "nickname", "field_type": "CharField", "db_column": "nickname", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7528\u6237\u6635\u79f0", "docstring": null, "constraints": {"max_length": 64}, "db_field_types": {"": "VARCHAR(64)"}}, {"name": "avatar", "field_type": "CharField", "db_column": "avatar", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7528\u6237\u5934\u50cf\u5730\u5740", "docstring": null, "constraints": {"max_length": 255}, "db_field_types": {"": "VARCHAR(255)"}}, {"name": "add_ts", "field_type": "BigIntField", "db_column": "add_ts", "python_type": "int", "generated": false, "nullable": false, "unique": false, "indexed": false, "default": null, "description": "\u8bb0\u5f55\u6dfb\u52a0\u65f6\u95f4\u6233", "docstring": null, "constraints": {"ge": -9223372036854775808, "le": 9223372036854775807}, "db_field_types": {"": "BIGINT", "oracle": "INT"}}, {"name": "last_modify_ts", "field_type": "BigIntField", "db_column": "last_modify_ts", "python_type": "int", "generated": false, "nullable": false, "unique": false, "indexed": false, "default": null, "description": "\u8bb0\u5f55\u6700\u540e\u4fee\u6539\u65f6\u95f4\u6233", "docstring": null, "constraints": {"ge": -9223372036854775808, "le": 9223372036854775807}, "db_field_types": {"": "BIGINT", "oracle": "INT"}}, {"name": "comment_id", "field_type": "CharField", "db_column": "comment_id", "python_type": "str", "generated": false, "nullable": false, "unique": false, "indexed": true, "default": null, "description": "\u8bc4\u8bbaID", "docstring": null, "constraints": {"max_length": 64}, "db_field_types": {"": "VARCHAR(64)"}}, {"name": "video_id", "field_type": "CharField", "db_column": "video_id", "python_type": "str", "generated": false, "nullable": false, "unique": false, "indexed": true, "default": null, "description": "\u89c6\u9891ID", "docstring": null, "constraints": {"max_length": 64}, "db_field_types": {"": "VARCHAR(64)"}}, {"name": "content", "field_type": "TextField", "db_column": "content", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u8bc4\u8bba\u5185\u5bb9", "docstring": null, "constraints": {}, "db_field_types": {"": "TEXT", "mssql": "NVARCHAR(MAX)", "mysql": "LONGTEXT", "oracle": "NCLOB"}}, {"name": "create_time", "field_type": "BigIntField", "db_column": "create_time", "python_type": "int", "generated": false, "nullable": false, "unique": false, "indexed": false, "default": null, "description": "\u8bc4\u8bba\u65f6\u95f4\u6233", "docstring": null, "constraints": {"ge": -9223372036854775808, "le": 9223372036854775807}, "db_field_types": {"": "BIGINT", "oracle": "INT"}}, {"name": "sub_comment_count", "field_type": "CharField", "db_column": "sub_comment_count", "python_type": "str", "generated": false, "nullable": false, "unique": false, "indexed": false, "default": null, "description": "\u8bc4\u8bba\u56de\u590d\u6570", "docstring": null, "constraints": {"max_length": 16}, "db_field_types": {"": "VARCHAR(16)"}}], "fk_fields": [], "backward_fk_fields": [], "o2o_fields": [], "backward_o2o_fields": [], "m2m_fields": []}, "models.BilibiliVideo": {"name": "models.BilibiliVideo", "app": "models", "table": "bilibili_video", "abstract": false, "description": "B\u7ad9\u89c6\u9891", "docstring": null, "unique_together": [], "indexes": [], "pk_field": {"name": "id", "field_type": "IntField", "db_column": "id", "python_type": "int", "generated": true, "nullable": false, "unique": true, "indexed": true, "default": null, "description": "\u81ea\u589eID", "docstring": null, "constraints": {"ge": 1, "le": 2147483647}, "db_field_types": {"": "INT"}}, "data_fields": [{"name": "user_id", "field_type": "CharField", "db_column": "user_id", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7528\u6237ID", "docstring": null, "constraints": {"max_length": 64}, "db_field_types": {"": "VARCHAR(64)"}}, {"name": "nickname", "field_type": "CharField", "db_column": "nickname", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7528\u6237\u6635\u79f0", "docstring": null, "constraints": {"max_length": 64}, "db_field_types": {"": "VARCHAR(64)"}}, {"name": "avatar", "field_type": "CharField", "db_column": "avatar", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7528\u6237\u5934\u50cf\u5730\u5740", "docstring": null, "constraints": {"max_length": 255}, "db_field_types": {"": "VARCHAR(255)"}}, {"name": "add_ts", "field_type": "BigIntField", "db_column": "add_ts", "python_type": "int", "generated": false, "nullable": false, "unique": false, "indexed": false, "default": null, "description": "\u8bb0\u5f55\u6dfb\u52a0\u65f6\u95f4\u6233", "docstring": null, "constraints": {"ge": -9223372036854775808, "le": 9223372036854775807}, "db_field_types": {"": "BIGINT", "oracle": "INT"}}, {"name": "last_modify_ts", "field_type": "BigIntField", "db_column": "last_modify_ts", "python_type": "int", "generated": false, "nullable": false, "unique": false, "indexed": false, "default": null, "description": "\u8bb0\u5f55\u6700\u540e\u4fee\u6539\u65f6\u95f4\u6233", "docstring": null, "constraints": {"ge": -9223372036854775808, "le": 9223372036854775807}, "db_field_types": {"": "BIGINT", "oracle": "INT"}}, {"name": "video_id", "field_type": "CharField", "db_column": "video_id", "python_type": "str", "generated": false, "nullable": false, "unique": false, "indexed": true, "default": null, "description": "\u89c6\u9891ID", "docstring": null, "constraints": {"max_length": 64}, "db_field_types": {"": "VARCHAR(64)"}}, {"name": "video_type", "field_type": "CharField", "db_column": "video_type", "python_type": "str", "generated": false, "nullable": false, "unique": false, "indexed": false, "default": null, "description": "\u89c6\u9891\u7c7b\u578b", "docstring": null, "constraints": {"max_length": 16}, "db_field_types": {"": "VARCHAR(16)"}}, {"name": "title", "field_type": "CharField", "db_column": "title", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u89c6\u9891\u6807\u9898", "docstring": null, "constraints": {"max_length": 500}, "db_field_types": {"": "VARCHAR(500)"}}, {"name": "desc", "field_type": "TextField", "db_column": "desc", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u89c6\u9891\u63cf\u8ff0", "docstring": null, "constraints": {}, "db_field_types": {"": "TEXT", "mssql": "NVARCHAR(MAX)", "mysql": "LONGTEXT", "oracle": "NCLOB"}}, {"name": "create_time", "field_type": "BigIntField", "db_column": "create_time", "python_type": "int", "generated": false, "nullable": false, "unique": false, "indexed": true, "default": null, "description": "\u89c6\u9891\u53d1\u5e03\u65f6\u95f4\u6233", "docstring": null, "constraints": {"ge": -9223372036854775808, "le": 9223372036854775807}, "db_field_types": {"": "BIGINT", "oracle": "INT"}}, {"name": "liked_count", "field_type": "CharField", "db_column": "liked_count", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u89c6\u9891\u70b9\u8d5e\u6570", "docstring": null, "constraints": {"max_length": 16}, "db_field_types": {"": "VARCHAR(16)"}}, {"name": "video_play_count", "field_type": "CharField", "db_column": "video_play_count", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u89c6\u9891\u64ad\u653e\u6570\u91cf", "docstring": null, "constraints": {"max_length": 16}, "db_field_types": {"": "VARCHAR(16)"}}, {"name": "video_danmaku", "field_type": "CharField", "db_column": "video_danmaku", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u89c6\u9891\u5f39\u5e55\u6570\u91cf", "docstring": null, "constraints": {"max_length": 16}, "db_field_types": {"": "VARCHAR(16)"}}, {"name": "video_comment", "field_type": "CharField", "db_column": "video_comment", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u89c6\u9891\u8bc4\u8bba\u6570\u91cf", "docstring": null, "constraints": {"max_length": 16}, "db_field_types": {"": "VARCHAR(16)"}}, {"name": "video_url", "field_type": "CharField", "db_column": "video_url", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u89c6\u9891\u8be6\u60c5URL", "docstring": null, "constraints": {"max_length": 512}, "db_field_types": {"": "VARCHAR(512)"}}, {"name": "video_cover_url", "field_type": "CharField", "db_column": "video_cover_url", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u89c6\u9891\u5c01\u9762\u56fe URL", "docstring": null, "constraints": {"max_length": 512}, "db_field_types": {"": "VARCHAR(512)"}}], "fk_fields": [], "backward_fk_fields": [], "o2o_fields": [], "backward_o2o_fields": [], "m2m_fields": []}, "models.KuaishouVideo": {"name": "models.KuaishouVideo", "app": "models", "table": "kuaishou_video", "abstract": false, "description": "\u5feb\u624b\u89c6\u9891", "docstring": null, "unique_together": [], "indexes": [], "pk_field": {"name": "id", "field_type": "IntField", "db_column": "id", "python_type": "int", "generated": true, "nullable": false, "unique": true, "indexed": true, "default": null, "description": "\u81ea\u589eID", "docstring": null, "constraints": {"ge": 1, "le": 2147483647}, "db_field_types": {"": "INT"}}, "data_fields": [{"name": "user_id", "field_type": "CharField", "db_column": "user_id", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7528\u6237ID", "docstring": null, "constraints": {"max_length": 64}, "db_field_types": {"": "VARCHAR(64)"}}, {"name": "nickname", "field_type": "CharField", "db_column": "nickname", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7528\u6237\u6635\u79f0", "docstring": null, "constraints": {"max_length": 64}, "db_field_types": {"": "VARCHAR(64)"}}, {"name": "avatar", "field_type": "CharField", "db_column": "avatar", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7528\u6237\u5934\u50cf\u5730\u5740", "docstring": null, "constraints": {"max_length": 255}, "db_field_types": {"": "VARCHAR(255)"}}, {"name": "add_ts", "field_type": "BigIntField", "db_column": "add_ts", "python_type": "int", "generated": false, "nullable": false, "unique": false, "indexed": false, "default": null, "description": "\u8bb0\u5f55\u6dfb\u52a0\u65f6\u95f4\u6233", "docstring": null, "constraints": {"ge": -9223372036854775808, "le": 9223372036854775807}, "db_field_types": {"": "BIGINT", "oracle": "INT"}}, {"name": "last_modify_ts", "field_type": "BigIntField", "db_column": "last_modify_ts", "python_type": "int", "generated": false, "nullable": false, "unique": false, "indexed": false, "default": null, "description": "\u8bb0\u5f55\u6700\u540e\u4fee\u6539\u65f6\u95f4\u6233", "docstring": null, "constraints": {"ge": -9223372036854775808, "le": 9223372036854775807}, "db_field_types": {"": "BIGINT", "oracle": "INT"}}, {"name": "video_id", "field_type": "CharField", "db_column": "video_id", "python_type": "str", "generated": false, "nullable": false, "unique": false, "indexed": true, "default": null, "description": "\u89c6\u9891ID", "docstring": null, "constraints": {"max_length": 64}, "db_field_types": {"": "VARCHAR(64)"}}, {"name": "video_type", "field_type": "CharField", "db_column": "video_type", "python_type": "str", "generated": false, "nullable": false, "unique": false, "indexed": false, "default": null, "description": "\u89c6\u9891\u7c7b\u578b", "docstring": null, "constraints": {"max_length": 16}, "db_field_types": {"": "VARCHAR(16)"}}, {"name": "title", "field_type": "CharField", "db_column": "title", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u89c6\u9891\u6807\u9898", "docstring": null, "constraints": {"max_length": 500}, "db_field_types": {"": "VARCHAR(500)"}}, {"name": "desc", "field_type": "TextField", "db_column": "desc", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u89c6\u9891\u63cf\u8ff0", "docstring": null, "constraints": {}, "db_field_types": {"": "TEXT", "mssql": "NVARCHAR(MAX)", "mysql": "LONGTEXT", "oracle": "NCLOB"}}, {"name": "create_time", "field_type": "BigIntField", "db_column": "create_time", "python_type": "int", "generated": false, "nullable": false, "unique": false, "indexed": true, "default": null, "description": "\u89c6\u9891\u53d1\u5e03\u65f6\u95f4\u6233", "docstring": null, "constraints": {"ge": -9223372036854775808, "le": 9223372036854775807}, "db_field_types": {"": "BIGINT", "oracle": "INT"}}, {"name": "liked_count", "field_type": "CharField", "db_column": "liked_count", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u89c6\u9891\u70b9\u8d5e\u6570", "docstring": null, "constraints": {"max_length": 16}, "db_field_types": {"": "VARCHAR(16)"}}, {"name": "viewd_count", "field_type": "CharField", "db_column": "viewd_count", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u89c6\u9891\u6d4f\u89c8\u6570\u91cf", "docstring": null, "constraints": {"max_length": 16}, "db_field_types": {"": "VARCHAR(16)"}}, {"name": "video_url", "field_type": "CharField", "db_column": "video_url", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u89c6\u9891\u8be6\u60c5URL", "docstring": null, "constraints": {"max_length": 512}, "db_field_types": {"": "VARCHAR(512)"}}, {"name": "video_cover_url", "field_type": "CharField", "db_column": "video_cover_url", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u89c6\u9891\u5c01\u9762\u56fe URL", "docstring": null, "constraints": {"max_length": 512}, "db_field_types": {"": "VARCHAR(512)"}}, {"name": "video_play_url", "field_type": "CharField", "db_column": "video_play_url", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u89c6\u9891\u64ad\u653e URL", "docstring": null, "constraints": {"max_length": 512}, "db_field_types": {"": "VARCHAR(512)"}}], "fk_fields": [], "backward_fk_fields": [], "o2o_fields": [], "backward_o2o_fields": [], "m2m_fields": []}, "models.KuaishouVideoComment": {"name": "models.KuaishouVideoComment", "app": "models", "table": "kuaishou_video_comment", "abstract": false, "description": "\u5feb\u624b\u89c6\u9891\u8bc4\u8bba", "docstring": null, "unique_together": [], "indexes": [], "pk_field": {"name": "id", "field_type": "IntField", "db_column": "id", "python_type": "int", "generated": true, "nullable": false, "unique": true, "indexed": true, "default": null, "description": "\u81ea\u589eID", "docstring": null, "constraints": {"ge": 1, "le": 2147483647}, "db_field_types": {"": "INT"}}, "data_fields": [{"name": "user_id", "field_type": "CharField", "db_column": "user_id", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7528\u6237ID", "docstring": null, "constraints": {"max_length": 64}, "db_field_types": {"": "VARCHAR(64)"}}, {"name": "nickname", "field_type": "CharField", "db_column": "nickname", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7528\u6237\u6635\u79f0", "docstring": null, "constraints": {"max_length": 64}, "db_field_types": {"": "VARCHAR(64)"}}, {"name": "avatar", "field_type": "CharField", "db_column": "avatar", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7528\u6237\u5934\u50cf\u5730\u5740", "docstring": null, "constraints": {"max_length": 255}, "db_field_types": {"": "VARCHAR(255)"}}, {"name": "add_ts", "field_type": "BigIntField", "db_column": "add_ts", "python_type": "int", "generated": false, "nullable": false, "unique": false, "indexed": false, "default": null, "description": "\u8bb0\u5f55\u6dfb\u52a0\u65f6\u95f4\u6233", "docstring": null, "constraints": {"ge": -9223372036854775808, "le": 9223372036854775807}, "db_field_types": {"": "BIGINT", "oracle": "INT"}}, {"name": "last_modify_ts", "field_type": "BigIntField", "db_column": "last_modify_ts", "python_type": "int", "generated": false, "nullable": false, "unique": false, "indexed": false, "default": null, "description": "\u8bb0\u5f55\u6700\u540e\u4fee\u6539\u65f6\u95f4\u6233", "docstring": null, "constraints": {"ge": -9223372036854775808, "le": 9223372036854775807}, "db_field_types": {"": "BIGINT", "oracle": "INT"}}, {"name": "comment_id", "field_type": "CharField", "db_column": "comment_id", "python_type": "str", "generated": false, "nullable": false, "unique": false, "indexed": true, "default": null, "description": "\u8bc4\u8bbaID", "docstring": null, "constraints": {"max_length": 64}, "db_field_types": {"": "VARCHAR(64)"}}, {"name": "video_id", "field_type": "CharField", "db_column": "video_id", "python_type": "str", "generated": false, "nullable": false, "unique": false, "indexed": true, "default": null, "description": "\u89c6\u9891ID", "docstring": null, "constraints": {"max_length": 64}, "db_field_types": {"": "VARCHAR(64)"}}, {"name": "content", "field_type": "TextField", "db_column": "content", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u8bc4\u8bba\u5185\u5bb9", "docstring": null, "constraints": {}, "db_field_types": {"": "TEXT", "mssql": "NVARCHAR(MAX)", "mysql": "LONGTEXT", "oracle": "NCLOB"}}, {"name": "create_time", "field_type": "BigIntField", "db_column": "create_time", "python_type": "int", "generated": false, "nullable": false, "unique": false, "indexed": false, "default": null, "description": "\u8bc4\u8bba\u65f6\u95f4\u6233", "docstring": null, "constraints": {"ge": -9223372036854775808, "le": 9223372036854775807}, "db_field_types": {"": "BIGINT", "oracle": "INT"}}, {"name": "sub_comment_count", "field_type": "CharField", "db_column": "sub_comment_count", "python_type": "str", "generated": false, "nullable": false, "unique": false, "indexed": false, "default": null, "description": "\u8bc4\u8bba\u56de\u590d\u6570", "docstring": null, "constraints": {"max_length": 16}, "db_field_types": {"": "VARCHAR(16)"}}], "fk_fields": [], "backward_fk_fields": [], "o2o_fields": [], "backward_o2o_fields": [], "m2m_fields": []}, "models.WeiboComment": {"name": "models.WeiboComment", "app": "models", "table": "weibo_note_comment", "abstract": false, "description": "\u5fae\u535a\u5e16\u5b50\u8bc4\u8bba", "docstring": null, "unique_together": [], "indexes": [], "pk_field": {"name": "id", "field_type": "IntField", "db_column": "id", "python_type": "int", "generated": true, "nullable": false, "unique": true, "indexed": true, "default": null, "description": "\u81ea\u589eID", "docstring": null, "constraints": {"ge": 1, "le": 2147483647}, "db_field_types": {"": "INT"}}, "data_fields": [{"name": "user_id", "field_type": "CharField", "db_column": "user_id", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7528\u6237ID", "docstring": null, "constraints": {"max_length": 64}, "db_field_types": {"": "VARCHAR(64)"}}, {"name": "nickname", "field_type": "CharField", "db_column": "nickname", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7528\u6237\u6635\u79f0", "docstring": null, "constraints": {"max_length": 64}, "db_field_types": {"": "VARCHAR(64)"}}, {"name": "avatar", "field_type": "CharField", "db_column": "avatar", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7528\u6237\u5934\u50cf\u5730\u5740", "docstring": null, "constraints": {"max_length": 255}, "db_field_types": {"": "VARCHAR(255)"}}, {"name": "gender", "field_type": "CharField", "db_column": "gender", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7528\u6237\u6027\u522b", "docstring": null, "constraints": {"max_length": 12}, "db_field_types": {"": "VARCHAR(12)"}}, {"name": "profile_url", "field_type": "CharField", "db_column": "profile_url", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7528\u6237\u4e3b\u9875\u5730\u5740", "docstring": null, "constraints": {"max_length": 255}, "db_field_types": {"": "VARCHAR(255)"}}, {"name": "ip_location", "field_type": "CharField", "db_column": "ip_location", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": "\u53d1\u5e03\u5fae\u535a\u7684\u5730\u7406\u4fe1\u606f", "description": null, "docstring": null, "constraints": {"max_length": 32}, "db_field_types": {"": "VARCHAR(32)"}}, {"name": "add_ts", "field_type": "BigIntField", "db_column": "add_ts", "python_type": "int", "generated": false, "nullable": false, "unique": false, "indexed": false, "default": null, "description": "\u8bb0\u5f55\u6dfb\u52a0\u65f6\u95f4\u6233", "docstring": null, "constraints": {"ge": -9223372036854775808, "le": 9223372036854775807}, "db_field_types": {"": "BIGINT", "oracle": "INT"}}, {"name": "last_modify_ts", "field_type": "BigIntField", "db_column": "last_modify_ts", "python_type": "int", "generated": false, "nullable": false, "unique": false, "indexed": false, "default": null, "description": "\u8bb0\u5f55\u6700\u540e\u4fee\u6539\u65f6\u95f4\u6233", "docstring": null, "constraints": {"ge": -9223372036854775808, "le": 9223372036854775807}, "db_field_types": {"": "BIGINT", "oracle": "INT"}}, {"name": "comment_id", "field_type": "CharField", "db_column": "comment_id", "python_type": "str", "generated": false, "nullable": false, "unique": false, "indexed": true, "default": null, "description": "\u8bc4\u8bbaID", "docstring": null, "constraints": {"max_length": 64}, "db_field_types": {"": "VARCHAR(64)"}}, {"name": "note_id", "field_type": "CharField", "db_column": "note_id", "python_type": "str", "generated": false, "nullable": false, "unique": false, "indexed": true, "default": null, "description": "\u5e16\u5b50ID", "docstring": null, "constraints": {"max_length": 64}, "db_field_types": {"": "VARCHAR(64)"}}, {"name": "content", "field_type": "TextField", "db_column": "content", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u8bc4\u8bba\u5185\u5bb9", "docstring": null, "constraints": {}, "db_field_types": {"": "TEXT", "mssql": "NVARCHAR(MAX)", "mysql": "LONGTEXT", "oracle": "NCLOB"}}, {"name": "create_time", "field_type": "BigIntField", "db_column": "create_time", "python_type": "int", "generated": false, "nullable": false, "unique": false, "indexed": false, "default": null, "description": "\u8bc4\u8bba\u65f6\u95f4\u6233", "docstring": null, "constraints": {"ge": -9223372036854775808, "le": 9223372036854775807}, "db_field_types": {"": "BIGINT", "oracle": "INT"}}, {"name": "create_date_time", "field_type": "CharField", "db_column": "create_date_time", "python_type": "str", "generated": false, "nullable": false, "unique": false, "indexed": true, "default": null, "description": "\u8bc4\u8bba\u65e5\u671f\u65f6\u95f4", "docstring": null, "constraints": {"max_length": 32}, "db_field_types": {"": "VARCHAR(32)"}}, {"name": "comment_like_count", "field_type": "CharField", "db_column": "comment_like_count", "python_type": "str", "generated": false, "nullable": false, "unique": false, "indexed": false, "default": null, "description": "\u8bc4\u8bba\u70b9\u8d5e\u6570\u91cf", "docstring": null, "constraints": {"max_length": 16}, "db_field_types": {"": "VARCHAR(16)"}}, {"name": "sub_comment_count", "field_type": "CharField", "db_column": "sub_comment_count", "python_type": "str", "generated": false, "nullable": false, "unique": false, "indexed": false, "default": null, "description": "\u8bc4\u8bba\u56de\u590d\u6570", "docstring": null, "constraints": {"max_length": 16}, "db_field_types": {"": "VARCHAR(16)"}}], "fk_fields": [], "backward_fk_fields": [], "o2o_fields": [], "backward_o2o_fields": [], "m2m_fields": []}, "models.WeiboNote": {"name": "models.WeiboNote", "app": "models", "table": "weibo_note", "abstract": false, "description": "\u5fae\u535a\u5e16\u5b50", "docstring": null, "unique_together": [], "indexes": [], "pk_field": {"name": "id", "field_type": "IntField", "db_column": "id", "python_type": "int", "generated": true, "nullable": false, "unique": true, "indexed": true, "default": null, "description": "\u81ea\u589eID", "docstring": null, "constraints": {"ge": 1, "le": 2147483647}, "db_field_types": {"": "INT"}}, "data_fields": [{"name": "user_id", "field_type": "CharField", "db_column": "user_id", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7528\u6237ID", "docstring": null, "constraints": {"max_length": 64}, "db_field_types": {"": "VARCHAR(64)"}}, {"name": "nickname", "field_type": "CharField", "db_column": "nickname", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7528\u6237\u6635\u79f0", "docstring": null, "constraints": {"max_length": 64}, "db_field_types": {"": "VARCHAR(64)"}}, {"name": "avatar", "field_type": "CharField", "db_column": "avatar", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7528\u6237\u5934\u50cf\u5730\u5740", "docstring": null, "constraints": {"max_length": 255}, "db_field_types": {"": "VARCHAR(255)"}}, {"name": "gender", "field_type": "CharField", "db_column": "gender", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7528\u6237\u6027\u522b", "docstring": null, "constraints": {"max_length": 12}, "db_field_types": {"": "VARCHAR(12)"}}, {"name": "profile_url", "field_type": "CharField", "db_column": "profile_url", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u7528\u6237\u4e3b\u9875\u5730\u5740", "docstring": null, "constraints": {"max_length": 255}, "db_field_types": {"": "VARCHAR(255)"}}, {"name": "ip_location", "field_type": "CharField", "db_column": "ip_location", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": "\u53d1\u5e03\u5fae\u535a\u7684\u5730\u7406\u4fe1\u606f", "description": null, "docstring": null, "constraints": {"max_length": 32}, "db_field_types": {"": "VARCHAR(32)"}}, {"name": "add_ts", "field_type": "BigIntField", "db_column": "add_ts", "python_type": "int", "generated": false, "nullable": false, "unique": false, "indexed": false, "default": null, "description": "\u8bb0\u5f55\u6dfb\u52a0\u65f6\u95f4\u6233", "docstring": null, "constraints": {"ge": -9223372036854775808, "le": 9223372036854775807}, "db_field_types": {"": "BIGINT", "oracle": "INT"}}, {"name": "last_modify_ts", "field_type": "BigIntField", "db_column": "last_modify_ts", "python_type": "int", "generated": false, "nullable": false, "unique": false, "indexed": false, "default": null, "description": "\u8bb0\u5f55\u6700\u540e\u4fee\u6539\u65f6\u95f4\u6233", "docstring": null, "constraints": {"ge": -9223372036854775808, "le": 9223372036854775807}, "db_field_types": {"": "BIGINT", "oracle": "INT"}}, {"name": "note_id", "field_type": "CharField", "db_column": "note_id", "python_type": "str", "generated": false, "nullable": false, "unique": false, "indexed": true, "default": null, "description": "\u5e16\u5b50ID", "docstring": null, "constraints": {"max_length": 64}, "db_field_types": {"": "VARCHAR(64)"}}, {"name": "content", "field_type": "TextField", "db_column": "content", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u5e16\u5b50\u6b63\u6587\u5185\u5bb9", "docstring": null, "constraints": {}, "db_field_types": {"": "TEXT", "mssql": "NVARCHAR(MAX)", "mysql": "LONGTEXT", "oracle": "NCLOB"}}, {"name": "create_time", "field_type": "BigIntField", "db_column": "create_time", "python_type": "int", "generated": false, "nullable": false, "unique": false, "indexed": true, "default": null, "description": "\u5e16\u5b50\u53d1\u5e03\u65f6\u95f4\u6233", "docstring": null, "constraints": {"ge": -9223372036854775808, "le": 9223372036854775807}, "db_field_types": {"": "BIGINT", "oracle": "INT"}}, {"name": "create_date_time", "field_type": "CharField", "db_column": "create_date_time", "python_type": "str", "generated": false, "nullable": false, "unique": false, "indexed": true, "default": null, "description": "\u5e16\u5b50\u53d1\u5e03\u65e5\u671f\u65f6\u95f4", "docstring": null, "constraints": {"max_length": 32}, "db_field_types": {"": "VARCHAR(32)"}}, {"name": "liked_count", "field_type": "CharField", "db_column": "liked_count", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u5e16\u5b50\u70b9\u8d5e\u6570", "docstring": null, "constraints": {"max_length": 16}, "db_field_types": {"": "VARCHAR(16)"}}, {"name": "comments_count", "field_type": "CharField", "db_column": "comments_count", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u5e16\u5b50\u8bc4\u8bba\u6570\u91cf", "docstring": null, "constraints": {"max_length": 16}, "db_field_types": {"": "VARCHAR(16)"}}, {"name": "shared_count", "field_type": "CharField", "db_column": "shared_count", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u5e16\u5b50\u8f6c\u53d1\u6570\u91cf", "docstring": null, "constraints": {"max_length": 16}, "db_field_types": {"": "VARCHAR(16)"}}, {"name": "note_url", "field_type": "CharField", "db_column": "note_url", "python_type": "str", "generated": false, "nullable": true, "unique": false, "indexed": false, "default": null, "description": "\u5e16\u5b50\u8be6\u60c5URL", "docstring": null, "constraints": {"max_length": 512}, "db_field_types": {"": "VARCHAR(512)"}}], "fk_fields": [], "backward_fk_fields": [], "o2o_fields": [], "backward_o2o_fields": [], "m2m_fields": []}}');""", []) if __name__ == '__main__': run_async(init())