| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <?php
- namespace common\models;
- /**
- * This is the model class for table "xhTrainClass".
- *
- * @property integer $id
- * @property string $name
- * @property string $tuition
- * @property integer $lesson
- * @property string $summary
- * @property string $intro
- * @property integer $merchantId
- * @property integer $addTime
- * @property integer $modTime
- * @property string $createTime
- * @property string $updateTime
- */
- class xhTrainClass extends xhBaseModel
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'xhTrainClass';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['tuition'], 'number'],
- [['lesson', 'merchantId', 'addTime', 'modTime'], 'integer'],
- [['createTime', 'updateTime'], 'safe'],
- [['name'], 'string', 'max' => 20],
- [['summary'], 'string', 'max' => 500],
- [['intro'], 'string', 'max' => 1000],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'name' => 'Name',
- 'tuition' => 'Tuition',
- 'lesson' => 'Lesson',
- 'summary' => 'Summary',
- 'intro' => 'Intro',
- 'merchantId' => 'Merchant ID',
- 'addTime' => 'Add Time',
- 'modTime' => 'Mod Time',
- 'createTime' => 'Create Time',
- 'updateTime' => 'Update Time',
- ];
- }
- }
|