Files
CustomAuthenticationEntryPoint/db/migration/V006__Create_option_detail.sql
Hanbin Lee 3e7b928d8f [#34] feat: JPA Auditing 기능 수정
- auditor에 Security Authentication 적용(createdBy, updatedBy)
- BaseEntity, BaseTimeEntity 분리
- AuditingConfig 파일 common 모듈 내 공통화(including AuditorAware)
- DDL created_by, updated_by type 변경 (varchar(20) > varchar(320), email 최대크기로 설정)
2023-02-20 00:40:37 +09:00

13 lines
783 B
SQL

CREATE TABLE `option_detail` (
`id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '옵션 상세 ID',
`name` varchar(50) NOT NULL COMMENT '옵션 상세명',
`extra_price` decimal(10, 2) NOT NULL COMMENT '옵션 추가 요금',
`created_at` datetime NOT NULL COMMENT '옵션 상세 등록날짜',
`created_by` varchar(320) NOT NULL COMMENT '옵션 상세 등록자',
`updated_at` datetime COMMENT '옵션 상세 변경날짜',
`updated_by` varchar(320) NULL COMMENT '옵션 상세 변경자',
`option_id` bigint unsigned NOT NULL COMMENT '연관된 옵션 ID',
PRIMARY KEY (`id`),
KEY `option_id` (`option_id`),
FOREIGN KEY (`option_id`) REFERENCES `menu_option` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;