Skip to content

Commit 3640081

Browse files
Update schema-design.md
1 parent a6ee713 commit 3640081

File tree

1 file changed

+25
-28
lines changed

1 file changed

+25
-28
lines changed

schema-design.md

Lines changed: 25 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,28 @@
1-
# MySQL Database Design for Smart Clinic Management System
1+
name: Java Backend Compilation
22

3-
-- Bảng: Patients
4-
CREATE TABLE Patients (
5-
patient_id INT PRIMARY KEY AUTO_INCREMENT,
6-
first_name VARCHAR(50) NOT NULL,
7-
last_name VARCHAR(50) NOT NULL,
8-
dob DATE,
9-
phone_number VARCHAR(15) UNIQUE,
10-
email VARCHAR(100) UNIQUE
11-
);
3+
# Điều kiện kích hoạt workflow
4+
on:
5+
push:
6+
branches: [ main ]
7+
pull_request:
8+
branches: [ main ]
129

13-
-- Bảng: Doctors
14-
CREATE TABLE Doctors (
15-
doctor_id INT PRIMARY KEY AUTO_INCREMENT,
16-
user_id INT UNIQUE, -- Liên kết với bảng Users/Auth
17-
specialization VARCHAR(100) NOT NULL,
18-
license_number VARCHAR(50) UNIQUE
19-
-- ... các cột khác
20-
);
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
# Bước 1: Checkout mã nguồn
15+
- uses: actions/checkout@v4
16+
17+
# Bước 2: Thiết lập Java
18+
- name: Set up JDK 17
19+
uses: actions/setup-java@v4
20+
with:
21+
java-version: '17'
22+
distribution: 'temurin'
23+
cache: maven
2124

22-
-- Bảng: Appointments
23-
CREATE TABLE Appointments (
24-
appointment_id INT PRIMARY KEY AUTO_INCREMENT,
25-
patient_id INT,
26-
doctor_id INT,
27-
appointment_date DATETIME NOT NULL,
28-
status ENUM('Scheduled', 'Completed', 'Cancelled'),
29-
FOREIGN KEY (patient_id) REFERENCES Patients(patient_id),
30-
FOREIGN KEY (doctor_id) REFERENCES Doctors(doctor_id)
31-
);
25+
# Bước 3: Biên dịch và Đóng gói
26+
- name: Build with Maven Wrapper
27+
# SỬ DỤNG: ./mvnw package -DskipTests để gọi Maven Wrapper
28+
run: ./mvnw package -DskipTests

0 commit comments

Comments
 (0)