{ "summary": [ { "name": "customers", "title": "客户档案表", "primary": "id", "catelog": "entity" } ], "fields": [ { "name": "id", "title": "客户ID", "type": "str", "length": 32, "nullable": "no", "comments": "主键 - UUID格式" }, { "name": "customer_name", "title": "客户名称", "type": "str", "length": 255, "nullable": "no", "comments": "客户公司名称或个人姓名" }, { "name": "customer_type", "title": "客户类型", "type": "str", "length": 20, "nullable": "no", "comments": "客户类型:individual=个人, enterprise=企业" }, { "name": "phone", "title": "手机号", "type": "str", "length": 20, "nullable": "yes", "comments": "客户手机号码" }, { "name": "email", "title": "邮箱", "type": "str", "length": 255, "nullable": "yes", "comments": "客户邮箱地址" }, { "name": "tax_id", "title": "企业税号", "type": "str", "length": 50, "nullable": "yes", "comments": "企业统一社会信用代码或税号" }, { "name": "industry", "title": "所属行业", "type": "str", "length": 100, "nullable": "yes", "comments": "客户所属行业" }, { "name": "customer_level", "title": "分级标签", "type": "str", "length": 20, "nullable": "no", "default": "potential", "comments": "客户分级:important=重要, normal=普通, potential=潜在" }, { "name": "address", "title": "地址", "type": "text", "nullable": "yes", "comments": "客户详细地址" }, { "name": "owner_id", "title": "负责人ID", "type": "str", "length": 32, "nullable": "no", "comments": "当前负责该客户的销售人员ID" }, { "name": "region", "title": "区域", "type": "str", "length": 100, "nullable": "yes", "comments": "客户所在区域" }, { "name": "last_follow_up", "title": "最后跟进时间", "type": "timestamp", "nullable": "yes", "comments": "最后一次跟进时间" }, { "name": "created_at", "title": "创建时间", "type": "timestamp", "nullable": "no", "comments": "客户档案创建时间" }, { "name": "updated_at", "title": "更新时间", "type": "timestamp", "nullable": "no", "comments": "最后更新时间" }, { "name": "status", "title": "状态", "type": "str", "length": 20, "nullable": "no", "default": "active", "comments": "客户状态:active=活跃, inactive=非活跃, in_pool=公海" } ], "indexes": [ { "name": "idx_customers_phone", "idxtype": "unique", "idxfields": ["phone"] }, { "name": "idx_customers_tax_id", "idxtype": "unique", "idxfields": ["tax_id"] }, { "name": "idx_customers_owner", "idxtype": "index", "idxfields": ["owner_id"] }, { "name": "idx_customers_name", "idxtype": "index", "idxfields": ["customer_name"] }, { "name": "idx_customers_level", "idxtype": "index", "idxfields": ["customer_level"] }, { "name": "idx_customers_status", "idxtype": "index", "idxfields": ["status"] }, { "name": "idx_customers_last_follow", "idxtype": "index", "idxfields": ["last_follow_up"] } ] }