Skip to content

Commit

Permalink
ddl: walk 관련 ddl 수정
Browse files Browse the repository at this point in the history
related to : #38
  • Loading branch information
jieunjin committed Oct 20, 2024
1 parent e26c064 commit 5195a45
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 19 deletions.
5 changes: 5 additions & 0 deletions be/ddl/pet_walk_records.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
CREATE TABLE PET_WALK_RECORDS (
id BIGINT AUTO_INCREMENT PRIMARY KEY,
pet_id BIGINT NOT NULL,
walk_record_id BIGINT NOT NULL
);
5 changes: 0 additions & 5 deletions be/ddl/walk_record.pet.sql

This file was deleted.

6 changes: 6 additions & 0 deletions be/ddl/walk_record_center_position.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
CREATE TABLE WALK_RECORD_CENTER_POSITION (
id BIGINT AUTO_INCREMENT PRIMARY KEY,
walk_record_id BIGINT,
latitude DOUBLE NOT NULL,
longitude DOUBLE NOT NULL
);
5 changes: 5 additions & 0 deletions be/ddl/walk_record_path.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
CREATE TABLE WALK_RECORD_PATH (
id BIGINT AUTO_INCREMENT PRIMARY KEY,
latitude DOUBLE NOT NULL,
longitude DOUBLE NOT NULL
);
26 changes: 12 additions & 14 deletions be/ddl/walk_records.sql
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
CREATE TABLE WALK_RECORDS (
id BIGINT AUTO_INCREMENT PRIMARY KEY,
buddy_ids VARCHAR(255) NOT NULL,
start_date DATE NOT NULL,
end_date DATE NOT NULL,
start_time TIME NOT NULL,
end_time TIME NOT NULL,
total_time VARCHAR(20) NOT NULL,
note VARCHAR(255) NOT NULL,
center_position VARCHAR(255) NOT NULL,
map_level INT NOT NULL,
path TEXT NOT NULL,
path_image VARCHAR NOT NULL,
distance DOUBLE(10, 3) NOT NULL
CREATE TABLE WALK_RECORD (
id BIGINT AUTO_INCREMENT PRIMARY KEY,
start_date DATE NOT NULL,
end_date DATE NOT NULL,
start_time VARCHAR(255) NOT NULL,
end_time VARCHAR(255) NOT NULL,
total_time VARCHAR(255) NOT NULL,
note VARCHAR(255) NOT NULL,
center_position_id BIGINT,
map_level INT NOT NULL,
path_image_id BIGINT,
distance DOUBLE(10,3) NOT NULL
);
8 changes: 8 additions & 0 deletions be/ddl/walk_s3_image.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CREATE TABLE WALK_S3_IMAGE (
id BIGINT AUTO_INCREMENT PRIMARY KEY,
image_url VARCHAR(1000) NOT NULL,
file_name VARCHAR(255) NOT NULL,
file_type VARCHAR(255) NOT NULL,
file_size BIGINT NOT NULL,
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
);

0 comments on commit 5195a45

Please sign in to comment.