test_lgq/niucloud/app/service/admin/generator/vm/model.vm
2024-01-24 17:36:08 +08:00

51 lines
1.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的多应用管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------
// | Author: Niucloud Team
// +----------------------------------------------------------------------
{NAMESPACE}
use core\base\BaseModel;
use think\model\concern\SoftDelete;
use think\model\relation\HasMany;
use think\model\relation\HasOne;
{WITH_MODEL}
/**
* {CLASS_COMMENT}
* Class {UCASE_NAME}
* @package {PACKAGE_NAME}
*/
class {UCASE_NAME} extends BaseModel
{
{SOFT_DELETE}
/**
* 数据表主键
* @var string
*/
protected $pk = '{PK}';
/**
* 模型名称
* @var string
*/
protected $name = '{TABLE_NAME}';
{DELETE_COLUMN}
{DELETE_COLUMN_VALUE}
{SEARCH_FUNCTION}
{RELATION_MODEL}
{SELECT_MODEL}
}