from django.db import models from django.conf import settings class Evangelist(models.Model): user = models.OneToOneField( settings.AUTH_USER_MODEL, on_delete=models.DO_NOTHING, blank=True, null=True ) asktug_honor_badges = models.JSONField(default=list) comment = models.TextField(blank=True, null=True) join_at = models.DateTimeField(blank=True, null=True) updated_at = models.DateTimeField(auto_now=True) created_at = models.DateTimeField(auto_now_add=True) class Meta: db_table = 'pingcap_evangelists' ordering = ['-join_at']