SupplierPayment.php 386 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace app\admin\model;
  3. use think\Model;
  4. /**
  5. * SupplierPayment
  6. */
  7. class SupplierPayment extends Model
  8. {
  9. // 表名
  10. protected $name = 'supplier_payment';
  11. // 自动写入时间戳字段
  12. protected $autoWriteTimestamp = true;
  13. public function supplier()
  14. {
  15. return $this->belongsTo(\app\admin\model\Supplier::class, 'supplier_id', 'id');
  16. }
  17. }