Skip to content

Commit 8ea09ee

Browse files
committed
chore: add recordid column in station table
1 parent e8e4ce7 commit 8ea09ee

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

src/main/resources/db/migration/V1__Create_tables_User_and_Station.sql

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@ CREATE TABLE users (
77
);
88

99
CREATE TABLE station (
10-
id SERIAL PRIMARY KEY,
11-
name VARCHAR(100) NOT NULL,
12-
station_code VARCHAR(20) NOT NULL,
13-
latitude DECIMAL(9,6) NOT NULL,
14-
longitude DECIMAL(9,6) NOT NULL,
15-
address VARCHAR(100),
16-
city VARCHAR(20),
17-
description VARCHAR(300),
18-
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP
10+
id VARCHAR(40) PRIMARY KEY,
11+
recordId VARCHAR(100) NOT NULL,
12+
name VARCHAR(100) NOT NULL,
13+
station_code VARCHAR(20) NOT NULL,
14+
latitude DECIMAL(9,6) NOT NULL,
15+
longitude DECIMAL(9,6) NOT NULL,
16+
address VARCHAR(100),
17+
city VARCHAR(20),
18+
description VARCHAR(300),
19+
last_update TIMESTAMP DEFAULT CURRENT_TIMESTAMP
1920
);

0 commit comments

Comments
 (0)