removed bonds

This commit is contained in:
2021-01-11 00:53:37 +09:00
parent 70b3162964
commit b598189626
3 changed files with 0 additions and 112 deletions

View File

@@ -1,40 +0,0 @@
<?php
namespace App\Models\Finances;
use Illuminate\Database\Eloquent\Model;
class AllianceBond extends Model
{
/**
* Table Name
*/
protected $table = 'alliance_bonds';
/**
* Timestamps
*/
public $timestamps = true;
/**
* The attributes which are mass assignable
*
* @var array
*/
protected $fillable = [
'id',
'full_bond_amount',
'remaining_bond_amount',
'bond_id',
'character_id',
];
public function bonders() {
return $this->hasMany('App\Models\Finances\Bondee', 'character_id', 'character_id');
}
public function getBondId() {
return $this->bond_id;
}
}

View File

@@ -1,22 +0,0 @@
<?php
namespace App\Models\Finances;
use Illuminate\Database\Eloquent\Model;
class Bondee extends Model
{
protected $table = 'alliance_bondees';
protected $fillable = [
'character_id',
'character_name',
'corporation_id',
'corporation_name',
'bond_id',
];
public function allianceBond() {
return $this->belongsTo(AllianceBond::class);
}
}