| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?php
- namespace common\models;
- /**
- * This is the model class for table "xhUserUnite".
- *
- * @property int $id
- * @property string $alipayId 支付宝的uid
- * @property int $merchantId 商家id
- * @property int $userId 用户id
- * @property int $point 要转移的积分
- * @property string $totalExpend 要转移的累计消费
- * @property int $operateId 操作人id adminId 等
- * @property int $addTime 添加时间,时间戳格式
- * @property string $createTime 创建时间
- * @property string $updateTime
- */
- class xhUserUnite extends xhBaseModel
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'xhUserUnite';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['merchantId', 'userId', 'point', 'operateId', 'addTime'], 'integer'],
- [['totalExpend'], 'number'],
- [['createTime'], 'required'],
- [['createTime', 'updateTime'], 'safe'],
- [['alipayId'], 'string', 'max' => 50],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'alipayId' => 'Alipay ID',
- 'merchantId' => 'Merchant ID',
- 'userId' => 'User ID',
- 'point' => 'Point',
- 'totalExpend' => 'Total Expend',
- 'operateId' => 'Operate ID',
- 'addTime' => 'Add Time',
- 'createTime' => 'Create Time',
- 'updateTime' => 'Update Time',
- ];
- }
- }
|