Skip to content

Commit

Permalink
refactor(*): reformat all (#61)
Browse files Browse the repository at this point in the history
disable intellij google-java-format plugin and using google style xml imported configuration
  • Loading branch information
goldentrash authored Dec 22, 2024
1 parent b324e4b commit d287128
Show file tree
Hide file tree
Showing 115 changed files with 4,133 additions and 3,672 deletions.
248 changes: 200 additions & 48 deletions sql/v0.sql
Original file line number Diff line number Diff line change
@@ -1,68 +1,220 @@
create table
if not exists gdsc.event (
id bigint auto_increment primary key,
title varchar(255) NOT NULL,
content text NOT NULL,
location varchar(255) NOT NULL,
end_at datetime (6) NOT NULL,
start_at datetime (6) NOT NULL,
retrospect_content text NOT NULL
if not exists gdsc.event
(
id
bigint
auto_increment
primary
key,
title
varchar
(
255
) NOT NULL,
content text NOT NULL,
location varchar
(
255
) NOT NULL,
end_at datetime
(
6
) NOT NULL,
start_at datetime
(
6
) NOT NULL,
retrospect_content text NOT NULL
);

create table
if not exists gdsc.event_image (
id bigint auto_increment primary key,
event_id bigint NOT NULL,
url varchar(255) NOT NULL,
CONSTRAINT FOREIGN KEY (event_id) REFERENCES gdsc.event (id) ON UPDATE CASCADE ON DELETE CASCADE
if not exists gdsc.event_image
(
id
bigint
auto_increment
primary
key,
event_id
bigint
NOT
NULL,
url
varchar
(
255
) NOT NULL,
CONSTRAINT FOREIGN KEY
(
event_id
) REFERENCES gdsc.event
(
id
) ON UPDATE CASCADE
ON DELETE CASCADE
);

create table
if not exists gdsc.attendance (
id bigint auto_increment primary key,
event_id bigint NOT NULL,
active_qr_uuid varchar(255) NULL,
CONSTRAINT FOREIGN KEY (event_id) REFERENCES gdsc.event (id) ON UPDATE CASCADE ON DELETE CASCADE
if not exists gdsc.attendance
(
id
bigint
auto_increment
primary
key,
event_id
bigint
NOT
NULL,
active_qr_uuid
varchar
(
255
) NULL,
CONSTRAINT FOREIGN KEY
(
event_id
) REFERENCES gdsc.event
(
id
) ON UPDATE CASCADE
ON DELETE CASCADE
);

create table
if not exists gdsc.email_task (
task_id bigint auto_increment primary key,
is_sent boolean DEFAULT FALSE,
send_at datetime (6) NOT NULL,
email_content text NOT NULL,
email_subject varchar(255) NOT NULL
if not exists gdsc.email_task
(
task_id
bigint
auto_increment
primary
key,
is_sent
boolean
DEFAULT
FALSE,
send_at
datetime
(
6
) NOT NULL,
email_content text NOT NULL,
email_subject varchar
(
255
) NOT NULL
);

create table
if not exists gdsc.email_receivers (
task_id bigint NOT NULL,
receiver_email varchar(255) NOT NULL,
receiver_name varchar(255) NOT NULL,
CONSTRAINT FOREIGN KEY (task_id) REFERENCES gdsc.email_task (task_id) ON UPDATE CASCADE ON DELETE CASCADE
if not exists gdsc.email_receivers
(
task_id
bigint
NOT
NULL,
receiver_email
varchar
(
255
) NOT NULL,
receiver_name varchar
(
255
) NOT NULL,
CONSTRAINT FOREIGN KEY
(
task_id
) REFERENCES gdsc.email_task
(
task_id
) ON UPDATE CASCADE
ON DELETE CASCADE
);

create table
if not exists gdsc.member (
id bigint auto_increment primary key,
member_id varchar(255) UNIQUE NOT NULL,
member_name varchar(255) NOT NULL,
password varchar(255) NOT NULL,
member_role enum ('ADMIN', 'LEAD', 'MEMBER') NOT NULL,
batch varchar(255) NOT NULL,
department varchar(255) NOT NULL,
member_email varchar(255) NOT NULL,
is_activated boolean DEFAULT TRUE,
is_deleted boolean DEFAULT FALSE,
soft_deleted_at datetime (6) NULL
if not exists gdsc.member
(
id
bigint
auto_increment
primary
key,
member_id
varchar
(
255
) UNIQUE NOT NULL,
member_name varchar
(
255
) NOT NULL,
password varchar
(
255
) NOT NULL,
member_role enum
(
'ADMIN',
'LEAD',
'MEMBER'
) NOT NULL,
batch varchar
(
255
) NOT NULL,
department varchar
(
255
) NOT NULL,
member_email varchar
(
255
) NOT NULL,
is_activated boolean DEFAULT TRUE,
is_deleted boolean DEFAULT FALSE,
soft_deleted_at datetime
(
6
) NULL
);

create table
if not exists gdsc.participant (
id bigint auto_increment primary key,
member_id bigint NOT NULL,
attendance_id bigint NOT NULL,
attendance boolean DEFAULT FALSE,
CONSTRAINT FOREIGN KEY (member_id) REFERENCES gdsc.member (id) ON UPDATE CASCADE ON DELETE CASCADE,
CONSTRAINT FOREIGN KEY (attendance_id) REFERENCES gdsc.attendance (id) ON UPDATE CASCADE ON DELETE CASCADE
if not exists gdsc.participant
(
id
bigint
auto_increment
primary
key,
member_id
bigint
NOT
NULL,
attendance_id
bigint
NOT
NULL,
attendance
boolean
DEFAULT
FALSE,
CONSTRAINT
FOREIGN
KEY
(
member_id
) REFERENCES gdsc.member
(
id
) ON UPDATE CASCADE
ON DELETE CASCADE,
CONSTRAINT FOREIGN KEY
(
attendance_id
) REFERENCES gdsc.attendance
(
id
)
ON UPDATE CASCADE
ON DELETE CASCADE
);
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
@ConfigurationPropertiesScan
public class PlatformCoreApplication {

public static void main(String[] args) {
SpringApplication.run(PlatformCoreApplication.class, args);
}
public static void main(String[] args) {
SpringApplication.run(PlatformCoreApplication.class, args);
}

@PostConstruct
public void init() {
TimeZone.setDefault(TimeZone.getTimeZone("Asia/Seoul"));
}
@PostConstruct
public void init() {
TimeZone.setDefault(TimeZone.getTimeZone("Asia/Seoul"));
}
}
Loading

0 comments on commit d287128

Please sign in to comment.