ReportCommitIntegral.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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 ReportCommitIntegral extends \yii\db\ActiveRecord
  25. {
  26. /**
  27. * @inheritdoc
  28. */
  29. public static function tableName()
  30. {
  31. return '{{%report_commit_integral}}';
  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_id', 'user_id', 'is_delete','user_id','money'], 'integer'],
  51. [['created_at'], 'safe']
  52. ];
  53. }
  54. }