123456789101112131415161718 |
- <?php
- namespace {%namespace%};
- use think\Model;
- /**
- * {%className%}
- */
- class {%className%} extends Model
- {{%pk%}
- // 表名
- protected $name = '{%name%}';
- // 自动写入时间戳字段
- protected $autoWriteTimestamp = {%autoWriteTimestamp%};{%createTime%}{%updateTime%}
- {%append%}{%fieldType%}{%beforeInsert%}{%afterInsert%}{%methods%}
- }
|