MCPcopy Create free account
hub / github.com/binkuolo/fastapi / UserWechat

Class UserWechat

models/base.py:20–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18
19
20class 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
37class User(TimestampMixin):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected