xhTrainClass.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. namespace common\models;
  3. /**
  4. * This is the model class for table "xhTrainClass".
  5. *
  6. * @property integer $id
  7. * @property string $name
  8. * @property string $tuition
  9. * @property integer $lesson
  10. * @property string $summary
  11. * @property string $intro
  12. * @property integer $merchantId
  13. * @property integer $addTime
  14. * @property integer $modTime
  15. * @property string $createTime
  16. * @property string $updateTime
  17. */
  18. class xhTrainClass extends xhBaseModel
  19. {
  20. /**
  21. * @inheritdoc
  22. */
  23. public static function tableName()
  24. {
  25. return 'xhTrainClass';
  26. }
  27. /**
  28. * @inheritdoc
  29. */
  30. public function rules()
  31. {
  32. return [
  33. [['tuition'], 'number'],
  34. [['lesson', 'merchantId', 'addTime', 'modTime'], 'integer'],
  35. [['createTime', 'updateTime'], 'safe'],
  36. [['name'], 'string', 'max' => 20],
  37. [['summary'], 'string', 'max' => 500],
  38. [['intro'], 'string', 'max' => 1000],
  39. ];
  40. }
  41. /**
  42. * @inheritdoc
  43. */
  44. public function attributeLabels()
  45. {
  46. return [
  47. 'id' => 'ID',
  48. 'name' => 'Name',
  49. 'tuition' => 'Tuition',
  50. 'lesson' => 'Lesson',
  51. 'summary' => 'Summary',
  52. 'intro' => 'Intro',
  53. 'merchantId' => 'Merchant ID',
  54. 'addTime' => 'Add Time',
  55. 'modTime' => 'Mod Time',
  56. 'createTime' => 'Create Time',
  57. 'updateTime' => 'Update Time',
  58. ];
  59. }
  60. }