| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <?php
- namespace App\Module\File\Model;
- use UCore\ModelCore;
- use Illuminate\Database\Eloquent\SoftDeletes;
- /**
- * 文件模板
- *
- * field start
- * @property int $id
- * @property string $unid 标识
- * @property int $file_id
- * @property string $title 模板标题
- * @property string $desc 描述
- * @property string $status
- * @property string $group 分组
- * @property \Carbon\Carbon $updated_at
- * @property \Carbon\Carbon $created_at
- * @property \Carbon\Carbon $deleted_at
- * field end
- *
- */
- class FileTemplate extends ModelCore
- {
- use SoftDeletes;
- // attrlist start
- public static $attrlist = array (
- 0 => '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');
- }
- }
|