Skip to content

Commit 493cc88

Browse files
update database description for user and event
1 parent 0ff5793 commit 493cc88

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

docs/database/event/event.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,15 @@ The `event` table stores core information about events within the platform. It c
99
### 1. Identification & Ownership
1010

1111
- `id` (INTEGER, identity, primary key) – Unique identifier for the event.
12-
- `organizer_id` (INTEGER) – Defines which organizer owns the event.
13-
Events are deleted when the organizer is deleted (ON DELETE CASCADE).
12+
- `organizer_id` (INTEGER) – Defines which organizer owns the event. Events are deleted when the organizer is deleted (ON DELETE CASCADE).
1413
- `external_id`(INTEGER) – Optional ID used to link the event to an external system such as imports or APIs.
1514

1615

1716
### 2. Location & Venue Information
1817

19-
- `venue_id`(INTEGER, nullable) – The venue hosting the event.
20-
If the venue is deleted, related events are deleted as well (ON DELETE CASCADE).
21-
- `space_id` (INTEGER, nullable) – Specific room or space in the venue where the event takes place.
22-
If the space is deleted, this field becomes NULL (ON DELETE SET NULL).
23-
- `location_id` (INTEGER, nullable) – Optional location reference used when `venue_id` is not provided.
24-
Allows specifying a location for an event without creating a venue record first.
18+
- `venue_id` (INTEGER, nullable) – The venue hosting the event. If the venue is deleted, the `venue_id` is set to `NULL` and the event itself is not deleted (ON DELETE SET NULL).
19+
- `space_id` (INTEGER, nullable) – Specific room or space in the venue where the event takes place. If the space is deleted, this field becomes NULL (ON DELETE SET NULL).
20+
- `location_id` (INTEGER, nullable) – Optional location reference used when `venue_id` is not provided. Allows specifying a location for an event without creating a venue record first.
2521
- `meeting_point` (TEXT) – Optional meeting location for participants (e.g., “Main entrance”, “Foyer”).
2622
- `online_event_url` (TEXT) – URL for online/virtual events (stream link, webinar room, etc.).
2723

0 commit comments

Comments
 (0)