| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <?php
- namespace common\models;
- use Yii;
- /**
- * This is the model class for table "xhTrainTeacher".
- *
- * @property integer $id
- * @property integer $merchantId
- * @property string $teacherName
- * @property string $title
- * @property string $avatar
- * @property string $intro
- * @property integer $addTime
- * @property integer $modTime
- * @property string $createTime
- * @property string $updateTime
- */
- class xhTrainTeacher extends xhBaseModel
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'xhTrainTeacher';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['merchantId', 'addTime', 'modTime'], 'integer'],
- [['intro'], 'required'],
- [['intro'], 'string'],
- [['createTime', 'updateTime'], 'safe'],
- [['teacherName'], 'string', 'max' => 20],
- [['title'], 'string', 'max' => 100],
- [['avatar'], 'string', 'max' => 200],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'merchantId' => 'Merchant ID',
- 'teacherName' => 'Teacher Name',
- 'title' => 'Title',
- 'avatar' => 'Avatar',
- 'intro' => 'Intro',
- 'addTime' => 'Add Time',
- 'modTime' => 'Mod Time',
- 'createTime' => 'Create Time',
- 'updateTime' => 'Update Time',
- ];
- }
- }
|