from django.db import models from django.utils.translation import gettext_lazy as _ class UserGrowthTrending(models.Model): month = models.DateField(help_text=_( 'Express target month as the first day of this month, like `2020-03-01` => `2020-03`')) count = models.IntegerField(default=0) updated_at = models.DateTimeField(auto_now=True) class Meta: db_table = 'user_growth_trending'