Create an invited event when populating db

This commit is contained in:
Peter Vacho 2025-01-02 14:46:26 +01:00
parent 82c9aeccb5
commit 83b55d43ff
Signed by: school
GPG key ID: 8CFC3837052871B4

View file

@ -106,14 +106,27 @@ EVENTS: list[EventConstructData] = [
title="Event 2", title="Event 2",
description="Description 2", description="Description 2",
category_ids=[], category_ids=[],
start_time=datetime(2025, 1, 1, 12, 00, tzinfo=UTC), start_time=datetime(2025, 1, 1, 14, 00, tzinfo=UTC),
end_time=datetime(2025, 1, 1, 12, 30, tzinfo=UTC), end_time=datetime(2025, 1, 1, 14, 30, tzinfo=UTC),
color=Color("#ff0000"), color=Color("#ff0000"),
), ),
owner_username="user2", owner_username="user2",
attendee_usernames=[], attendee_usernames=[],
category_names=["Category A", "Category B"], category_names=["Category A", "Category B"],
), ),
EventConstructData(
data=EventCreateData(
title="Event 3",
description="Description 3",
category_ids=[],
start_time=datetime(2025, 1, 1, 10, 00, tzinfo=UTC),
end_time=datetime(2025, 1, 1, 10, 30, tzinfo=UTC),
color=Color("#00ff00"),
),
owner_username="user2",
attendee_usernames=["user1"],
category_names=["Category A", "Category B"],
),
] ]
INVITATIONS: list[InvitationConstructData] = [ INVITATIONS: list[InvitationConstructData] = [