| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <?php
- namespace common\models;
- /**
- * This is the model class for table "xhTrainStudent".
- *
- * @property int $id 自增id
- * @property int $userId 用户id
- * @property int $merchantId
- * @property string $uniqueQrCode 二维码地址
- * @property string $avatar 学员头像,方便老师认人
- * @property int $registerTime 报名时间
- * @property int $classId 报名班级
- * @property int $praiseNum 集赞数量
- * @property int $learnStatus 0学习中 1毕业 2退学
- * @property int $point 升级型积分
- * @property int $integral 可兑换型积分
- * @property int $lesson 节课数
- * @property string $className 课名
- * @property string $tuition 学费
- * @property int $addTime 创建时间
- * @property int $modTime 修改时间
- */
- class xhTrainStudent extends xhBaseModel
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'xhTrainStudent';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['userId', 'merchantId', 'registerTime', 'classId', 'praiseNum', 'learnStatus', 'point', 'integral', 'lesson', 'addTime', 'modTime'], 'integer'],
- [['tuition'], 'number'],
- [['uniqueQrCode', 'avatar'], 'string', 'max' => 200],
- [['className'], 'string', 'max' => 30],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'userId' => 'User ID',
- 'merchantId' => 'Merchant ID',
- 'uniqueQrCode' => 'Unique Qr Code',
- 'avatar' => 'Avatar',
- 'registerTime' => 'Register Time',
- 'classId' => 'Class ID',
- 'praiseNum' => 'Praise Num',
- 'learnStatus' => 'Learn Status',
- 'point' => 'Point',
- 'integral' => 'Integral',
- 'lesson' => 'Lesson',
- 'className' => 'Class Name',
- 'tuition' => 'Tuition',
- 'addTime' => 'Add Time',
- 'modTime' => 'Mod Time',
- ];
- }
- }
|