| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <?php
- namespace common\models;
- /**
- * This is the model class for table "xhInvite".
- *
- * @property int $id
- * @property int $merchantId 邀请人
- * @property int $invitedMerchantId 被邀请的商家id
- * @property string $code 邀请码,如1-10-Iwb0
- * @property string $save 邀请码可抵扣金额,节省
- * @property string $prize 奖金
- * @property int $inviteUseTo 邀请码用于 0申请公众号 1开通续费 具体看configDict
- * @property string $targetId 目标id
- * @property int $takeStatus 领取状态 0待领取 1领取
- * @property int $deadline 过期时间
- * @property int $addTime 添加时间,时间戳格式
- * @property string $createTime 创建时间
- * @property string $updateTime 修改时间
- */
- class xhInvite extends xhBaseModel
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'xhInvite';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['merchantId', 'invitedMerchantId', 'inviteUseTo', 'takeStatus', 'deadline', 'addTime'], 'integer'],
- [['save', 'prize'], 'number'],
- [['createTime'], 'required'],
- [['createTime', 'updateTime'], 'safe'],
- [['code'], 'string', 'max' => 50],
- [['targetId'], 'string', 'max' => 100],
- [['code'], 'unique'],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'merchantId' => 'Merchant ID',
- 'invitedMerchantId' => 'Invited Merchant ID',
- 'code' => 'Code',
- 'save' => 'Save',
- 'prize' => 'Prize',
- 'inviteUseTo' => 'Invite Use To',
- 'targetId' => 'Target ID',
- 'takeStatus' => 'Take Status',
- 'deadline' => 'Deadline',
- 'addTime' => 'Add Time',
- 'createTime' => 'Create Time',
- 'updateTime' => 'Update Time',
- ];
- }
- }
|