Skip to content

Commit

Permalink
fix: delete PoseKeyPointSnapshot createdAt, modifiedAt
Browse files Browse the repository at this point in the history
  • Loading branch information
DongGeon0908 committed Jul 30, 2024
1 parent 3a848f2 commit bdf7029
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
4 changes: 1 addition & 3 deletions sql/DDL.sql
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,7 @@ CREATE TABLE `pose_key_point_snapshot`
`position` VARCHAR(32) NOT NULL COMMENT '스냅샷 위치',
`x` DECIMAL(20, 16) NOT NULL COMMENT 'x 좌표',
`y` DECIMAL(20, 16) NOT NULL COMMENT 'y 좌표',
`confidence` DECIMAL(20, 16) NOT NULL COMMENT '신뢰도',
`created_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '생성일',
`modified_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '수정일',
`confidence` DECIMAL(20, 16) NOT NULL COMMENT '신뢰도'
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='포즈 key point';
CREATE INDEX uidx__pose_snapshot_id__position ON pose_key_point_snapshot (pose_snapshot_id, position);
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.hero.alignlab.domain.pose.domain

import com.hero.alignlab.domain.common.domain.BaseEntity
import jakarta.persistence.*
import java.math.BigDecimal

Expand All @@ -27,4 +26,4 @@ class PoseKeyPointSnapshot(

@Column(name = "confidence")
val confidence: BigDecimal,
) : BaseEntity()
)
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import org.springframework.web.bind.annotation.RestController
class PoseSnapshotResource(
private val poseSnapshotFacade: PoseSnapshotFacade,
) {
@Operation(summary = "post snapshot 저장")
@Operation(summary = "pose snapshot 저장")
@PostMapping("/api/v1/pose-snapshots")
suspend fun loadPoseSnapshot(
user: AuthUser,
Expand Down

0 comments on commit bdf7029

Please sign in to comment.