AgentSetting.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. namespace addons\Agent\common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "qimall_addons_agent_setting".
  6. *
  7. * @property int $id
  8. * @property int $mall_id
  9. * @property string $key
  10. * @property string $value
  11. * @property int $created_at 创建时间
  12. * @property int $updated_at 修改时间
  13. * @property int $is_delete 是否删除 0--未删除 1--已删除
  14. * @property int $deleted_at 删除时间
  15. */
  16. class AgentSetting extends \common\models\base\BaseActiveRecord
  17. {
  18. /**
  19. * {@inheritdoc}
  20. */
  21. public static function tableName()
  22. {
  23. return 'qimall_addons_agent_setting';
  24. }
  25. /**
  26. * {@inheritdoc}
  27. */
  28. public function rules()
  29. {
  30. return [
  31. [['mall_id', 'key', 'value'], 'required'],
  32. [['mall_id', 'created_at', 'updated_at', 'is_delete', 'deleted_at'], 'integer'],
  33. [['value'], 'string'],
  34. [['key'], 'string', 'max' => 255],
  35. ];
  36. }
  37. /**
  38. * {@inheritdoc}
  39. */
  40. public function attributeLabels()
  41. {
  42. return [
  43. 'id' => 'ID',
  44. 'mall_id' => 'Mall ID',
  45. 'key' => 'Key',
  46. 'value' => 'Value',
  47. 'created_at' => 'Created At',
  48. 'updated_at' => 'Updated At',
  49. 'is_delete' => 'Is Delete',
  50. 'deleted_at' => 'Deleted At',
  51. ];
  52. }
  53. }