ShareHolderAreaAgentApply.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. use yii\db\ActiveRecord;
  9. use yii\behaviors\TimestampBehavior;
  10. use Yii;
  11. /**
  12. * This is the model class for table "{{%ShareHolderAreaAgentApply}}".
  13. *
  14. * @property integer $id
  15. * @property integer $share_holder_id
  16. * @property integer $store_id
  17. * @property integer $status
  18. * @property integer $user_id
  19. * @property string $params
  20. * @property integer $is_delete
  21. * @property integer $agent_type
  22. * @property integer $province_id
  23. * @property integer $city_id
  24. * @property integer $district_id
  25. * @property integer $apply_time
  26. * @property integer $created_at
  27. * @property integer $updated_at
  28. */
  29. class ShareHolderAreaAgentApply extends \yii\db\ActiveRecord
  30. {
  31. /**
  32. * @inheritdoc
  33. */
  34. public static function tableName()
  35. {
  36. return '{{%share_holder_area_agent_apply}}';
  37. }
  38. public function behaviors()
  39. {
  40. return [
  41. [
  42. 'class' => TimestampBehavior::class
  43. ]
  44. ];
  45. }
  46. /**
  47. * @inheritdoc
  48. */
  49. public function rules()
  50. {
  51. return [
  52. [['id', 'share_holder_id', 'status', 'user_id', 'is_delete', 'created_at', 'updated_at', 'store_id', 'apply_time', 'agent_type', 'province_id', 'city_id', 'district_id'], 'integer'],
  53. [['params'], 'string'],
  54. [['created_at', 'updated_at', 'apply_time'], 'safe']
  55. ];
  56. }
  57. }