From 75146a5473f1c34aa4ac4d48b371d65a5b7aa7a8 Mon Sep 17 00:00:00 2001 From: jsasg <735273025@qq.com> Date: Sat, 28 Dec 2024 18:15:10 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E8=A1=A8=E7=BB=93=E6=9E=84=E8=BF=81=E7=A7=BB?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../20241228093758_create_sys_menu.php | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 database/migrations/20241228093758_create_sys_menu.php diff --git a/database/migrations/20241228093758_create_sys_menu.php b/database/migrations/20241228093758_create_sys_menu.php new file mode 100644 index 00000000..be08bd8b --- /dev/null +++ b/database/migrations/20241228093758_create_sys_menu.php @@ -0,0 +1,41 @@ +table('sys_menu', ['engine' => 'MyISAM', 'comment' => '系统菜单表']); + $table->addColumn('pid', 'integer', ['null' => false, 'default' => 0, 'comment' => '父级ID']) + ->addColumn('name', 'string', ['limit' => 64, 'null' => false, 'comment' => '菜单名称']) + ->addColumn('url', 'string', ['limit' => 128, 'null' => false, 'comment' => '菜单URL']) + ->addColumn('icon', 'string', ['limit' => 64, 'null' => false, 'comment' => '菜单图标']) + ->addColumn('sort', 'integer', ['null' => false, 'default' => 0, 'comment' => '菜单排序']) + ->addColumn('status', 'boolean', ['null' => false, 'default' => 1, 'comment' => '-1为禁用, 1为启用']) + ->addColumn('created_at', 'timestamp', ['null' => false, 'default' => 'CURRENT_TIMESTAMP', 'comment' => '创建时间']) + ->addColumn('updated_at', 'timestamp', ['null' => false, 'default' => 'CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP', 'comment' => '更新时间']) + ->create(); + } +}