PluginPoolMember.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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 "{{%saas_unit_founder}}".
  13. *
  14. * @property integer $saas_id
  15. * @property integer $store_id
  16. * @property integer $level_id
  17. * @property integer $is_enable
  18. * @property integer $weight
  19. * @property integer $config_id
  20. * @property integer $created_at
  21. */
  22. class PluginPoolMember extends \yii\db\ActiveRecord
  23. {
  24. /**
  25. * @inheritdoc
  26. */
  27. public static function tableName()
  28. {
  29. return '{{%plugin_pool_member}}';
  30. }
  31. public function behaviors()
  32. {
  33. return [
  34. [
  35. 'class' => TimestampBehavior::class,
  36. 'attributes' => [
  37. ActiveRecord::EVENT_BEFORE_INSERT => ['created_at'],
  38. ]
  39. ]
  40. ];
  41. }
  42. /**
  43. * @inheritdoc
  44. */
  45. public function rules()
  46. {
  47. return [
  48. [['saas_id', 'is_enable', 'level_id','weight','store_id'], 'integer'],
  49. ];
  50. }
  51. /**
  52. * @inheritdoc
  53. */
  54. public function attributeLabels()
  55. {
  56. return [
  57. 'saas_id' => '合伙人',
  58. 'level_id' => '等级',
  59. 'is_enable' => '是否开启',
  60. ];
  61. }
  62. }