| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <?php
- namespace common\models;
- /**
- * This is the model class for table "xhAdminToMerchant".
- *
- * @property int $id
- * @property int $merchantId 商家
- * @property int $adminId 管理员
- * @property int $receiveMsg 接收系统消息0不接收 1接收
- * @property string $createTime 创建时间
- * @property string $updateTime 修改时间
- */
- class xhAdminToMerchant extends xhBaseModel
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'xhAdminToMerchant';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['merchantId', 'adminId', 'receiveMsg'], 'integer'],
- [['createTime'], 'required'],
- [['createTime', 'updateTime'], 'safe'],
- [['adminId'], 'unique'],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'merchantId' => 'Merchant ID',
- 'adminId' => 'Admin ID',
- 'receiveMsg' => 'Receive Msg',
- 'createTime' => 'Create Time',
- 'updateTime' => 'Update Time',
- ];
- }
- }
|