CommonOperation.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. /**
  10. * This is the model class for table "{{%common_operation}}".
  11. *
  12. * @property integer $id
  13. * @property integer $store_id
  14. * @property integer $mch_id
  15. * @property string $text
  16. * @property integer $created_at
  17. */
  18. class CommonOperation extends ActiveRecord
  19. {
  20. /**
  21. * @inheritdoc
  22. */
  23. public static function tableName()
  24. {
  25. return '{{%common_operation}}';
  26. }
  27. /**
  28. * @inheritdoc
  29. */
  30. public function rules()
  31. {
  32. return [
  33. [['store_id', 'created_at', 'mch_id'], 'integer'],
  34. [['text'], 'string'],
  35. ];
  36. }
  37. /**
  38. * @inheritdoc
  39. */
  40. public function attributeLabels()
  41. {
  42. return [
  43. 'id' => 'ID',
  44. 'store_id' => 'store_id',
  45. 'mch_id' => '商铺id',
  46. 'text' => '内容',
  47. 'created_at' => '添加时间',
  48. ];
  49. }
  50. }