Entity.TrackEAttempt.dcm.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. Entity\TrackEAttempt:
  2. type: entity
  3. table: track_e_attempt
  4. repositoryClass: Entity\Repository\TrackEAttemptRepository
  5. fields:
  6. id:
  7. id: true
  8. type: integer
  9. unsigned: false
  10. nullable: false
  11. generator:
  12. strategy: IDENTITY
  13. exe_id:
  14. type: integer
  15. unsigned: false
  16. nullable: true
  17. user_id:
  18. type: integer
  19. unsigned: false
  20. nullable: false
  21. question_id:
  22. type: integer
  23. unsigned: false
  24. nullable: false
  25. answer:
  26. type: text
  27. nullable: false
  28. teacher_comment:
  29. type: text
  30. nullable: false
  31. marks:
  32. type: float
  33. nullable: false
  34. course_code:
  35. type: string
  36. length: 40
  37. fixed: false
  38. nullable: false
  39. position:
  40. type: integer
  41. unsigned: false
  42. nullable: true
  43. tms:
  44. type: datetime
  45. nullable: false
  46. session_id:
  47. type: integer
  48. unsigned: false
  49. nullable: false
  50. filename:
  51. type: string
  52. length: 255
  53. fixed: false
  54. nullable: true
  55. lifecycleCallbacks:
  56. prePersist:
  57. - before_save