SupplierPoolDetail.php 1.7 KB

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