Files
GEAR-OA/script/sql/mysql/item/gen_table.sql
2026-04-23 10:15:22 +08:00

30 lines
19 KiB
SQL

INSERT INTO `gen_table` (`table_id`, `table_name`, `table_comment`, `sub_table_name`, `sub_table_fk_name`, `class_name`, `tpl_category`, `package_name`, `module_name`, `business_name`, `function_name`, `function_author`, `gen_type`, `gen_path`, `options`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (1953005388714323969, 'gear_attendance_record', '考勤主表(含考勤/加班/出差)', NULL, NULL, 'GearAttendanceRecord', 'crud', 'com.gear.oa', 'oa', 'attendanceRecord', '考勤主(含考勤/加班/出差)', 'ruoyi', '0', '/', '{\"treeCode\":null,\"treeName\":null,\"treeParentCode\":null,\"parentMenuId\":\"1952975318515830785\"}', 'admin', '2025-08-06 08:07:11', 'admin', '2025-08-06 16:29:53', NULL);
INSERT INTO `gen_table` (`table_id`, `table_name`, `table_comment`, `sub_table_name`, `sub_table_fk_name`, `class_name`, `tpl_category`, `package_name`, `module_name`, `business_name`, `function_name`, `function_author`, `gen_type`, `gen_path`, `options`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (1953326783517085698, 'gear_attendance_summary', '考勤汇总主表', NULL, NULL, 'GearAttendanceSummary', 'crud', 'com.gear.oa', 'oa', 'attendanceSummary', '考勤汇总', 'Joshi', '0', '/', '{\"treeCode\":null,\"treeName\":null,\"treeParentCode\":null,\"parentMenuId\":null}', 'admin', '2025-08-07 05:23:22', 'admin', '2025-08-07 13:34:28', NULL);
INSERT INTO `gen_table` (`table_id`, `table_name`, `table_comment`, `sub_table_name`, `sub_table_fk_name`, `class_name`, `tpl_category`, `package_name`, `module_name`, `business_name`, `function_name`, `function_author`, `gen_type`, `gen_path`, `options`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (1953326788218900481, 'gear_attendance_summary_detail', '考勤汇总明细表', NULL, NULL, 'GearAttendanceSummaryDetail', 'crud', 'com.gear.oa', 'oa', 'attendanceSummaryDetail', '考勤汇总明细', 'Joshi', '0', '/', '{\"treeCode\":null,\"treeName\":null,\"treeParentCode\":null,\"parentMenuId\":null}', 'admin', '2025-08-07 05:23:46', 'admin', '2025-08-07 13:35:03', NULL);
INSERT INTO `gen_table` (`table_id`, `table_name`, `table_comment`, `sub_table_name`, `sub_table_fk_name`, `class_name`, `tpl_category`, `package_name`, `module_name`, `business_name`, `function_name`, `function_author`, `gen_type`, `gen_path`, `options`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (1954049422250463233, 'gear_salary_records', '工资发放记录表', NULL, NULL, 'GearSalaryRecords', 'crud', 'com.gear.oa', 'oa', 'salaryRecords', '工资发放记录', 'Joshi', '0', '/', '{\"treeCode\":null,\"treeName\":null,\"treeParentCode\":null,\"parentMenuId\":null}', 'admin', '2025-08-09 05:11:37', 'admin', '2025-08-09 14:08:38', NULL);
INSERT INTO `gen_table` (`table_id`, `table_name`, `table_comment`, `sub_table_name`, `sub_table_fk_name`, `class_name`, `tpl_category`, `package_name`, `module_name`, `business_name`, `function_name`, `function_author`, `gen_type`, `gen_path`, `options`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (1957646576831418370, 'gear_bom', 'BOM 表头,关联产品或原材料', NULL, NULL, 'GearBom', 'crud', 'com.gear.oa', 'oa', 'bom', 'BOM 头,关联产品或原材料', 'Joshi', '0', '/', '{\"treeCode\":null,\"treeName\":null,\"treeParentCode\":null,\"parentMenuId\":null}', 'admin', '2025-08-19 03:28:46', 'admin', '2025-08-19 11:35:23', NULL);
INSERT INTO `gen_table` (`table_id`, `table_name`, `table_comment`, `sub_table_name`, `sub_table_fk_name`, `class_name`, `tpl_category`, `package_name`, `module_name`, `business_name`, `function_name`, `function_author`, `gen_type`, `gen_path`, `options`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (1957646580803424258, 'gear_bom_item', 'BOM 明细表,存放属性–值', NULL, NULL, 'GearBomItem', 'crud', 'com.gear.oa', 'oa', 'bomItem', 'BOM 明细,存放属性–值', 'Joshi', '0', '/', '{\"treeCode\":null,\"treeName\":null,\"treeParentCode\":null,\"parentMenuId\":null}', 'admin', '2025-08-19 03:28:48', 'admin', '2025-08-19 11:32:13', NULL);
INSERT INTO `gen_table` (`table_id`, `table_name`, `table_comment`, `sub_table_name`, `sub_table_fk_name`, `class_name`, `tpl_category`, `package_name`, `module_name`, `business_name`, `function_name`, `function_author`, `gen_type`, `gen_path`, `options`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (1957646584662183938, 'gear_product', '产品表', NULL, NULL, 'GearProduct', 'crud', 'com.gear.oa', 'oa', 'product', '产品', 'Joshi', '0', '/', '{\"treeCode\":null,\"treeName\":null,\"treeParentCode\":null,\"parentMenuId\":null}', 'admin', '2025-08-19 03:28:46', 'admin', '2025-08-19 11:33:54', NULL);
INSERT INTO `gen_table` (`table_id`, `table_name`, `table_comment`, `sub_table_name`, `sub_table_fk_name`, `class_name`, `tpl_category`, `package_name`, `module_name`, `business_name`, `function_name`, `function_author`, `gen_type`, `gen_path`, `options`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (1957671861580713986, 'gear_product_category', '产品分类树表', '', '', 'GearProductCategory', 'tree', 'com.gear.oa', 'oa', 'productCategory', '产品分类树', 'Joshi', '0', '/', '{\"treeCode\":\"category_id\",\"treeName\":\"category_name\",\"treeParentCode\":\"parent_id\",\"parentMenuId\":null}', 'admin', '2025-08-19 05:11:37', 'admin', '2025-08-19 13:26:12', NULL);
INSERT INTO `gen_table` (`table_id`, `table_name`, `table_comment`, `sub_table_name`, `sub_table_fk_name`, `class_name`, `tpl_category`, `package_name`, `module_name`, `business_name`, `function_name`, `function_author`, `gen_type`, `gen_path`, `options`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (1961702730263912449, 'gear_monthly_account', '月度记账表', NULL, NULL, 'GearMonthlyAccount', 'crud', 'com.gear.oa', 'oa', 'monthlyAccount', '月度记账', 'Joshi', '0', '/', '{\"treeCode\":null,\"treeName\":null,\"treeParentCode\":null,\"parentMenuId\":null}', 'admin', '2025-08-30 08:07:29', 'admin', '2025-08-30 16:10:05', NULL);
INSERT INTO `gen_table` (`table_id`, `table_name`, `table_comment`, `sub_table_name`, `sub_table_fk_name`, `class_name`, `tpl_category`, `package_name`, `module_name`, `business_name`, `function_name`, `function_author`, `gen_type`, `gen_path`, `options`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (1961702734915395585, 'gear_purchase_plan_detail', '采购计划明细表', NULL, NULL, 'GearPurchasePlanDetail', 'crud', 'com.gear.oa', 'oa', 'purchasePlanDetail', '采购计划明细', 'Joshi', '0', '/', '{\"treeCode\":null,\"treeName\":null,\"treeParentCode\":null,\"parentMenuId\":null}', 'admin', '2025-08-30 08:07:28', 'admin', '2025-08-30 16:10:57', NULL);
INSERT INTO `gen_table` (`table_id`, `table_name`, `table_comment`, `sub_table_name`, `sub_table_fk_name`, `class_name`, `tpl_category`, `package_name`, `module_name`, `business_name`, `function_name`, `function_author`, `gen_type`, `gen_path`, `options`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (1961702739420078081, 'gear_supplier', '供应商信息表', NULL, NULL, 'GearSupplier', 'crud', 'com.gear.oa', 'oa', 'supplier', '供应商信息', 'Joshi', '0', '/', '{\"treeCode\":null,\"treeName\":null,\"treeParentCode\":null,\"parentMenuId\":null}', 'admin', '2025-08-30 08:07:28', 'admin', '2025-08-30 16:10:26', NULL);
INSERT INTO `gen_table` (`table_id`, `table_name`, `table_comment`, `sub_table_name`, `sub_table_fk_name`, `class_name`, `tpl_category`, `package_name`, `module_name`, `business_name`, `function_name`, `function_author`, `gen_type`, `gen_path`, `options`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (1961702743983480833, 'gear_supply_type', '供货类型管理表', NULL, NULL, 'GearSupplyType', 'crud', 'com.gear.oa', 'oa', 'supplyType', '供货类型管理', 'Joshi', '0', '/', '{\"treeCode\":null,\"treeName\":null,\"treeParentCode\":null,\"parentMenuId\":null}', 'admin', '2025-08-30 08:07:03', 'admin', '2025-08-30 16:11:21', NULL);
INSERT INTO `gen_table` (`table_id`, `table_name`, `table_comment`, `sub_table_name`, `sub_table_fk_name`, `class_name`, `tpl_category`, `package_name`, `module_name`, `business_name`, `function_name`, `function_author`, `gen_type`, `gen_path`, `options`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (1962716808868524033, 'gear_journal', '资金日记账表', NULL, NULL, 'GearJournal', 'crud', 'com.gear.oa', 'oa', 'journal', '资金日记账', 'Joshi', '0', '/', '{\"treeCode\":null,\"treeName\":null,\"treeParentCode\":null,\"parentMenuId\":null}', 'admin', '2025-09-02 03:12:49', 'admin', '2025-09-02 11:20:38', NULL);
INSERT INTO `gen_table` (`table_id`, `table_name`, `table_comment`, `sub_table_name`, `sub_table_fk_name`, `class_name`, `tpl_category`, `package_name`, `module_name`, `business_name`, `function_name`, `function_author`, `gen_type`, `gen_path`, `options`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (1962716815495524354, 'gear_order_detail', '订单明细表', NULL, NULL, 'GearOrderDetail', 'crud', 'com.gear.oa', 'oa', 'orderDetail', '订单明细', 'Joshi', '0', '/', '{\"treeCode\":null,\"treeName\":null,\"treeParentCode\":null,\"parentMenuId\":null}', 'admin', '2025-09-02 03:13:43', 'admin', '2025-09-02 11:22:59', NULL);
INSERT INTO `gen_table` (`table_id`, `table_name`, `table_comment`, `sub_table_name`, `sub_table_fk_name`, `class_name`, `tpl_category`, `package_name`, `module_name`, `business_name`, `function_name`, `function_author`, `gen_type`, `gen_path`, `options`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (1962716819639496705, 'gear_other_income', '其他收入表', NULL, NULL, 'GearOtherIncome', 'crud', 'com.gear.oa', 'oa', 'otherIncome', '其他收入', 'Joshi', '0', '/', '{\"treeCode\":null,\"treeName\":null,\"treeParentCode\":null,\"parentMenuId\":null}', 'admin', '2025-09-02 03:13:45', 'admin', '2025-09-02 11:24:26', NULL);
INSERT INTO `gen_table` (`table_id`, `table_name`, `table_comment`, `sub_table_name`, `sub_table_fk_name`, `class_name`, `tpl_category`, `package_name`, `module_name`, `business_name`, `function_name`, `function_author`, `gen_type`, `gen_path`, `options`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (1962716827457679361, 'gear_receivable', '应收款管理表(宽松版)', NULL, NULL, 'GearReceivable', 'crud', 'com.gear.oa', 'oa', 'receivable', '应收款管理(宽松版)', 'Joshi', '0', '/', '{\"treeCode\":null,\"treeName\":null,\"treeParentCode\":null,\"parentMenuId\":null}', 'admin', '2025-09-02 03:12:52', 'admin', '2025-09-02 11:22:23', NULL);
INSERT INTO `gen_table` (`table_id`, `table_name`, `table_comment`, `sub_table_name`, `sub_table_fk_name`, `class_name`, `tpl_category`, `package_name`, `module_name`, `business_name`, `function_name`, `function_author`, `gen_type`, `gen_path`, `options`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (1962716828581752834, 'gear_customer', 'CRM 客户表', NULL, NULL, 'GearCustomer', 'crud', 'com.gear.oa', 'oa', 'customer', 'CRM 客户', 'Joshi', '0', '/', '{\"treeCode\":null,\"treeName\":null,\"treeParentCode\":null,\"parentMenuId\":null}', 'admin', '2025-09-02 03:12:49', 'admin', '2025-09-02 11:21:31', NULL);
INSERT INTO `gen_table` (`table_id`, `table_name`, `table_comment`, `sub_table_name`, `sub_table_fk_name`, `class_name`, `tpl_category`, `package_name`, `module_name`, `business_name`, `function_name`, `function_author`, `gen_type`, `gen_path`, `options`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (1962716831584874497, 'gear_return_exchange', '退换货管理表', NULL, NULL, 'GearReturnExchange', 'crud', 'com.gear.oa', 'oa', 'returnExchange', '退换货管理', 'Joshi', '0', '/', '{\"treeCode\":null,\"treeName\":null,\"treeParentCode\":null,\"parentMenuId\":null}', 'admin', '2025-09-02 03:13:44', 'admin', '2025-09-02 11:24:00', NULL);
INSERT INTO `gen_table` (`table_id`, `table_name`, `table_comment`, `sub_table_name`, `sub_table_fk_name`, `class_name`, `tpl_category`, `package_name`, `module_name`, `business_name`, `function_name`, `function_author`, `gen_type`, `gen_path`, `options`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (1962716834499915777, 'gear_order', '订单主表', NULL, NULL, 'GearOrder', 'crud', 'com.gear.oa', 'oa', 'order', '订单主', 'Joshi', '0', '/', '{\"treeCode\":null,\"treeName\":null,\"treeParentCode\":null,\"parentMenuId\":null}', 'admin', '2025-09-02 03:13:43', 'admin', '2025-09-02 11:23:34', NULL);
INSERT INTO `gen_table` (`table_id`, `table_name`, `table_comment`, `sub_table_name`, `sub_table_fk_name`, `class_name`, `tpl_category`, `package_name`, `module_name`, `business_name`, `function_name`, `function_author`, `gen_type`, `gen_path`, `options`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (1962716846587899905, 'gear_payable', '应付款管理表(宽松版)', NULL, NULL, 'GearPayable', 'crud', 'com.gear.oa', 'oa', 'payable', '应付款管理(宽松版)', 'Joshi', '0', '/', '{\"treeCode\":null,\"treeName\":null,\"treeParentCode\":null,\"parentMenuId\":null}', 'admin', '2025-09-02 03:12:51', 'admin', '2025-09-02 11:21:57', NULL);
INSERT INTO `gen_table` (`table_id`, `table_name`, `table_comment`, `sub_table_name`, `sub_table_fk_name`, `class_name`, `tpl_category`, `package_name`, `module_name`, `business_name`, `function_name`, `function_author`, `gen_type`, `gen_path`, `options`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (1968181099847471105, 'gear_attendance_piece_detail', '考勤计件明细表 - 记录具体工件的数量和单价信息', NULL, NULL, 'GearAttendancePieceDetail', 'crud', 'com.gear.oa', 'oa', 'attendancePieceDetail', '考勤计件明细 - 记录具体工件的数量和单价信息', 'Joshi', '0', '/', '{\"treeCode\":null,\"treeName\":null,\"treeParentCode\":null,\"parentMenuId\":null}', 'admin', '2025-09-17 05:06:50', 'admin', '2025-09-17 13:12:23', NULL);
INSERT INTO `gen_table` (`table_id`, `table_name`, `table_comment`, `sub_table_name`, `sub_table_fk_name`, `class_name`, `tpl_category`, `package_name`, `module_name`, `business_name`, `function_name`, `function_author`, `gen_type`, `gen_path`, `options`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (1968491578640228353, 'gear_work_deduction', '订单下人员工作及扣款信息表', NULL, NULL, 'GearWorkDeduction', 'crud', 'com.gear.oa', 'oa', 'workDeduction', '订单下人员工作及扣款信息', 'Joshi', '0', '/', '{\"treeCode\":null,\"treeName\":null,\"treeParentCode\":null,\"parentMenuId\":null}', 'admin', '2025-09-18 01:41:50', 'admin', '2025-09-18 09:46:08', NULL);
INSERT INTO `gen_table` (`table_id`, `table_name`, `table_comment`, `sub_table_name`, `sub_table_fk_name`, `class_name`, `tpl_category`, `package_name`, `module_name`, `business_name`, `function_name`, `function_author`, `gen_type`, `gen_path`, `options`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (2017065889925132290, 'mat_mat_price_history', '配料价格/均价变动历史表', NULL, NULL, 'MatMatPriceHistory', 'crud', 'com.gear.mat', 'mat', 'matPriceHistory', '配料价格/均价变动历史', 'ruoyi', '0', '/', '{\"treeCode\":null,\"treeName\":null,\"treeParentCode\":null,\"parentMenuId\":null}', 'admin', '2026-01-30 02:33:39', 'admin', '2026-01-30 10:44:32', NULL);
INSERT INTO `gen_table` (`table_id`, `table_name`, `table_comment`, `sub_table_name`, `sub_table_fk_name`, `class_name`, `tpl_category`, `package_name`, `module_name`, `business_name`, `function_name`, `function_author`, `gen_type`, `gen_path`, `options`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (2017065893385433090, 'mat_material', '配料配件基础信息表', NULL, NULL, 'MatMaterial', 'crud', 'com.gear.mat', 'mat', 'material', '配料配件基础信息', 'ruoyi', '0', '/', '{\"treeCode\":null,\"treeName\":null,\"treeParentCode\":null,\"parentMenuId\":null}', 'admin', '2026-01-30 02:33:38', 'admin', '2026-01-30 10:43:38', NULL);
INSERT INTO `gen_table` (`table_id`, `table_name`, `table_comment`, `sub_table_name`, `sub_table_fk_name`, `class_name`, `tpl_category`, `package_name`, `module_name`, `business_name`, `function_name`, `function_author`, `gen_type`, `gen_path`, `options`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (2017065896770236417, 'mat_material_out', '配料出库表', NULL, NULL, 'MatMaterialOut', 'crud', 'com.gear.mat', 'mat', 'materialOut', '配料出库', 'ruoyi', '0', '/', '{\"treeCode\":null,\"treeName\":null,\"treeParentCode\":null,\"parentMenuId\":null}', 'admin', '2026-01-30 02:33:40', 'admin', '2026-01-30 13:48:42', NULL);
INSERT INTO `gen_table` (`table_id`, `table_name`, `table_comment`, `sub_table_name`, `sub_table_fk_name`, `class_name`, `tpl_category`, `package_name`, `module_name`, `business_name`, `function_name`, `function_author`, `gen_type`, `gen_path`, `options`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (2017065900159234050, 'mat_product', '产品基础信息表', NULL, NULL, 'MatProduct', 'crud', 'com.gear.mat', 'mat', 'product', '产品基础信息', 'ruoyi', '0', '/', '{\"treeCode\":null,\"treeName\":null,\"treeParentCode\":null,\"parentMenuId\":null}', 'admin', '2026-01-30 02:33:38', 'admin', '2026-01-30 11:33:12', NULL);
INSERT INTO `gen_table` (`table_id`, `table_name`, `table_comment`, `sub_table_name`, `sub_table_fk_name`, `class_name`, `tpl_category`, `package_name`, `module_name`, `business_name`, `function_name`, `function_author`, `gen_type`, `gen_path`, `options`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (2017065903527260162, 'mat_product_material_relation', '产品-配料关联中间表', NULL, NULL, 'MatProductMaterialRelation', 'crud', 'com.gear.mat', 'mat', 'productMaterialRelation', '产品-配料关联中间', 'ruoyi', '0', '/', '{\"treeCode\":null,\"treeName\":null,\"treeParentCode\":null,\"parentMenuId\":null}', 'admin', '2026-01-30 02:33:39', 'admin', '2026-01-30 10:44:56', NULL);
INSERT INTO `gen_table` (`table_id`, `table_name`, `table_comment`, `sub_table_name`, `sub_table_fk_name`, `class_name`, `tpl_category`, `package_name`, `module_name`, `business_name`, `function_name`, `function_author`, `gen_type`, `gen_path`, `options`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (2017065906912063489, 'mat_purchase', '采购单主表(管理在途库存)', NULL, NULL, 'MatPurchase', 'crud', 'com.gear.mat', 'mat', 'purchase', '采购单主(管理在途库存)', 'ruoyi', '0', '/', '{\"treeCode\":null,\"treeName\":null,\"treeParentCode\":null,\"parentMenuId\":null}', 'admin', '2026-01-30 02:33:39', 'admin', '2026-01-30 11:35:49', NULL);
INSERT INTO `gen_table` (`table_id`, `table_name`, `table_comment`, `sub_table_name`, `sub_table_fk_name`, `class_name`, `tpl_category`, `package_name`, `module_name`, `business_name`, `function_name`, `function_author`, `gen_type`, `gen_path`, `options`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (2017065910301061121, 'mat_purchase_in_detail', '入库记录', NULL, NULL, 'MatPurchaseInDetail', 'crud', 'com.gear.mat', 'mat', 'purchaseInDetail', '入库记录', 'ruoyi', '0', '/', '{\"treeCode\":null,\"treeName\":null,\"treeParentCode\":null,\"parentMenuId\":null}', 'admin', '2026-01-30 02:33:40', 'admin', '2026-01-30 10:46:12', NULL);