[#44] 매장 기능 도입 #45

Merged
pricelees merged 116 commits from feat/#44 into main 2025-09-20 03:15:06 +00:00
2 changed files with 4 additions and 13 deletions
Showing only changes of commit cdf7a98867 - Show all commits

View File

@ -4,11 +4,8 @@ import jakarta.persistence.Column
import jakarta.persistence.Entity import jakarta.persistence.Entity
import jakarta.persistence.EntityListeners import jakarta.persistence.EntityListeners
import jakarta.persistence.Table import jakarta.persistence.Table
import org.springframework.data.annotation.CreatedDate
import org.springframework.data.annotation.LastModifiedDate
import org.springframework.data.jpa.domain.support.AuditingEntityListener import org.springframework.data.jpa.domain.support.AuditingEntityListener
import roomescape.common.entity.PersistableBaseEntity import roomescape.common.entity.AuditingBaseEntity
import java.time.LocalDateTime
@Entity @Entity
@EntityListeners(AuditingEntityListener::class) @EntityListeners(AuditingEntityListener::class)
@ -29,12 +26,4 @@ class StoreEntity(
val businessRegNum: String, val businessRegNum: String,
val regionCode: String, val regionCode: String,
) : PersistableBaseEntity(id) { ) : AuditingBaseEntity(id)
@CreatedDate
@Column(updatable = false)
lateinit var createdAt: LocalDateTime
@LastModifiedDate
lateinit var updatedAt: LocalDateTime
}

View File

@ -17,7 +17,9 @@ create table if not exists store(
region_code varchar(10) not null, region_code varchar(10) not null,
created_at timestamp not null, created_at timestamp not null,
created_by bigint not null,
updated_at timestamp not null, updated_at timestamp not null,
updated_by bigint not null,
constraint uk_store__name unique (name), constraint uk_store__name unique (name),
constraint uk_store__contact unique (contact), constraint uk_store__contact unique (contact),