Skip to content

Commit d287128

Browse files
authored
refactor(*): reformat all (#61)
disable intellij google-java-format plugin and using google style xml imported configuration
1 parent b324e4b commit d287128

File tree

115 files changed

+4133
-3672
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+4133
-3672
lines changed

sql/v0.sql

+200-48
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,220 @@
11
create table
2-
if not exists gdsc.event (
3-
id bigint auto_increment primary key,
4-
title varchar(255) NOT NULL,
5-
content text NOT NULL,
6-
location varchar(255) NOT NULL,
7-
end_at datetime (6) NOT NULL,
8-
start_at datetime (6) NOT NULL,
9-
retrospect_content text NOT NULL
2+
if not exists gdsc.event
3+
(
4+
id
5+
bigint
6+
auto_increment
7+
primary
8+
key,
9+
title
10+
varchar
11+
(
12+
255
13+
) NOT NULL,
14+
content text NOT NULL,
15+
location varchar
16+
(
17+
255
18+
) NOT NULL,
19+
end_at datetime
20+
(
21+
6
22+
) NOT NULL,
23+
start_at datetime
24+
(
25+
6
26+
) NOT NULL,
27+
retrospect_content text NOT NULL
1028
);
1129

1230
create table
13-
if not exists gdsc.event_image (
14-
id bigint auto_increment primary key,
15-
event_id bigint NOT NULL,
16-
url varchar(255) NOT NULL,
17-
CONSTRAINT FOREIGN KEY (event_id) REFERENCES gdsc.event (id) ON UPDATE CASCADE ON DELETE CASCADE
31+
if not exists gdsc.event_image
32+
(
33+
id
34+
bigint
35+
auto_increment
36+
primary
37+
key,
38+
event_id
39+
bigint
40+
NOT
41+
NULL,
42+
url
43+
varchar
44+
(
45+
255
46+
) NOT NULL,
47+
CONSTRAINT FOREIGN KEY
48+
(
49+
event_id
50+
) REFERENCES gdsc.event
51+
(
52+
id
53+
) ON UPDATE CASCADE
54+
ON DELETE CASCADE
1855
);
1956

2057
create table
21-
if not exists gdsc.attendance (
22-
id bigint auto_increment primary key,
23-
event_id bigint NOT NULL,
24-
active_qr_uuid varchar(255) NULL,
25-
CONSTRAINT FOREIGN KEY (event_id) REFERENCES gdsc.event (id) ON UPDATE CASCADE ON DELETE CASCADE
58+
if not exists gdsc.attendance
59+
(
60+
id
61+
bigint
62+
auto_increment
63+
primary
64+
key,
65+
event_id
66+
bigint
67+
NOT
68+
NULL,
69+
active_qr_uuid
70+
varchar
71+
(
72+
255
73+
) NULL,
74+
CONSTRAINT FOREIGN KEY
75+
(
76+
event_id
77+
) REFERENCES gdsc.event
78+
(
79+
id
80+
) ON UPDATE CASCADE
81+
ON DELETE CASCADE
2682
);
2783

2884
create table
29-
if not exists gdsc.email_task (
30-
task_id bigint auto_increment primary key,
31-
is_sent boolean DEFAULT FALSE,
32-
send_at datetime (6) NOT NULL,
33-
email_content text NOT NULL,
34-
email_subject varchar(255) NOT NULL
85+
if not exists gdsc.email_task
86+
(
87+
task_id
88+
bigint
89+
auto_increment
90+
primary
91+
key,
92+
is_sent
93+
boolean
94+
DEFAULT
95+
FALSE,
96+
send_at
97+
datetime
98+
(
99+
6
100+
) NOT NULL,
101+
email_content text NOT NULL,
102+
email_subject varchar
103+
(
104+
255
105+
) NOT NULL
35106
);
36107

37108
create table
38-
if not exists gdsc.email_receivers (
39-
task_id bigint NOT NULL,
40-
receiver_email varchar(255) NOT NULL,
41-
receiver_name varchar(255) NOT NULL,
42-
CONSTRAINT FOREIGN KEY (task_id) REFERENCES gdsc.email_task (task_id) ON UPDATE CASCADE ON DELETE CASCADE
109+
if not exists gdsc.email_receivers
110+
(
111+
task_id
112+
bigint
113+
NOT
114+
NULL,
115+
receiver_email
116+
varchar
117+
(
118+
255
119+
) NOT NULL,
120+
receiver_name varchar
121+
(
122+
255
123+
) NOT NULL,
124+
CONSTRAINT FOREIGN KEY
125+
(
126+
task_id
127+
) REFERENCES gdsc.email_task
128+
(
129+
task_id
130+
) ON UPDATE CASCADE
131+
ON DELETE CASCADE
43132
);
44133

45134
create table
46-
if not exists gdsc.member (
47-
id bigint auto_increment primary key,
48-
member_id varchar(255) UNIQUE NOT NULL,
49-
member_name varchar(255) NOT NULL,
50-
password varchar(255) NOT NULL,
51-
member_role enum ('ADMIN', 'LEAD', 'MEMBER') NOT NULL,
52-
batch varchar(255) NOT NULL,
53-
department varchar(255) NOT NULL,
54-
member_email varchar(255) NOT NULL,
55-
is_activated boolean DEFAULT TRUE,
56-
is_deleted boolean DEFAULT FALSE,
57-
soft_deleted_at datetime (6) NULL
135+
if not exists gdsc.member
136+
(
137+
id
138+
bigint
139+
auto_increment
140+
primary
141+
key,
142+
member_id
143+
varchar
144+
(
145+
255
146+
) UNIQUE NOT NULL,
147+
member_name varchar
148+
(
149+
255
150+
) NOT NULL,
151+
password varchar
152+
(
153+
255
154+
) NOT NULL,
155+
member_role enum
156+
(
157+
'ADMIN',
158+
'LEAD',
159+
'MEMBER'
160+
) NOT NULL,
161+
batch varchar
162+
(
163+
255
164+
) NOT NULL,
165+
department varchar
166+
(
167+
255
168+
) NOT NULL,
169+
member_email varchar
170+
(
171+
255
172+
) NOT NULL,
173+
is_activated boolean DEFAULT TRUE,
174+
is_deleted boolean DEFAULT FALSE,
175+
soft_deleted_at datetime
176+
(
177+
6
178+
) NULL
58179
);
59180

60181
create table
61-
if not exists gdsc.participant (
62-
id bigint auto_increment primary key,
63-
member_id bigint NOT NULL,
64-
attendance_id bigint NOT NULL,
65-
attendance boolean DEFAULT FALSE,
66-
CONSTRAINT FOREIGN KEY (member_id) REFERENCES gdsc.member (id) ON UPDATE CASCADE ON DELETE CASCADE,
67-
CONSTRAINT FOREIGN KEY (attendance_id) REFERENCES gdsc.attendance (id) ON UPDATE CASCADE ON DELETE CASCADE
182+
if not exists gdsc.participant
183+
(
184+
id
185+
bigint
186+
auto_increment
187+
primary
188+
key,
189+
member_id
190+
bigint
191+
NOT
192+
NULL,
193+
attendance_id
194+
bigint
195+
NOT
196+
NULL,
197+
attendance
198+
boolean
199+
DEFAULT
200+
FALSE,
201+
CONSTRAINT
202+
FOREIGN
203+
KEY
204+
(
205+
member_id
206+
) REFERENCES gdsc.member
207+
(
208+
id
209+
) ON UPDATE CASCADE
210+
ON DELETE CASCADE,
211+
CONSTRAINT FOREIGN KEY
212+
(
213+
attendance_id
214+
) REFERENCES gdsc.attendance
215+
(
216+
id
217+
)
218+
ON UPDATE CASCADE
219+
ON DELETE CASCADE
68220
);

src/main/java/gdsc/konkuk/platformcore/PlatformCoreApplication.java

+7-7
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
@ConfigurationPropertiesScan
1111
public class PlatformCoreApplication {
1212

13-
public static void main(String[] args) {
14-
SpringApplication.run(PlatformCoreApplication.class, args);
15-
}
13+
public static void main(String[] args) {
14+
SpringApplication.run(PlatformCoreApplication.class, args);
15+
}
1616

17-
@PostConstruct
18-
public void init() {
19-
TimeZone.setDefault(TimeZone.getTimeZone("Asia/Seoul"));
20-
}
17+
@PostConstruct
18+
public void init() {
19+
TimeZone.setDefault(TimeZone.getTimeZone("Asia/Seoul"));
20+
}
2121
}

0 commit comments

Comments
 (0)