BluevOceanAccount.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. namespace app\model\bluev;
  3. use app\extra\basic\Model;
  4. /**
  5. * @property integer $id (主键)
  6. * @property mixed $day
  7. * @property integer $advertiser_id
  8. * @property string $advertiser_name
  9. * @property integer $company_id
  10. * @property string $company_name
  11. * @property string $registerTime
  12. * @property string $platform
  13. * @property integer $noGrantCost 累计消耗
  14. * @property mixed $create_at 创建时间
  15. */
  16. class BluevOceanAccount extends Model
  17. {
  18. /**
  19. * The connection name for the model.
  20. *
  21. * @var string|null
  22. */
  23. protected $connection = 'mysql';
  24. /**
  25. * The table associated with the model.
  26. *
  27. * @var string
  28. */
  29. protected string $table = "bluev_ocean_account";
  30. /**
  31. * The primary key associated with the table.
  32. *
  33. * @var string
  34. */
  35. protected string $primaryKey = "id";
  36. /**
  37. * Indicates if the model should be timestamped.
  38. *
  39. * @var bool
  40. */
  41. public bool $timestamps = false;
  42. public function getNoGrantCostAttr($data): string
  43. {
  44. return format_money($data/100000);
  45. }
  46. }