MerchantInfo.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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 "{{%merchant_info}}".
  13. *
  14. * @property integer $id
  15. * @property integer $store_id
  16. * @property integer $saas_user_id
  17. * @property string $business_code
  18. * @property string $contact_info
  19. * @property string $subject_info
  20. * @property string $business_info
  21. * @property string $settlement_info
  22. * @property string $bank_account_info
  23. * @property string $applyment_id
  24. * @property integer $status
  25. * @property string $state
  26. * @property string $refuse_desc
  27. * @property integer $bind_store_id
  28. * @property integer $from
  29. * @property string $sub_mch_id
  30. * @property integer $created_at
  31. * @property integer $updated_at
  32. * @property string $app_status
  33. * @property string $sign_url
  34. * @property integer $is_use
  35. * @property integer $is_yunst
  36. * @property integer $is_delete
  37. */
  38. class MerchantInfo extends \yii\db\ActiveRecord
  39. {
  40. /**
  41. * @inheritdoc
  42. */
  43. public static function tableName()
  44. {
  45. return '{{%merchant_info}}';
  46. }
  47. public function behaviors()
  48. {
  49. return [
  50. [
  51. 'class' => TimestampBehavior::class,
  52. 'attributes' => [
  53. ActiveRecord::EVENT_BEFORE_INSERT => ['created_at'],
  54. ActiveRecord::EVENT_BEFORE_UPDATE => ['updated_at']
  55. ]
  56. ]
  57. ];
  58. }
  59. /**
  60. * @inheritdoc
  61. */
  62. public function rules()
  63. {
  64. return [
  65. [['updated_at', 'saas_user_id', 'created_at', 'store_id', 'bind_store_id', 'from', 'is_use', 'is_yunst'], 'integer'],
  66. [['sub_mch_id', 'state', 'business_code', 'contact_info', 'business_info', 'subject_info', 'settlement_info', 'bank_account_info', 'applyment_id','app_status', 'sign_url'], 'string'],
  67. [['created_at', 'updated_at'], 'safe']
  68. ];
  69. }
  70. }