model
class UserInfo(models.Model): username = models.CharField(max_length=32, unique=True, error_messages={'unique': '用户已经存在'}, verbose_name="用户名") password = models.CharField(max_length=128, verbose_name="密码") token = models.CharField(max_length=64, null=True, blank=True, verbose_name="token") update_time = models.DateTimeField(auto_now=True, verbose_name="最后更新时间") role = models.ForeignKey(Role, null=True, blank=True, on_delete=models.SET_NULL, related_name='user', verbose_name="角色")