初始化本地仓库

This commit is contained in:
2026-08-31 11:33:59 +08:00
commit 663f74b633
2390 changed files with 402918 additions and 0 deletions
@@ -0,0 +1,65 @@
<?php
declare(strict_types=1);
/**
*+------------------
* madong
*+------------------
* Copyright (c) https://gitee.com/motion-code All rights reserved.
*+------------------
* Author: Mr. April (405784684@qq.com)
*+------------------
* Official Website: https://madong.tech
*/
namespace app\model\generator;
use core\base\BaseModel;
/**
* 代码生成器-字段
*
* @author Mr.April
* @since 1.0
*/
class GeneratorColumn extends BaseModel
{
protected $table = 'generate_column';
/**
* 指示是否自动维护时间戳
*
* @var bool
*/
public $timestamps = true;
protected $appends = ['created_date', 'updated_date'];
protected $fillable = [
'id',
'table_id',
'column_name',
'column_comment',
'column_type',
'is_required',
'is_pk',
'is_insert',
'is_update',
'is_lists',
'is_query',
'is_search',
'query_type',
'view_type',
'dict_type',
'plugin',
'model',
'sort',
'label_key',
'value_key',
'create_time',
'update_time',
'is_delete',
'is_order',
'validate_type',
];
}
@@ -0,0 +1,64 @@
<?php
declare(strict_types=1);
/**
*+------------------
* madong
*+------------------
* Copyright (c) https://gitee.com/motion-code All rights reserved.
*+------------------
* Author: Mr. April (405784684@qq.com)
*+------------------
* Official Website: https://madong.tech
*/
namespace app\model\generator;
use core\base\BaseModel;
/**
* 代码生成器-表
*
* @author Mr.April
* @since 1.0
*/
class GeneratorTable extends BaseModel
{
protected $table = 'generate_table';
/**
* 指示是否自动维护时间戳
*
* @var bool
*/
public $timestamps = true;
protected $appends = ['created_date', 'updated_date'];
protected $fillable = [
'id',
'table_name',
'table_content',
'module_name',
'class_name',
'edit_type',
'plugin_name',
'order_type',
'parent_menu',
'relations',
'push_sync_count',
'created_at',
'updated_at',
];
/**
* 关联字段
*
* @return \Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Eloquent\Relations\HasMany|\app\model\generator\GeneratorTable
*/
public function columns(): \Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Eloquent\Relations\HasMany|GeneratorTable
{
return $this->hasMany(GeneratorColumn::class, 'table_id', 'id');
}
}