OracleActTransactionLog.php 799 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace App;
  3. use Illuminate\Database\Eloquent\Model;
  4. /**
  5. * DB: FLUX/WMS_USER
  6. * TABLE: ACT_TRANSACTION_LOG
  7. * EXPLAIN: 库存事务
  8. */
  9. use App\Traits\ModelLogChanging;
  10. class OracleActTransactionLog extends Model
  11. {
  12. use ModelLogChanging;
  13. protected $connection="oracle";
  14. protected $table="ACT_TRANSACTION_LOG";
  15. /*
  16. * column: FMLotNum FMSKU ADDTIME TOCustomerID TOQty_Each FMQty_Each TransactionType TOLocation
  17. * */
  18. function oracleBasCustomer(){
  19. return $this->hasOne('App\OracleBasCustomer','customerid','tocustomerid');
  20. }
  21. function oracleBasSku(){
  22. return $this->hasOne('App\OracleBasSKU','sku','fmsku');
  23. }
  24. function oracleInvLotAtt(){
  25. return $this->hasOne('App\OracleInvLotAtt','lotnum','fmlotnum');
  26. }
  27. }