AgentDistributionSetting.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. namespace addons\Agent\common\models;
  3. use common\enums\StatusEnum;
  4. use common\models\order\OrderDetail;
  5. use Yii;
  6. use yii\helpers\Json;
  7. /**
  8. * This is the model class for table "qimall_addons_agent_distribution_setting".
  9. *
  10. * @property int $id ID
  11. * @property int $mall_id 所属商城
  12. * @property int $item_id 对象ID
  13. * @property string $key 配置key
  14. * @property string $value 配置值
  15. * @property int $created_at 创建时间
  16. * @property int $updated_at 修改时间
  17. * @property int $status -1已删除,1正常,0禁用
  18. * @property int $deleted_at 删除时间
  19. */
  20. class AgentDistributionSetting extends \common\models\base\BaseActiveRecord
  21. {
  22. /**
  23. * {@inheritdoc}
  24. */
  25. public static function tableName()
  26. {
  27. return 'qimall_addons_agent_distribution_setting';
  28. }
  29. /**
  30. * {@inheritdoc}
  31. */
  32. public function rules()
  33. {
  34. return [
  35. [['mall_id', 'item_id', 'key', 'value'], 'required'],
  36. [['mall_id', 'item_id', 'created_at', 'updated_at', 'status', 'deleted_at'], 'integer'],
  37. [['value'], 'safe'],
  38. [['key'], 'string', 'max' => 255],
  39. ];
  40. }
  41. /**
  42. * {@inheritdoc}
  43. */
  44. public function attributeLabels()
  45. {
  46. return [
  47. 'id' => 'ID',
  48. 'mall_id' => 'Mall ID',
  49. 'item_id' => 'Item ID',
  50. 'key' => 'Key',
  51. 'value' => 'Value',
  52. 'created_at' => 'Created At',
  53. 'updated_at' => 'Updated At',
  54. 'status' => 'Status',
  55. 'deleted_at' => 'Deleted At',
  56. ];
  57. }
  58. }