'id', 1 => 'unid', 2 => 'file_id', 3 => 'title', 4 => 'desc', 5 => 'status', 6 => 'group', 7 => 'updated_at', 8 => 'created_at', 9 => 'deleted_at', ); //attrlist end /** * 无效 */ const STATUS_0 = 0; /** * 有效 */ const STATUS_1 = 1; protected $table = 'file_template'; public function file() { return $this->hasOne(FileImg::class, 'id', 'file_id'); } }