You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/database/event/event.md
+4-8Lines changed: 4 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,19 +9,15 @@ The `event` table stores core information about events within the platform. It c
9
9
### 1. Identification & Ownership
10
10
11
11
-`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).
14
13
-`external_id`(INTEGER) – Optional ID used to link the event to an external system such as imports or APIs.
15
14
16
15
17
16
### 2. Location & Venue Information
18
17
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.
0 commit comments