From 78fa645b4c24454c26d50bbb36ed565d81e27d5a Mon Sep 17 00:00:00 2001 From: louis <869322496@qq.com> Date: Wed, 28 Feb 2024 16:00:07 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=BB=BAsql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 +- README.md | 10 ---------- deploy/sql/contracts.sql | 11 +++++++++++ deploy/sql/vehicle_usage.sql | 15 +++++++++++++++ 4 files changed, 27 insertions(+), 11 deletions(-) create mode 100644 deploy/sql/contracts.sql create mode 100644 deploy/sql/vehicle_usage.sql diff --git a/.gitignore b/.gitignore index 7fbd170..b3626e6 100644 --- a/.gitignore +++ b/.gitignore @@ -73,5 +73,5 @@ out # temp data __data -public/upload +public/upload/* types/env.d.ts \ No newline at end of file diff --git a/README.md b/README.md index 6ff61a3..c62d18a 100644 --- a/README.md +++ b/README.md @@ -6,21 +6,11 @@ - `mysql` `8.x`+ - 使用 [`pnpm`](https://pnpm.io/zh/) 包管理器安装项目依赖 -演示环境账号密码: | 账号 | 密码 | 权限 | | :-------: | :----: | :--------: | | admin | a123456 | 超级管理员 | -> 所有新建的用户初始密码都为 a123456 - -本地部署账号密码: - -| 账号 | 密码 | 权限 | -| :-------: | :----: | :--------: | -| admin | a123456 | 超级管理员 | - - ## 本地开发 diff --git a/deploy/sql/contracts.sql b/deploy/sql/contracts.sql new file mode 100644 index 0000000..307c789 --- /dev/null +++ b/deploy/sql/contracts.sql @@ -0,0 +1,11 @@ +CREATE TABLE contracts ( + id INT AUTO_INCREMENT PRIMARY KEY COMMENT '合同编号', + contract_title VARCHAR(255) COMMENT '合同标题', + contract_type VARCHAR(255) COMMENT '合同类型', + party_a VARCHAR(255) COMMENT '甲方', + party_b VARCHAR(255) COMMENT '乙方', + signing_date DATE COMMENT '签订日期', + delivery_deadline DATE COMMENT '交付期限', + review_result VARCHAR(255) COMMENT '审核结果', + attachment_url VARCHAR(255) COMMENT '下载附件' +); \ No newline at end of file diff --git a/deploy/sql/vehicle_usage.sql b/deploy/sql/vehicle_usage.sql new file mode 100644 index 0000000..081289b --- /dev/null +++ b/deploy/sql/vehicle_usage.sql @@ -0,0 +1,15 @@ +CREATE TABLE vehicle_usage ( + id INT AUTO_INCREMENT PRIMARY KEY COMMENT '主键,用于唯一标识每条记录', + `year` INT COMMENT '年度', + vehicle_name VARCHAR(255) COMMENT '外出使用的车辆名称', + license_plate VARCHAR(255) COMMENT '车牌号', + applicant VARCHAR(255) COMMENT '申请人', + driver VARCHAR(255) COMMENT '出行司机', + current_mileage FLOAT COMMENT '当前车辆里程数(KM)', + expected_travel_time DATETIME COMMENT '预计出行时间', + purpose VARCHAR(255) COMMENT '使用事由', + actual_return_time DATETIME COMMENT '实际回司时间', + return_mileage FLOAT COMMENT '回城车辆里程数(KM)', + approval_by_leader VARCHAR(255) COMMENT '公司领导审批', + remarks VARCHAR(255) COMMENT '备注' +); \ No newline at end of file