12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- namespace {%modelNamespace%};
- use think\Model;
- {%sofeDeleteClassPath%}
- class {%modelName%} extends Model
- {
- {%softDelete%}
- {%modelConnection%}
-
- protected ${%modelTableType%} = '{%modelTableTypeName%}';
-
- // 自动写入时间戳字段
- protected $autoWriteTimestamp = {%modelAutoWriteTimestamp%};
-
- protected $createTime = {%createTime%};
- protected $updateTime = {%updateTime%};
- protected $deleteTime = {%deleteTime%};
-
- protected $append = [
- {%appendAttrList%}
- ];
-
- {%modelInit%}
-
- {%getEnumList%}
- {%getAttrList%}
- {%setAttrList%}
- {%relationMethodList%}
- }
|