12345678910111213141516171819 |
- <?php
- namespace App\Model;
- use Illuminate\Database\Eloquent\Model;
- class ProductRange extends Model
- {
- protected $table = "product_range"; //指定表
- const CREATED_AT = 'crt_time';
- const UPDATED_AT = 'upd_time';
- protected $dateFormat = 'U';
- const type_one = 1; // 部门
- const type_two = 2; // 人
- public static $type = [
- self::type_one,
- self::type_two,
- ];
- }
|