ReceiveAddress.php 972 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. namespace App\Module\UrausSys\Models;
  3. use App\Module\UrausSys\Enums\RECEIVE_ADDRESS_STATUS;
  4. use UCore\ModelCore;
  5. use Illuminate\Database\Eloquent\SoftDeletes;
  6. /**
  7. * 收款账户 , 平台的
  8. * ReceiveAddress
  9. * ReceiveAddressController
  10. *
  11. * field start
  12. * @property int $id
  13. * @property string $name 地址
  14. * @property int $status 状态
  15. * @property string $address 地址
  16. * @property \Carbon\Carbon $created_at 创建时间
  17. * @property \Carbon\Carbon $updated_at 更新时间
  18. * @property \Carbon\Carbon $deleted_at 删除时间
  19. * field end
  20. *
  21. */
  22. class ReceiveAddress extends ModelCore
  23. {
  24. use SoftDeletes;
  25. /**
  26. * @var string
  27. */
  28. protected $table = 'receive_address';
  29. // attrlist start
  30. protected $fillable = [
  31. 'id',
  32. 'name',
  33. 'status',
  34. 'address',
  35. ];
  36. // attrlist end
  37. protected $casts =[
  38. 'status' => RECEIVE_ADDRESS_STATUS::class,
  39. ];
  40. }