| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <?php
- namespace addons\Agent\common\models;
- use common\enums\StatusEnum;
- use common\models\order\OrderDetail;
- use Yii;
- use yii\helpers\Json;
- /**
- * This is the model class for table "qimall_addons_agent_distribution_setting".
- *
- * @property int $id ID
- * @property int $mall_id 所属商城
- * @property int $item_id 对象ID
- * @property string $key 配置key
- * @property string $value 配置值
- * @property int $created_at 创建时间
- * @property int $updated_at 修改时间
- * @property int $status -1已删除,1正常,0禁用
- * @property int $deleted_at 删除时间
- */
- class AgentDistributionSetting extends \common\models\base\BaseActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return 'qimall_addons_agent_distribution_setting';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['mall_id', 'item_id', 'key', 'value'], 'required'],
- [['mall_id', 'item_id', 'created_at', 'updated_at', 'status', 'deleted_at'], 'integer'],
- [['value'], 'safe'],
- [['key'], 'string', 'max' => 255],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'mall_id' => 'Mall ID',
- 'item_id' => 'Item ID',
- 'key' => 'Key',
- 'value' => 'Value',
- 'created_at' => 'Created At',
- 'updated_at' => 'Updated At',
- 'status' => 'Status',
- 'deleted_at' => 'Deleted At',
- ];
- }
- }
|