Files
CustomAuthenticationEntryPoint/db/migration/V005__Create_menu_option.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

12 lines
673 B
SQL

CREATE TABLE `menu_option`(
`id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '옵션 ID',
`title` varchar(50) 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 '옵션 변경자',
`menu_id` bigint unsigned NOT NULL COMMENT '연관된 카페 메뉴 ID',
PRIMARY KEY (`id`),
KEY `menu_id` (`menu_id`),
FOREIGN KEY (`menu_id`) REFERENCES `cafe_menu` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;