Compare commits

...

3 Commits

7 changed files with 3034 additions and 1 deletions

View File

@ -0,0 +1,18 @@
package roomescape.region.infrastructure.persistence
import jakarta.persistence.Entity
import jakarta.persistence.Id
import jakarta.persistence.Table
@Entity
@Table(name = "region")
class RegionEntity(
@Id
val code: String,
val sidoCode: String,
val sigunguCode: String,
val dongCode: String,
val sidoName: String,
val sigunguName: String,
val dongName: String,
)

View File

@ -0,0 +1,5 @@
package roomescape.region.infrastructure.persistence
import org.springframework.data.jpa.repository.JpaRepository
interface RegionRepository : JpaRepository<RegionEntity, String>

View File

@ -4,7 +4,7 @@ server:
spring:
sql:
init:
schema-locations: classpath:schema/schema-mysql.sql
mode: never
jpa:
defer-datasource-initialization: false
hibernate:

View File

@ -17,7 +17,9 @@ spring:
password:
sql:
init:
mode: always
schema-locations: classpath:schema/schema-h2.sql
data-locations: classpath:schema/region-data.sql
security:
jwt:

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,13 @@
create table if not exists region (
code varchar(10) primary key,
sido_code varchar(2) not null,
sigungu_code varchar(3) not null,
dong_code varchar(5) not null ,
sido_name varchar(20) not null,
sigungu_name varchar(20) not null,
dong_name varchar(20) not null
);
create table if not exists members (
member_id bigint primary key,
email varchar(255) not null,

View File

@ -1,3 +1,13 @@
create table if not exists region (
code varchar(10) primary key,
sido_code varchar(2) not null,
sigungu_code varchar(3) not null,
dong_code varchar(5) not null ,
sido_name varchar(20) not null,
sigungu_name varchar(20) not null,
dong_name varchar(20) not null
);
create table if not exists members
(
member_id bigint primary key,