models.py 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. from django.db import models
  2. # Create your models here.
  3. class ExamImage(models.Model):
  4. raw_name = models.CharField(max_length=150, null=True)
  5. subject_id = models.IntegerField()
  6. subject = models.CharField(max_length=20, default='unknown_subject')
  7. upload_date = models.DateField('保存日期')
  8. save_path = models.CharField(max_length=150, null=False)
  9. class OcrToken(models.Model):
  10. update_time = models.DateTimeField('更新日期', auto_now=True)
  11. access_token = models.CharField(max_length=150, null=True)
  12. class SheetBigBoxes(models.Model):
  13. update_time = models.DateTimeField('更新日期', auto_now=True)
  14. series_number = models.CharField(max_length=100, null=True)
  15. raw_name = models.CharField(max_length=100, null=True)
  16. small_box_path = models.CharField(max_length=100, null=True)
  17. subject_id = models.IntegerField(default=0)
  18. save_path = models.CharField(max_length=100, null=True)
  19. raw_big_box_path = models.CharField(max_length=100, null=True)
  20. subject = models.CharField(max_length=20, default='unknown_subject')
  21. class SheetBoxes(models.Model):
  22. update_time = models.DateTimeField('更新日期', auto_now=True)
  23. paper_id = models.CharField(max_length=100, primary_key=True)
  24. raw_name = models.CharField(max_length=100, null=True)
  25. subject_id = models.IntegerField(default=0)
  26. subject = models.CharField(max_length=20, default='unknown_subject')
  27. save_path = models.CharField(max_length=100, null=True)
  28. xml_box_path = models.CharField(max_length=100, null=True)
  29. download_path = models.CharField(max_length=100, default='')