first commit

This commit is contained in:
编码猿
2024-09-27 01:32:49 +08:00
commit 28ebe05a64
7399 changed files with 1174529 additions and 0 deletions

View File

@@ -0,0 +1 @@
c01a439b-332b-47b8-a9b6-07a322c5a88d

View File

@@ -0,0 +1,25 @@
<?php
/**
* Created by PhpStorm.
* User: typ
* Date: 2019/1/3
* Time: 14:45
*/
namespace app\common\model;
use think\Model;
class AreaModel extends Model
{
public function parent()
{
return $this->belongsTo(AreaModel::class, 'parent_area_id')->field('id, area_name, parent_area_id');
}
public function childs()
{
return $this->hasMany(AreaModel::class, 'parent_area_id')->field('id, area_name, parent_area_id');
}
}

View File

@@ -0,0 +1,11 @@
<?php
namespace app\common\model;
use think\Model;
class SkuModel extends Model{
protected $pk = 'id';
//protected $name = 'Sku';
protected $table = 'ydyd_goods_batch_area_relation';
}