链街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.

22 lines
505 B

  1. <?php
  2. namespace App\Models;
  3. use Dcat\Admin\Traits\HasDateTimeFormatter;
  4. use Illuminate\Database\Eloquent\Model;
  5. use App\Models\StoreAccount;
  6. class ImsCjdcStore extends Model
  7. {
  8. use HasDateTimeFormatter;
  9. protected $table = 'ims_cjdc_store';
  10. public $timestamps = false;
  11. public function market(){
  12. return $this->hasOne('\App\Models\ImsCjdcMarket','id','market_id');
  13. }
  14. public function storeAccount(){
  15. return $this->hasMany(StoreAccount::class,'store_id','id');
  16. }
  17. }