53 lines
777 B
SQL
53 lines
777 B
SQL
INSERT INTO users (username, password_hash)
|
|
VALUES
|
|
('ben', 'hash1'),
|
|
('jan', 'hash2'),
|
|
('piet', 'hash3');
|
|
|
|
|
|
INSERT INTO rooms (name, owner_id, invite_code)
|
|
VALUES
|
|
('Vriendengroep', 1, 'ABC123'),
|
|
('Projectgroep', 2, 'XYZ789');
|
|
|
|
|
|
INSERT INTO room_members (room_id, user_id, role)
|
|
VALUES
|
|
(1, 1, 'owner'),
|
|
(1, 2, 'member'),
|
|
(1, 3, 'member'),
|
|
(2, 2, 'owner');
|
|
|
|
|
|
INSERT INTO events (
|
|
room_id,
|
|
creator_id,
|
|
type,
|
|
title,
|
|
description,
|
|
start_time,
|
|
end_time,
|
|
visibility,
|
|
status,
|
|
min_people
|
|
)
|
|
VALUES
|
|
(
|
|
1,
|
|
1,
|
|
'proposal',
|
|
'Bowlen',
|
|
'Avondje bowlen',
|
|
'2026-08-10 19:00',
|
|
'2026-08-10 22:00',
|
|
'room',
|
|
'proposed',
|
|
3
|
|
);
|
|
|
|
|
|
INSERT INTO event_signups (event_id, user_id, status)
|
|
VALUES
|
|
(1, 1, 'going'),
|
|
(1, 2, 'going');
|