12345678910111213141516171819 |
- <?php
- namespace App\Model;
- use Illuminate\Database\Eloquent\Model;
- class ConstructionInfo extends Model
- {
- protected $table = "construction_info"; //指定表
- 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
- ];
- }
|