old_contents: from django.db import models
  from django.contrib.auth.models import User
  from django.contrib.postgres.fields import JSONField
  from .Currency import Currency
  
  # Create your models here.
  
  class Ticket(models.Model):
      name = models.CharField(max_length=127)
      price = models.PositiveIntegerField()
      detail = models.TextField(max_length=1023)
      expire_date = models.DateField() #วันหมดอายุของคูปอง
      is_period = models.BooleanField()
      remaining_day = models.PositiveIntegerField(null=True) #จำนวนวันที่คูปองสามารถใช้งานได้ นับตั้งแต่การซื้อ
      is_limit = models.BooleanField()
      remain = models.IntegerField(null=True)  #จำนวนที่ยังเหลืออยู่
      currency = models.ForeignKey(Currency, on_delete=models.CASCADE)
      store = models.ForeignKey(User, on_delete=models.CASCADE)
      ticket_image_url = models.CharField(max_length=1023, null=True)
      content_image_url = models.CharField(max_length=1023, null=True)
      attribute = JSONField(default = dict())
      available = models.BooleanField(default=True)
  
new_contents: from django.db import models
  from django.contrib.auth.models import User
  from django.contrib.postgres.fields import JSONField
  from .Currency import Currency
  
  # Create your models here.
  
  class Ticket(models.Model):
      name = models.CharField(max_length=127)
      price = models.PositiveIntegerField()
      detail = models.TextField(max_length=1023)
      expire_date = models.DateField() #วันหมดอายุของคูปอง
      is_period = models.BooleanField()
      remaining_day = models.PositiveIntegerField(null=True) #จำนวนวันที่คูปองสามารถใช้งานได้ นับตั้งแต่การซื้อ
      is_limit = models.BooleanField()
      remain = models.IntegerField(null=True)  #จำนวนที่ยังเหลืออยู่
      currency = models.ForeignKey(Currency, on_delete=models.CASCADE)
      store = models.ForeignKey(User, on_delete=models.CASCADE)
      ticket_image_url = models.CharField(max_length=1023, null=True)
      content_image_url = models.CharField(max_length=1023, null=True)
      attribute = JSONField(default = dict())
      available = models.BooleanField(default=True)
      stat = JSONField(default=dict())
      raw_stat = JSONField(default=dict())
  
subject: add stat field and raw_stat field to Ticket