StoreAudit.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. use Yii;
  9. use yii\behaviors\TimestampBehavior;
  10. use yii\db\ActiveRecord;
  11. /**
  12. * This is the model class for table "{{%store_audit}}".
  13. *
  14. * @property integer $id
  15. * @property integer $saas_user_id
  16. * @property integer $salesman_id
  17. * @property string $name
  18. * @property string $mobile
  19. * @property string $password
  20. * @property string $business_pic
  21. * @property string $permit_pic
  22. * @property integer $status
  23. * @property integer $cat_id
  24. * @property integer $merchant_info_id
  25. * @property string $logo
  26. * @property integer created_at
  27. * @property integer updated_at
  28. * @property integer $is_single_store
  29. * @property integer $district_id
  30. * @property integer $city_id
  31. * @property integer $province_id
  32. * @property string $store_number
  33. * @property string $currceny_percent_scan
  34. */
  35. class StoreAudit extends \yii\db\ActiveRecord
  36. {
  37. /**
  38. * @inheritdoc
  39. */
  40. public static function tableName()
  41. {
  42. return '{{%store_audit}}';
  43. }
  44. public function behaviors()
  45. {
  46. return [
  47. [
  48. 'class' => TimestampBehavior::class,
  49. 'attributes' => [
  50. ActiveRecord::EVENT_BEFORE_INSERT => ['created_at'],
  51. ActiveRecord::EVENT_BEFORE_UPDATE => ['updated_at']
  52. ]
  53. ]
  54. ];
  55. }
  56. /**
  57. * @inheritdoc
  58. */
  59. public function rules()
  60. {
  61. return [
  62. [['id', 'saas_user_id', 'salesman_id', 'status', 'created_at', 'updated_at', 'cat_id', 'merchant_info_id', 'is_single_store', 'district_id', 'city_id', 'province_id'], 'integer'],
  63. [['name', 'mobile', 'password', 'business_pic', 'permit_pic', 'logo','store_number'], 'string'],
  64. [['currceny_percent_scan'], 'number'],
  65. ];
  66. }
  67. }