ReportForm.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 "{{%bonus_pool_level}}".
  13. *
  14. * @property integer $id
  15. * @property integer $store_id
  16. * @property integer $pool_id
  17. * @property integer $money
  18. * @property integer $level_id
  19. * @property string $user_id
  20. * @property integer $is_send
  21. * @property integer $send_time
  22. * @property integer $created_at
  23. */
  24. class ReportForm extends \yii\db\ActiveRecord
  25. {
  26. /**
  27. * @inheritdoc
  28. */
  29. public static function tableName()
  30. {
  31. return '{{%report_form}}';
  32. }
  33. public function behaviors()
  34. {
  35. return [
  36. [
  37. 'class' => TimestampBehavior::class,
  38. 'attributes' => [
  39. ActiveRecord::EVENT_BEFORE_INSERT => ['created_at'],
  40. ]
  41. ]
  42. ];
  43. }
  44. /**
  45. * @inheritdoc
  46. */
  47. public function rules()
  48. {
  49. return [
  50. [['store_id', 'report_setting_id', 'required', 'sort', 'is_delete'], 'integer'],
  51. [['name','type','default','tip'], 'string'],
  52. [['created_at'], 'safe']
  53. ];
  54. }
  55. }