AllDistrictOrder.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. use app\plugins\scanCodePay\models\Order as ScanOrder;
  9. use yii\db\ActiveRecord;
  10. use yii\behaviors\TimestampBehavior;
  11. use Yii;
  12. /**
  13. * This is the model class for table "{{%all_district_order}}".
  14. *
  15. * @property integer $id
  16. * @property integer $divvy_id
  17. * @property string $order_no
  18. * @property double $pay_price
  19. * @property double $all_district_agent_divvy
  20. * @property double $dividend_amount
  21. * @property integer $send_time
  22. * @property integer $created_at
  23. * @property integer $updated_at
  24. */
  25. class AllDistrictOrder extends \yii\db\ActiveRecord
  26. {
  27. /**
  28. * @inheritdoc
  29. */
  30. public static function tableName()
  31. {
  32. return '{{%all_district_order}}';
  33. }
  34. public function behaviors()
  35. {
  36. return [
  37. [
  38. 'class' => TimestampBehavior::class,
  39. 'attributes' => [
  40. ActiveRecord::EVENT_BEFORE_INSERT => ['created_at'],
  41. ActiveRecord::EVENT_BEFORE_UPDATE => ['updated_at']
  42. ]
  43. ]
  44. ];
  45. }
  46. /**
  47. * @inheritdoc
  48. */
  49. public function rules()
  50. {
  51. return [
  52. [['divvy_id', 'send_time'], 'integer'],
  53. [['pay_price', 'dividend_amount', 'all_district_agent_divvy'], 'number'],
  54. [['order_no'], 'string'],
  55. [['created_at', 'updated_at'], 'safe']
  56. ];
  57. }
  58. }