链街Dcat后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
512 B

5 years ago
  1. <?php
  2. namespace App\Models;
  3. use Dcat\Admin\Traits\HasDateTimeFormatter;
  4. use Illuminate\Database\Eloquent\Model;
  5. class LanzuCsInfo extends Model
  6. {
  7. use HasDateTimeFormatter;
  8. protected $table = 'lanzu_cs_info';
  9. protected $dateFormat = 'U';
  10. public function userBalance()
  11. {
  12. return $this->hasOne("\App\Models\LanzuUserBalance",'source_id','admin_user_id');
  13. }
  14. public function csWithdraw()
  15. {
  16. return $this->hasOne("\App\Models\LanzuCsWithdraw",'cs_id','id');
  17. }
  18. }