xhTrainStudent.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?php
  2. namespace common\models;
  3. /**
  4. * This is the model class for table "xhTrainStudent".
  5. *
  6. * @property int $id 自增id
  7. * @property int $userId 用户id
  8. * @property int $merchantId
  9. * @property string $uniqueQrCode 二维码地址
  10. * @property string $avatar 学员头像,方便老师认人
  11. * @property int $registerTime 报名时间
  12. * @property int $classId 报名班级
  13. * @property int $praiseNum 集赞数量
  14. * @property int $learnStatus 0学习中 1毕业 2退学
  15. * @property int $point 升级型积分
  16. * @property int $integral 可兑换型积分
  17. * @property int $lesson 节课数
  18. * @property string $className 课名
  19. * @property string $tuition 学费
  20. * @property int $addTime 创建时间
  21. * @property int $modTime 修改时间
  22. */
  23. class xhTrainStudent extends xhBaseModel
  24. {
  25. /**
  26. * @inheritdoc
  27. */
  28. public static function tableName()
  29. {
  30. return 'xhTrainStudent';
  31. }
  32. /**
  33. * @inheritdoc
  34. */
  35. public function rules()
  36. {
  37. return [
  38. [['userId', 'merchantId', 'registerTime', 'classId', 'praiseNum', 'learnStatus', 'point', 'integral', 'lesson', 'addTime', 'modTime'], 'integer'],
  39. [['tuition'], 'number'],
  40. [['uniqueQrCode', 'avatar'], 'string', 'max' => 200],
  41. [['className'], 'string', 'max' => 30],
  42. ];
  43. }
  44. /**
  45. * @inheritdoc
  46. */
  47. public function attributeLabels()
  48. {
  49. return [
  50. 'id' => 'ID',
  51. 'userId' => 'User ID',
  52. 'merchantId' => 'Merchant ID',
  53. 'uniqueQrCode' => 'Unique Qr Code',
  54. 'avatar' => 'Avatar',
  55. 'registerTime' => 'Register Time',
  56. 'classId' => 'Class ID',
  57. 'praiseNum' => 'Praise Num',
  58. 'learnStatus' => 'Learn Status',
  59. 'point' => 'Point',
  60. 'integral' => 'Integral',
  61. 'lesson' => 'Lesson',
  62. 'className' => 'Class Name',
  63. 'tuition' => 'Tuition',
  64. 'addTime' => 'Add Time',
  65. 'modTime' => 'Mod Time',
  66. ];
  67. }
  68. }