2020-03-28 21:41:16 +01:00
|
|
|
insert into projects (name) values ('initial'), ('second'), ('third');
|
2020-05-06 23:44:48 +02:00
|
|
|
|
|
|
|
insert into issue_statuses (name, project_id, position)
|
|
|
|
values ('backlog', 1, 1), ('selected', 1, 2), ('in_progress', 1, 3), ('done', 1, 4);
|
|
|
|
|
2020-05-21 17:02:16 +02:00
|
|
|
insert into users (email, name, avatar_url) values (
|
2020-04-16 16:11:19 +02:00
|
|
|
'john@example.com',
|
|
|
|
'John Doe',
|
|
|
|
'http://cdn.onlinewebfonts.com/svg/img_553934.png'
|
2020-04-10 22:33:07 +02:00
|
|
|
), (
|
2020-04-16 16:11:19 +02:00
|
|
|
'kate@exampe.com',
|
|
|
|
'Kate Snow',
|
|
|
|
'http://www.asthmamd.org/images/icon_user_6.png'
|
2020-04-10 22:33:07 +02:00
|
|
|
), (
|
2020-04-16 16:11:19 +02:00
|
|
|
'mike@example.com',
|
|
|
|
'Mike Keningham',
|
|
|
|
'https://cdn0.iconfinder.com/data/icons/user-pictures/100/matureman1-512.png'
|
2020-04-10 22:33:07 +02:00
|
|
|
);
|
2020-05-21 17:02:16 +02:00
|
|
|
insert into user_projects (user_id, project_id, role, is_current, is_default) values (
|
|
|
|
1, 1, 'owner', true, true
|
|
|
|
), (
|
|
|
|
2, 1, 'owner', true, true
|
|
|
|
), (
|
|
|
|
3, 1, 'owner', true, true
|
|
|
|
);
|
|
|
|
insert into invitations (email, name, state, project_id, invited_by_id) values (
|
2020-04-22 15:28:02 +02:00
|
|
|
'foo1@example.com',
|
|
|
|
'Foo1',
|
|
|
|
'sent',
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
), (
|
|
|
|
'foo1+revoked@example.com',
|
|
|
|
'Foo1 Revoked',
|
|
|
|
'revoked',
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
), (
|
|
|
|
'foo1+accepted@example.com',
|
|
|
|
'Foo1 Accepted',
|
|
|
|
'accepted',
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
), (
|
|
|
|
'foo2@example.com',
|
|
|
|
'Foo2',
|
|
|
|
'sent',
|
|
|
|
2,
|
|
|
|
2
|
|
|
|
), (
|
|
|
|
'foo2+accepted@example.com',
|
|
|
|
'Foo2 Accepted',
|
|
|
|
'accepted',
|
|
|
|
2,
|
|
|
|
2
|
|
|
|
), (
|
|
|
|
'foo2+revoked@example.com',
|
|
|
|
'Foo2 Revoked',
|
|
|
|
'revoked',
|
|
|
|
2,
|
|
|
|
2
|
|
|
|
);
|
|
|
|
insert into users (project_id, email, name) values (
|
|
|
|
2,
|
|
|
|
'foo2+accepted@example.com',
|
|
|
|
'Foo2 Accepted'
|
|
|
|
), (
|
|
|
|
1,
|
|
|
|
'foo1+accepted@example.com',
|
|
|
|
'Foo1 Accepted'
|
|
|
|
);
|
2020-03-28 21:41:16 +01:00
|
|
|
insert into tokens (user_id, access_token, refresh_token) values (1, uuid_generate_v4(), uuid_generate_v4() );
|
|
|
|
insert into issues(
|
|
|
|
title,
|
|
|
|
issue_type,
|
|
|
|
priority,
|
|
|
|
list_position,
|
|
|
|
description,
|
|
|
|
description_text,
|
|
|
|
reporter_id,
|
2020-05-06 23:44:48 +02:00
|
|
|
project_id,
|
|
|
|
issue_status_id
|
2020-03-28 21:41:16 +01:00
|
|
|
) values (
|
|
|
|
'Foo',
|
|
|
|
'backlog',
|
|
|
|
'low',
|
|
|
|
1,
|
|
|
|
'hello world',
|
|
|
|
'foz baz',
|
|
|
|
1,
|
2020-05-06 23:44:48 +02:00
|
|
|
1,
|
2020-03-28 21:41:16 +01:00
|
|
|
1
|
|
|
|
), (
|
|
|
|
'Foo2',
|
|
|
|
'selected',
|
|
|
|
'low',
|
|
|
|
2,
|
|
|
|
'hello world 2',
|
|
|
|
'foz baz 2',
|
|
|
|
1,
|
2020-05-06 23:44:48 +02:00
|
|
|
1,
|
|
|
|
2
|
2020-03-28 21:41:16 +01:00
|
|
|
), (
|
|
|
|
'Foo3',
|
2020-04-01 13:29:43 +02:00
|
|
|
'in_progress',
|
2020-03-28 21:41:16 +01:00
|
|
|
'low',
|
|
|
|
3,
|
|
|
|
'hello world 3',
|
|
|
|
'foz baz 3',
|
|
|
|
2,
|
2020-05-06 23:44:48 +02:00
|
|
|
1,
|
|
|
|
3
|
2020-03-28 21:41:16 +01:00
|
|
|
);
|
2020-04-11 11:18:41 +02:00
|
|
|
insert into comments (user_id, issue_id, body) values (
|
|
|
|
1, 1, 'Vestibulum non neque at dui maximus porttitor fermentum consectetur eros.'
|
|
|
|
),
|
|
|
|
(
|
|
|
|
1, 2, 'Fusce varius ligula ut nisl porttitor, in gravida dolor rhoncus.'
|
|
|
|
),
|
|
|
|
(
|
|
|
|
1, 3, 'Cras viverra urna at urna convallis maximus.'
|
|
|
|
),
|
|
|
|
(
|
|
|
|
2, 1, 'Phasellus sollicitudin nisi eget arcu sollicitudin aliquam.'
|
|
|
|
),
|
|
|
|
(
|
|
|
|
2, 2, 'Duis sodales felis in maximus tincidunt.'
|
|
|
|
),
|
|
|
|
(
|
|
|
|
2, 3, 'Aenean sit amet sem sit amet dolor pellentesque rutrum.'
|
|
|
|
),
|
|
|
|
(
|
|
|
|
3, 1, 'Phasellus placerat dui vitae odio mattis convallis.'
|
|
|
|
),
|
|
|
|
(
|
|
|
|
3, 2, 'Suspendisse quis est eu neque vehicula sagittis.'
|
|
|
|
),
|
|
|
|
(
|
|
|
|
3, 3, 'Duis rutrum quam eget maximus laoreet.'
|
|
|
|
),
|
|
|
|
(
|
|
|
|
1, 1, 'Vestibulum eu ipsum a dui fringilla tristique.'
|
|
|
|
),
|
|
|
|
(
|
|
|
|
1, 2, 'Phasellus porttitor dolor vitae urna aliquam porta.'
|
|
|
|
),
|
|
|
|
(
|
|
|
|
2, 1, 'Curabitur volutpat mauris pretium urna laoreet, eget scelerisque neque fringilla.'
|
|
|
|
),
|
|
|
|
(
|
|
|
|
1, 3, 'Curabitur ac arcu eu eros auctor elementum.'
|
|
|
|
),
|
|
|
|
(
|
|
|
|
3, 1, 'Duis facilisis ipsum nec mi porta ultricies.'
|
|
|
|
),
|
|
|
|
(
|
|
|
|
1, 1, 'In elementum orci nec mi porta imperdiet ut ac ante.'
|
|
|
|
),
|
|
|
|
(
|
|
|
|
2, 3, 'Praesent et orci ut metus interdum sollicitudin.'
|
|
|
|
);
|
|
|
|
|
|
|
|
|
2020-03-28 21:41:16 +01:00
|
|
|
select * from tokens;
|