StoreUnionPoolDetail.php 1.6 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\db\ActiveRecord;
  9. use yii\behaviors\TimestampBehavior;
  10. use Yii;
  11. /**
  12. * This is the model class for table "{{%partner_pool_detail}}".
  13. *
  14. * @property integer $id
  15. * @property integer $order_id
  16. * @property integer $store_id
  17. * @property string $order_no
  18. * @property integer $is_scan
  19. * @property integer $money
  20. * @property integer $pool_id
  21. * @property string $desc
  22. * @property integer $created_at
  23. * @property float $mx_rate
  24. * @property float $rl_rate
  25. * @property float $before_money
  26. * @property float $after_money
  27. * @property float $pay_price
  28. * @property float $total_pv
  29. * @property float $total_price
  30. * @property integer $model_type
  31. */
  32. class StoreUnionPoolDetail extends \yii\db\ActiveRecord
  33. {
  34. /**
  35. * @inheritdoc
  36. */
  37. public static function tableName()
  38. {
  39. return '{{%store_union_pool_detail}}';
  40. }
  41. public function behaviors()
  42. {
  43. return [
  44. [
  45. 'class' => TimestampBehavior::class,
  46. 'attributes' => [
  47. ActiveRecord::EVENT_BEFORE_INSERT => ['created_at'],
  48. ]
  49. ]
  50. ];
  51. }
  52. /**
  53. * @inheritdoc
  54. */
  55. public function rules()
  56. {
  57. return [
  58. [['order_id', 'pool_id', 'is_scan','model_type','store_id'], 'integer'],
  59. [['desc', 'order_no'], 'string'],
  60. [['money','pay_price','rl_rate','mx_rate','total_price','total_pv','before_money','after_money'], 'number'],
  61. [['created_at'], 'safe']
  62. ];
  63. }
  64. }