链街Dcat后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
488 B

5 years ago
  1. <?php
  2. namespace App\Models;
  3. use Dcat\Admin\Traits\HasDateTimeFormatter;
  4. use Illuminate\Database\Eloquent\Model;
  5. class ImsCjdcOrder extends Model
  6. {
  7. use HasDateTimeFormatter;
  8. protected $table = 'lanzu_order as order';
  9. public $timestamps = false;
  10. public function user()
  11. {
  12. return $this->hasOne('\App\Models\ImsCjdcUser','id','user_id');
  13. }
  14. public function store()
  15. {
  16. return $this->hasOne('\App\Models\ImsCjdcStore','id','store_id');
  17. }
  18. }