
MySQL ์คํค๋ง(dailylog) ์ด๊ธฐํ ๋ฐ ์ฌ์์ฑ
DROP DATABASE IF EXISTS dailylogCREATE DATABASE dailylog CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ciSpring Boot ์ ํ๋ฆฌ์ผ์ด์ ์ ์ ๊ธฐ๋ ํ์ธ (port 9000)
daily_log ํ
์ด๋ธ ์ ์ฒด ์กฐํ SQL ํ์ธ
ํ๋ก ํธ์๋ โ ๋ฐฑ์๋ ๋ฐ์ดํฐ ์กฐํ ํ๋ฆ ์ฌํ์ธ
DataGrid / FullCalendar ์ ํ์ ์ํ ๋ฐ์ดํฐ ๊ตฌ์กฐ ์ ๊ฒ
์ด๋ฒ ์ฃผ(ํ~๊ธ) ๊ฐ๋ฐ ๊ณํ ํ์ ๋ฐ ๋ธ๋์น ์ ๋ต ๊ณ ๋ฏผ
MySQL Workbench์์ Schema Drop โ ์ฌ์์ฑ์ ๋ฌธ์ ์์
(๋จ, ์ฐ๊ฒฐ ๋๊น(Error 2013)์ ์ผ์์ ์ผ ์ ์์)
DB ์ด๊ธฐํ ์ดํ ๋ฐ๋์:
USE dailylogSHOW TABLESSELECT * FROM daily_log์ ์ฒด ์กฐํ์ ๊ธฐ์ค ์ ๋ ฌ์ ํ๋ก ํธ UX ๊ธฐ์ค(created_at DESC) ์ผ๋ก ์ก๋ ๊ฒ ๋ง๋ค
์ง๊ธ ๊ตฌ์กฐ์์๋ CRUD๋ณด๋ค ๋ฐ์ดํฐ ๋ชจ๋ธ ํ์ฅ(category, calendar) ์ด ๋ค์ ๋ณ๋ชฉ์ด๋ค
์ด๋ฒ ์ฃผ ์์ ์ โ๊ธฐ๋ฅ ์ถ๊ฐโ๊ฐ ์๋๋ผ ๊ตฌ์กฐ ์ ํ + ์์ฑ๋์ ์ง์คํด์ผ ํ๋ค
FullCalendar๋ฅผ ๋ฉ์ธ ํ๋ฉด์ผ๋ก ๋ฐฐ์น
daily_log ๋ฐ์ดํฐ๋ฅผ event ํํ๋ก ๋งคํ
titlestart (created_at or log_date)backgroundColor (category color โ ์์๊ฐ)์ ์ด๋(prev / next) ์ ํด๋น ์ ๋ฐ์ดํฐ ์ฌ์กฐํ
DataGrid๋ ๋ณด์กฐ ๋ทฐ๋ก ์ ์ง