NotePickupForProcessing.php 372 B

123456789101112131415161718192021
  1. <?php
  2. namespace App\Models;
  3. # use Illuminate\Database\Eloquent\Model;
  4. class NotePickupForProcessing extends Model
  5. {
  6. protected $table = "note_pickup_for_processing";
  7. public function pro()
  8. {
  9. return $this->hasOne(Pro::class, 'id', 'pro_id');
  10. }
  11. public function note()
  12. {
  13. return $this->hasOne(Note::class, 'id', 'note_id');
  14. }
  15. }