| 18 | |
| 19 | |
| 20 | class UserWechat(TimestampMixin): |
| 21 | city = fields.CharField(null=True, max_length=255, description='城市') |
| 22 | country = fields.CharField(null=True, max_length=255, description='国家') |
| 23 | headimgurl = fields.CharField(null=True, max_length=255, description='微信头像') |
| 24 | nickname = fields.CharField(null=True, max_length=255, description='微信昵称') |
| 25 | openid = fields.CharField(unique=True, max_length=255, description='openid') |
| 26 | unionid = fields.CharField(unique=True, null=True, max_length=255, description='unionid') |
| 27 | province = fields.CharField(null=True, max_length=255, description='省份') |
| 28 | sex = fields.IntField(null=True, description='性别') |
| 29 | user: fields.OneToOneRelation["UserWechat"] = \ |
| 30 | fields.OneToOneField("base.User", related_name="wechat", on_delete=fields.CASCADE) |
| 31 | |
| 32 | class Meta: |
| 33 | table_description = "用户微信" |
| 34 | table = "user_wechat" |
| 35 | |
| 36 | |
| 37 | class User(TimestampMixin): |
nothing calls this directly
no outgoing calls
no test coverage detected