added primary keys to all models

This commit is contained in:
2021-03-10 23:29:30 +09:00
parent 91bde37441
commit 4db6dac439
35 changed files with 197 additions and 19 deletions
+4 -7
View File
@@ -9,6 +9,9 @@ class Observer extends Model
//Table Name
protected $table = 'alliance_mining_tax_observers';
//Primary Key
public $primaryKey = 'id';
//Timestamps
public $timestamps = true;
@@ -21,11 +24,5 @@ class Observer extends Model
'last_updated',
'observer_id',
'observer_type',
];
public function getLedgers() {
return $this->hasMany('App\Models\MiningTax\Ledger', 'observer_id', 'observer_id');
}
];
}