| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- namespace app\model\bluev;
- use app\extra\basic\Model;
- /**
- * @property integer $id (主键)
- * @property mixed $day
- * @property integer $advertiser_id
- * @property string $advertiser_name
- * @property integer $company_id
- * @property string $company_name
- * @property string $registerTime
- * @property string $platform
- * @property integer $noGrantCost 累计消耗
- * @property mixed $create_at 创建时间
- */
- class BluevOceanAccount extends Model
- {
- /**
- * The connection name for the model.
- *
- * @var string|null
- */
- protected $connection = 'mysql';
-
- /**
- * The table associated with the model.
- *
- * @var string
- */
- protected string $table = "bluev_ocean_account";
-
- /**
- * The primary key associated with the table.
- *
- * @var string
- */
- protected string $primaryKey = "id";
-
- /**
- * Indicates if the model should be timestamped.
- *
- * @var bool
- */
- public bool $timestamps = false;
- public function getNoGrantCostAttr($data): string
- {
- return format_money($data/100000);
- }
- }
|