DepositConfig.php 864 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. namespace backend\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "crm_deposit_config".
  6. *
  7. * @property integer $id
  8. * @property string $config_data
  9. */
  10. class DepositConfig extends \yii\db\ActiveRecord
  11. {
  12. /**
  13. * @inheritdoc
  14. */
  15. public static function tableName()
  16. {
  17. return 'crm_deposit_config';
  18. }
  19. /**
  20. * @return \yii\db\Connection the database connection used by this AR class.
  21. */
  22. public static function getDb()
  23. {
  24. return Yii::$app->get('dbXcrm');
  25. }
  26. /**
  27. * @inheritdoc
  28. */
  29. public function rules()
  30. {
  31. return [
  32. [['config_data'], 'string'],
  33. ];
  34. }
  35. /**
  36. * @inheritdoc
  37. */
  38. public function attributeLabels()
  39. {
  40. return [
  41. 'id' => 'ID',
  42. 'config_data' => '配置数据',
  43. ];
  44. }
  45. }