Skip to content

Commit

Permalink
feat: 원활한 테스트를 위한 테스트 데이터 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
amaran-th committed Aug 25, 2024
1 parent 3e6a415 commit 0e2bd89
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
15 changes: 8 additions & 7 deletions backend/src/main/resources/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ drop table if exists sw_css.milestone_history;

create table member
(
id bigint auto_increment primary key,
email varchar(255) not null,
name varchar(255) not null,
password varchar(255) not null,
phone_number varchar(255) not null,
is_deleted boolean not null,
created_at datetime(6) not null default current_timestamp(6)
id bigint auto_increment primary key,
email varchar(255) not null,
name varchar(255) not null,
password varchar(255) not null,
phone_number varchar(255) not null,
is_authorized boolean not null,
is_deleted boolean not null,
created_at datetime(6) not null default current_timestamp(6)
);

create table student_member
Expand Down
13 changes: 11 additions & 2 deletions backend/src/main/resources/test-data.sql
Original file line number Diff line number Diff line change
@@ -1,16 +1,25 @@
## member(student)
insert into member (email, name, password, phone_number, is_authorized, is_deleted)
values ('[email protected]', '송세연', 'password', '010-0000-0000', false);
values ('[email protected]', '송세연', '$2a$10$YyiOL/E5WjKrZPkB6eQSK.PwZtAO.z3JimFbq/Ky3u3rFf3XTGrWK', '010-0000-0000',
true, false);

insert into student_member (id, member_id, major_id, minor_id, double_major_id, career, career_detail)
values (202055558, 1, 1, null, null, 'EMPLOYMENT_COMPANY', 'IT 기업 개발자');

insert into member (email, name, password, phone_number, is_authorized, is_deleted)
values ('[email protected]', '아마란스', 'password', '010-0000-0000', false);
values ('[email protected]', '이다은', '$2a$10$YyiOL/E5WjKrZPkB6eQSK.PwZtAO.z3JimFbq/Ky3u3rFf3XTGrWK', '010-0000-0000',
true, false);

insert into student_member (id, member_id, major_id, minor_id, double_major_id, career, career_detail)
values (202055555, 2, 1, null, null, 'GRADUATE_SCHOOL', 'IT 기업 개발자');

insert into member (email, name, password, phone_number, is_authorized, is_deleted)
values ('[email protected]', '김하윤', '$2a$10$YyiOL/E5WjKrZPkB6eQSK.PwZtAO.z3JimFbq/Ky3u3rFf3XTGrWK', '010-0000-0000',
true, false);

insert into faculty_member (id, member_id)
values (1, 3);

## milestone histories
INSERT INTO sw_css.milestone_history (id, milestone_id, student_id, description, file_url, status, reject_reason, count,
activated_at, is_deleted, created_at)
Expand Down

0 comments on commit 0e2bd89

Please sign in to comment.