StoreCloud.php 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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_cloud}}".
  13. *
  14. * @property integer $id
  15. * @property integer $store_id
  16. * @property integer $cloud_user_id
  17. * @property integer $cloud_store_id
  18. * @property integer $saas_user_id
  19. * @property integer $is_delete
  20. * @property integer $is_enable
  21. * @property string $name
  22. * @property string $access_token
  23. * @property string $tel
  24. * @property string $logo
  25. * @property string $certificate
  26. * @property string $id_card_reverse
  27. * @property string $id_card_front
  28. * @property integer created_at
  29. * @property integer updated_at
  30. * @property string $cloud_platform_list
  31. * @property integer $province_id
  32. * @property integer $city_id
  33. * @property integer $district_id
  34. * @property integer $can_distribution
  35. */
  36. class StoreCloud extends \yii\db\ActiveRecord
  37. {
  38. /**
  39. * @inheritdoc
  40. */
  41. public static function tableName()
  42. {
  43. return '{{%store_cloud}}';
  44. }
  45. public function behaviors()
  46. {
  47. return [
  48. [
  49. 'class' => TimestampBehavior::class,
  50. 'attributes' => [
  51. ActiveRecord::EVENT_BEFORE_INSERT => ['created_at'],
  52. ]
  53. ]
  54. ];
  55. }
  56. // /**
  57. // * @inheritdoc
  58. // */
  59. // public function rules()
  60. // {
  61. // return [
  62. // [['id', 'store_id', 'could_user_id', 'could_store_id', 'is_delete','created_at', 'updated_at','type'], 'integer'],
  63. // [['access_token', 'name', 'logo', 'tel', 'certificate', 'id_card_reverse','id_card_front','password'], 'string']
  64. // ];
  65. // }
  66. }