1111
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
server:
|
||||
port: 8081
|
||||
address: 0.0.0.0
|
||||
servlet:
|
||||
context-path: /api
|
||||
|
||||
@@ -9,7 +10,7 @@ spring:
|
||||
|
||||
datasource:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://localhost:3307/pet_hospital_dev?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8
|
||||
url: jdbc:mysql://localhost:3306/pet_hospital_dev?useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=GMT%2B8
|
||||
username: root
|
||||
password: qq5211314
|
||||
hikari:
|
||||
|
||||
@@ -8,7 +8,6 @@ spring:
|
||||
active: dev
|
||||
application:
|
||||
name: pet-hospital
|
||||
|
||||
jackson:
|
||||
time-zone: GMT+8
|
||||
date-format: yyyy-MM-dd HH:mm:ss
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -119,7 +119,8 @@ CREATE TABLE IF NOT EXISTS pet (
|
||||
species VARCHAR(50),
|
||||
breed VARCHAR(100),
|
||||
gender VARCHAR(10), -- 修改为VARCHAR以支持MALE/FEMALE
|
||||
birthday DATE, -- 添加birthday字段而不是age
|
||||
birthday DATE, -- 添加birthday字段
|
||||
age INT, -- 添加age字段
|
||||
weight DOUBLE, -- 添加weight字段
|
||||
photo VARCHAR(255), -- 添加photo字段
|
||||
remark TEXT, -- 添加remark字段
|
||||
@@ -128,6 +129,9 @@ CREATE TABLE IF NOT EXISTS pet (
|
||||
deleted INT DEFAULT 0
|
||||
);
|
||||
|
||||
-- 为已存在的pet表添加age列
|
||||
ALTER TABLE pet ADD COLUMN IF NOT EXISTS age INT AFTER birthday;
|
||||
|
||||
-- 检查并创建doctor表
|
||||
CREATE TABLE IF NOT EXISTS doctor (
|
||||
id BIGINT AUTO_INCREMENT PRIMARY KEY,
|
||||
@@ -223,7 +227,7 @@ CREATE TABLE IF NOT EXISTS report (
|
||||
summary TEXT,
|
||||
attachment_url VARCHAR(255),
|
||||
doctor_id BIGINT,
|
||||
report_type VARCHAR(50) NOT NULL, -- REVENUE收入, CUSTOMER客户, PET宠物, DRUG药品
|
||||
report_type VARCHAR(50) DEFAULT 'DIAGNOSIS', -- REVENUE收入, CUSTOMER客户, PET宠物, DRUG药品, DIAGNOSIS检查报告
|
||||
report_data JSON,
|
||||
period_start DATE,
|
||||
period_end DATE,
|
||||
@@ -233,6 +237,9 @@ CREATE TABLE IF NOT EXISTS report (
|
||||
deleted INT DEFAULT 0
|
||||
);
|
||||
|
||||
-- 为已存在的report表修改report_type默认值
|
||||
ALTER TABLE report MODIFY COLUMN report_type VARCHAR(50) DEFAULT 'DIAGNOSIS';
|
||||
|
||||
-- 检查并创建stock_in表
|
||||
CREATE TABLE IF NOT EXISTS stock_in (
|
||||
id BIGINT AUTO_INCREMENT PRIMARY KEY,
|
||||
|
||||
Reference in New Issue
Block a user