RTradeOrderModel.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Model;
  4. /**
  5. * 销售订单表
  6. */
  7. class RTradeOrderModel extends Model
  8. {
  9. /**
  10. * The connection name for the model.
  11. */
  12. protected ?string $connection = 'robot';
  13. /**
  14. * The table associated with the model.
  15. */
  16. protected ?string $table = 'r_trade_order';
  17. public bool $timestamps = true;
  18. /**
  19. * The name of the "created at" column.
  20. *
  21. * @var null|string
  22. */
  23. public const CREATED_AT = 'create_time';
  24. /**
  25. * The name of the "updated at" column.
  26. *
  27. * @var null|string
  28. */
  29. public const UPDATED_AT = 'update_time';
  30. /**
  31. * The attributes that are mass assignable.
  32. */
  33. protected array $fillable = ['id', 'user_id', 'open_id', 'customer_phone', 'type', 'buy_order_id', 'site_id', 'robot_id', 'order_no', 'charging_pile_id', 'pile_imei', 'charge_model', 'plan_power', 'plan_amount', 'status', 'third_order_no', 'duration', 'voltage', 'electric_current', 'power', 'amount', 'charging_status', 'stop_reason', 'remark', 'seq', 'soc', 'create_time', 'update_time', 'del_flag'];
  34. /**
  35. * The attributes that should be cast to native types.
  36. */
  37. protected array $casts = [];
  38. }