| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <?php
- namespace common\models;
- use Yii;
- /**
- * This is the model class for table "xhUserDeduct".
- *
- * @property string $id
- * @property integer $userId
- * @property integer $merchantId
- * @property string $amount
- * @property integer $classify
- * @property string $event
- * @property string $remark
- * @property integer $status
- * @property string $createTime
- * @property string $updateTime
- */
- class xhUserDeduct extends xhBaseModel
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'xhUserDeduct';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['id', 'createTime'], 'required'],
- [['userId', 'merchantId', 'classify', 'status'], 'integer'],
- [['amount'], 'number'],
- [['createTime', 'updateTime'], 'safe'],
- [['id'], 'string', 'max' => 100],
- [['event'], 'string', 'max' => 20],
- [['remark'], 'string', 'max' => 1000],
- [['id'], 'unique'],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'userId' => 'User ID',
- 'merchantId' => 'Merchant ID',
- 'amount' => 'Amount',
- 'classify' => 'Classify',
- 'event' => 'Event',
- 'remark' => 'Remark',
- 'status' => 'Status',
- 'createTime' => 'Create Time',
- 'updateTime' => 'Update Time',
- ];
- }
- }
|