mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 15:32:48 +08:00
feat(scheme): 新增数据库表结构同步方案
This commit is contained in:
9
app/common/command/scheme/Backup.php
Normal file
9
app/common/command/scheme/Backup.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\command\scheme;
|
||||
|
||||
use base\common\command\scheme\Backup as BaseCommand;
|
||||
|
||||
class Backup extends BaseCommand
|
||||
{
|
||||
}
|
||||
9
app/common/command/scheme/Make.php
Normal file
9
app/common/command/scheme/Make.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\command\scheme;
|
||||
|
||||
use base\common\command\scheme\Make as BaseCommand;
|
||||
|
||||
class Make extends BaseCommand
|
||||
{
|
||||
}
|
||||
9
app/common/command/scheme/Sync.php
Normal file
9
app/common/command/scheme/Sync.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\command\scheme;
|
||||
|
||||
use base\common\command\scheme\Sync as BaseCommand;
|
||||
|
||||
class Sync extends BaseCommand
|
||||
{
|
||||
}
|
||||
9
app/common/scheme/BaseScheme.php
Normal file
9
app/common/scheme/BaseScheme.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\scheme;
|
||||
|
||||
use base\common\scheme\BaseScheme as Base;
|
||||
|
||||
abstract class BaseScheme extends Base
|
||||
{
|
||||
}
|
||||
11
app/common/scheme/attribute/Component.php
Normal file
11
app/common/scheme/attribute/Component.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\scheme\attribute;
|
||||
|
||||
use Attribute;
|
||||
use base\common\scheme\attribute\Component as BaseComponent;
|
||||
|
||||
#[Attribute(Attribute::TARGET_PROPERTY)]
|
||||
class Component extends BaseComponent
|
||||
{
|
||||
}
|
||||
11
app/common/scheme/attribute/Field.php
Normal file
11
app/common/scheme/attribute/Field.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\scheme\attribute;
|
||||
|
||||
use Attribute;
|
||||
use base\common\scheme\attribute\Field as BaseField;
|
||||
|
||||
#[Attribute(Attribute::TARGET_PROPERTY)]
|
||||
class Field extends BaseField
|
||||
{
|
||||
}
|
||||
11
app/common/scheme/attribute/Index.php
Normal file
11
app/common/scheme/attribute/Index.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\scheme\attribute;
|
||||
|
||||
use Attribute;
|
||||
use base\common\scheme\attribute\Index as BaseIndex;
|
||||
|
||||
#[Attribute(Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)]
|
||||
class Index extends BaseIndex
|
||||
{
|
||||
}
|
||||
11
app/common/scheme/attribute/Table.php
Normal file
11
app/common/scheme/attribute/Table.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\scheme\attribute;
|
||||
|
||||
use Attribute;
|
||||
use base\common\scheme\attribute\Table as BaseTable;
|
||||
|
||||
#[Attribute(Attribute::TARGET_CLASS)]
|
||||
class Table extends BaseTable
|
||||
{
|
||||
}
|
||||
9
app/common/service/scheme/DbToSchemeService.php
Normal file
9
app/common/service/scheme/DbToSchemeService.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\service\scheme;
|
||||
|
||||
use base\common\service\scheme\DbToSchemeService as BaseService;
|
||||
|
||||
class DbToSchemeService extends BaseService
|
||||
{
|
||||
}
|
||||
9
app/common/service/scheme/SchemeToDbService.php
Normal file
9
app/common/service/scheme/SchemeToDbService.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\service\scheme;
|
||||
|
||||
use base\common\service\scheme\SchemeToDbService as BaseService;
|
||||
|
||||
class SchemeToDbService extends BaseService
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user