AcPoolDetail.php 1.6 KB

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