当前位置:网站首页>hyper gen:model 指定数据库生成表文件
hyper gen:model 指定数据库生成表文件
2022-08-07 22:57:00 【游鱼_】
用hyper gen:model命令,为指定数据库生成表文件,
—pool string default 连接池,脚本会根据当前连接池配置创建
php bin/hyperf.php gen:model sysconfig --pool extradb
<?php
declare(strict_types=1);
use Hyperf\Database\Commands\ModelOption;
return [
'extradb' => [
// 忽略其他配置
'commands' => [
'gen:model' => [
'path' => 'app/Model',
'force_casts' => true,
'inheritance' => 'Model',
'uses' => '',
'refresh_fillable' => true,
'table_mapping' => [],
'with_comments' => true,
'property_case' => ModelOption::PROPERTY_SNAKE_CASE,
],
],
],
];
边栏推荐
猜你喜欢

Unity editor extension -- Hierarchy extension

Expansion of the Unity editor - Scene view custom operations

冰冰学习笔记:类与对象(下)

Unity编辑器拓展--Project拓展

my JDBC

亲测解决:warning ....No license field 问题

VS 配置 OpenCV (亲测可用)

Unity editor extension -- custom Window extension

MPLS network to SRv6 network evolution

2022年危险化学品生产单位安全生产管理人员考试试题及模拟考试
随机推荐
MPLS网络向SRv6网络演进
[CNN record] pytorch gather function
MySQL数据库的创建和基本的查询语句
Win10:禁用 Automatic Restart on System Failure
流式计算中的 Window 计算
多线程七夕特别版(二)互斥锁-死锁-等待通知机制
If there is a private method in the Controller, can it be accessed successfully?
JPA如何查询部分字段
The Unity editor development, Project development
MySQL groups first and then takes the largest and smallest records in the group
图数据建模图数据建模指南
Redis分布式锁
buu web部分wp
2022G1工业锅炉司炉特种作业证考试题库模拟考试平台操作
【云原生--Kubernetes】PV、PVC
Flutter开发实战之Google Play 最佳应用程序开发者分享Flutter经验与技巧
"Thesis Interpretation" THE CURIOUS CASE OF NEURAL TEXT DeGENERATION
Detailed Interrupt System
PLC运动控制系列之梯形速度曲线
Unity编辑器拓展--Scene视图拓展