From c245764200d59ae5d614e5f5f669f2b0fc7f232f Mon Sep 17 00:00:00 2001 From: Shamik Karkhanis Date: Thu, 26 Mar 2026 22:29:48 -0400 Subject: [PATCH 1/2] updated event data to include title --- docs/schema/schema.json | 260 +++++++++++++++++- docs/swagger/docs.go | 11 +- docs/swagger/swagger.json | 11 +- docs/swagger/swagger.yaml | 9 +- internal/database/models.go | 1 + internal/database/queries.sql | 7 +- internal/database/queries.sql.go | 40 ++- internal/dto/dto.go | 3 + internal/handler/events.go | 3 + internal/handler/users.go | 1 + .../20260316192946_initial_schema.up.sql | 1 + .../20260327022209_add_event_title.down.sql | 2 + .../20260327022209_add_event_title.up.sql | 2 + schema.sql | 1 + 14 files changed, 324 insertions(+), 28 deletions(-) create mode 100644 migrations/20260327022209_add_event_title.down.sql create mode 100644 migrations/20260327022209_add_event_title.up.sql diff --git a/docs/schema/schema.json b/docs/schema/schema.json index 1e46115..cf6234a 100644 --- a/docs/schema/schema.json +++ b/docs/schema/schema.json @@ -583,6 +583,32 @@ "unsigned": false, "array_dims": 0 }, + { + "name": "title", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "events" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, { "name": "location", "not_null": false, @@ -69461,7 +69487,7 @@ "insert_into_table": null }, { - "text": "SELECT eid, location, event_time, description, date_created, date_modified FROM events WHERE eid = $1", + "text": "SELECT eid, title, location, event_time, description, date_created, date_modified FROM events WHERE eid = $1", "name": "GetEventByID", "cmd": ":one", "columns": [ @@ -69491,6 +69517,32 @@ "unsigned": false, "array_dims": 0 }, + { + "name": "title", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "events" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "title", + "unsigned": false, + "array_dims": 0 + }, { "name": "location", "not_null": false, @@ -69658,7 +69710,7 @@ "insert_into_table": null }, { - "text": "SELECT eid, location, event_time, description, date_created, date_modified FROM events ORDER BY event_time DESC LIMIT $1 OFFSET $2", + "text": "SELECT eid, title, location, event_time, description, date_created, date_modified FROM events ORDER BY event_time DESC LIMIT $1 OFFSET $2", "name": "ListEvents", "cmd": ":many", "columns": [ @@ -69688,6 +69740,32 @@ "unsigned": false, "array_dims": 0 }, + { + "name": "title", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "events" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "title", + "unsigned": false, + "array_dims": 0 + }, { "name": "location", "not_null": false, @@ -69876,7 +69954,7 @@ "insert_into_table": null }, { - "text": "SELECT e.eid, e.location, e.event_time, e.description, e.date_created, e.date_modified\nFROM events e\nJOIN event_hosting eh ON e.eid = eh.eid\nWHERE eh.oid = $1\nORDER BY e.event_time DESC\nLIMIT $2 OFFSET $3", + "text": "SELECT e.eid, e.title, e.location, e.event_time, e.description, e.date_created, e.date_modified\nFROM events e\nJOIN event_hosting eh ON e.eid = eh.eid\nWHERE eh.oid = $1\nORDER BY e.event_time DESC\nLIMIT $2 OFFSET $3", "name": "ListEventsByOrg", "cmd": ":many", "columns": [ @@ -69906,6 +69984,32 @@ "unsigned": false, "array_dims": 0 }, + { + "name": "title", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "events" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "title", + "unsigned": false, + "array_dims": 0 + }, { "name": "location", "not_null": false, @@ -70123,7 +70227,7 @@ "insert_into_table": null }, { - "text": "INSERT INTO events (location, event_time, description)\nVALUES ($1, $2, $3)\nRETURNING eid, location, event_time, description, date_created, date_modified", + "text": "INSERT INTO events (title, location, event_time, description)\nVALUES ($1, $2, $3, $4)\nRETURNING eid, title, location, event_time, description, date_created, date_modified", "name": "CreateEvent", "cmd": ":one", "columns": [ @@ -70153,6 +70257,32 @@ "unsigned": false, "array_dims": 0 }, + { + "name": "title", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "events" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "title", + "unsigned": false, + "array_dims": 0 + }, { "name": "location", "not_null": false, @@ -70287,6 +70417,35 @@ "params": [ { "number": 1, + "column": { + "name": "title", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "public", + "name": "events" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "title", + "unsigned": false, + "array_dims": 0 + } + }, + { + "number": 2, "column": { "name": "location", "not_null": false, @@ -70315,7 +70474,7 @@ } }, { - "number": 2, + "number": 3, "column": { "name": "event_time", "not_null": false, @@ -70344,7 +70503,7 @@ } }, { - "number": 3, + "number": 4, "column": { "name": "description", "not_null": false, @@ -70382,7 +70541,7 @@ } }, { - "text": "UPDATE events\nSET location = COALESCE($2, location),\n event_time = COALESCE($3, event_time),\n description = COALESCE($4, description)\nWHERE eid = $1\nRETURNING eid, location, event_time, description, date_created, date_modified", + "text": "UPDATE events\nSET title = COALESCE($2, title),\n location = COALESCE($3, location),\n event_time = COALESCE($4, event_time),\n description = COALESCE($5, description)\nWHERE eid = $1\nRETURNING eid, title, location, event_time, description, date_created, date_modified", "name": "UpdateEvent", "cmd": ":one", "columns": [ @@ -70412,6 +70571,32 @@ "unsigned": false, "array_dims": 0 }, + { + "name": "title", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "events" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "title", + "unsigned": false, + "array_dims": 0 + }, { "name": "location", "not_null": false, @@ -70575,6 +70760,35 @@ }, { "number": 2, + "column": { + "name": "title", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": true, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "public", + "name": "events" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "title", + "unsigned": false, + "array_dims": 0 + } + }, + { + "number": 3, "column": { "name": "location", "not_null": false, @@ -70603,7 +70817,7 @@ } }, { - "number": 3, + "number": 4, "column": { "name": "event_time", "not_null": false, @@ -70632,7 +70846,7 @@ } }, { - "number": 4, + "number": 5, "column": { "name": "description", "not_null": false, @@ -71421,7 +71635,7 @@ "insert_into_table": null }, { - "text": "SELECT e.eid, e.location, e.event_time, e.description, e.date_created, e.date_modified, er.is_attending, er.is_admin, er.date_registered\nFROM events e\nJOIN event_registrations er ON e.eid = er.eid\nWHERE er.uid = $1\nORDER BY e.event_time DESC", + "text": "SELECT e.eid, e.title, e.location, e.event_time, e.description, e.date_created, e.date_modified, er.is_attending, er.is_admin, er.date_registered\nFROM events e\nJOIN event_registrations er ON e.eid = er.eid\nWHERE er.uid = $1\nORDER BY e.event_time DESC", "name": "GetUserEvents", "cmd": ":many", "columns": [ @@ -71451,6 +71665,32 @@ "unsigned": false, "array_dims": 0 }, + { + "name": "title", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "events" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "title", + "unsigned": false, + "array_dims": 0 + }, { "name": "location", "not_null": false, diff --git a/docs/swagger/docs.go b/docs/swagger/docs.go index 7116052..8903547 100644 --- a/docs/swagger/docs.go +++ b/docs/swagger/docs.go @@ -1348,7 +1348,7 @@ const docTemplate = `{ "CookieAuth": [] } ], - "description": "Updates a user's profile. Users can only update their own profile.", + "description": "Updates a user's profile. Only role changes require the caller to have the dev role.", "consumes": [ "application/json" ], @@ -1575,6 +1575,9 @@ const docTemplate = `{ "org_id": { "description": "Which org is hosting", "type": "string" + }, + "title": { + "type": "string" } } }, @@ -1638,6 +1641,9 @@ const docTemplate = `{ }, "location": { "type": "string" + }, + "title": { + "type": "string" } } }, @@ -1707,6 +1713,9 @@ const docTemplate = `{ }, "location": { "type": "string" + }, + "title": { + "type": "string" } } }, diff --git a/docs/swagger/swagger.json b/docs/swagger/swagger.json index ef1715f..e6a4d10 100644 --- a/docs/swagger/swagger.json +++ b/docs/swagger/swagger.json @@ -1342,7 +1342,7 @@ "CookieAuth": [] } ], - "description": "Updates a user's profile. Users can only update their own profile.", + "description": "Updates a user's profile. Only role changes require the caller to have the dev role.", "consumes": [ "application/json" ], @@ -1569,6 +1569,9 @@ "org_id": { "description": "Which org is hosting", "type": "string" + }, + "title": { + "type": "string" } } }, @@ -1632,6 +1635,9 @@ }, "location": { "type": "string" + }, + "title": { + "type": "string" } } }, @@ -1701,6 +1707,9 @@ }, "location": { "type": "string" + }, + "title": { + "type": "string" } } }, diff --git a/docs/swagger/swagger.yaml b/docs/swagger/swagger.yaml index 73c8faf..e2cccbc 100644 --- a/docs/swagger/swagger.yaml +++ b/docs/swagger/swagger.yaml @@ -20,6 +20,8 @@ definitions: org_id: description: Which org is hosting type: string + title: + type: string required: - org_id type: object @@ -64,6 +66,8 @@ definitions: type: string location: type: string + title: + type: string type: object dto.OrgMemberResponse: properties: @@ -109,6 +113,8 @@ definitions: type: string location: type: string + title: + type: string type: object dto.UpdateOrganizationRequest: properties: @@ -1120,7 +1126,8 @@ paths: put: consumes: - application/json - description: Updates a user's profile. Users can only update their own profile. + description: Updates a user's profile. Only role changes require the caller + to have the dev role. parameters: - description: User UUID in: path diff --git a/internal/database/models.go b/internal/database/models.go index 16ba637..bfd5811 100644 --- a/internal/database/models.go +++ b/internal/database/models.go @@ -70,6 +70,7 @@ type BotToken struct { type Event struct { Eid uuid.UUID `json:"eid"` + Title pgtype.Text `json:"title"` Location pgtype.Text `json:"location"` EventTime pgtype.Timestamp `json:"event_time"` Description pgtype.Text `json:"description"` diff --git a/internal/database/queries.sql b/internal/database/queries.sql index 3344cfd..67119fc 100644 --- a/internal/database/queries.sql +++ b/internal/database/queries.sql @@ -87,13 +87,14 @@ ORDER BY e.event_time DESC LIMIT $2 OFFSET $3; -- name: CreateEvent :one -INSERT INTO events (location, event_time, description) -VALUES ($1, $2, $3) +INSERT INTO events (title, location, event_time, description) +VALUES ($1, $2, $3, $4) RETURNING *; -- name: UpdateEvent :one UPDATE events -SET location = COALESCE(sqlc.narg('location'), location), +SET title = COALESCE(sqlc.narg('title'), title), + location = COALESCE(sqlc.narg('location'), location), event_time = COALESCE(sqlc.narg('event_time'), event_time), description = COALESCE(sqlc.narg('description'), description) WHERE eid = $1 diff --git a/internal/database/queries.sql.go b/internal/database/queries.sql.go index 457aa5b..145df82 100644 --- a/internal/database/queries.sql.go +++ b/internal/database/queries.sql.go @@ -80,22 +80,29 @@ func (q *Queries) CreateBotToken(ctx context.Context, arg CreateBotTokenParams) } const createEvent = `-- name: CreateEvent :one -INSERT INTO events (location, event_time, description) -VALUES ($1, $2, $3) -RETURNING eid, location, event_time, description, date_created, date_modified +INSERT INTO events (title, location, event_time, description) +VALUES ($1, $2, $3, $4) +RETURNING eid, title, location, event_time, description, date_created, date_modified ` type CreateEventParams struct { + Title pgtype.Text `json:"title"` Location pgtype.Text `json:"location"` EventTime pgtype.Timestamp `json:"event_time"` Description pgtype.Text `json:"description"` } func (q *Queries) CreateEvent(ctx context.Context, arg CreateEventParams) (Event, error) { - row := q.db.QueryRow(ctx, createEvent, arg.Location, arg.EventTime, arg.Description) + row := q.db.QueryRow(ctx, createEvent, + arg.Title, + arg.Location, + arg.EventTime, + arg.Description, + ) var i Event err := row.Scan( &i.Eid, + &i.Title, &i.Location, &i.EventTime, &i.Description, @@ -215,7 +222,7 @@ func (q *Queries) GetBotTokenByID(ctx context.Context, tokenID uuid.UUID) (BotTo } const getEventByID = `-- name: GetEventByID :one -SELECT eid, location, event_time, description, date_created, date_modified FROM events WHERE eid = $1 +SELECT eid, title, location, event_time, description, date_created, date_modified FROM events WHERE eid = $1 ` func (q *Queries) GetEventByID(ctx context.Context, eid uuid.UUID) (Event, error) { @@ -223,6 +230,7 @@ func (q *Queries) GetEventByID(ctx context.Context, eid uuid.UUID) (Event, error var i Event err := row.Scan( &i.Eid, + &i.Title, &i.Location, &i.EventTime, &i.Description, @@ -409,7 +417,7 @@ func (q *Queries) GetUserByID(ctx context.Context, uid uuid.UUID) (User, error) } const getUserEvents = `-- name: GetUserEvents :many -SELECT e.eid, e.location, e.event_time, e.description, e.date_created, e.date_modified, er.is_attending, er.is_admin, er.date_registered +SELECT e.eid, e.title, e.location, e.event_time, e.description, e.date_created, e.date_modified, er.is_attending, er.is_admin, er.date_registered FROM events e JOIN event_registrations er ON e.eid = er.eid WHERE er.uid = $1 @@ -418,6 +426,7 @@ ORDER BY e.event_time DESC type GetUserEventsRow struct { Eid uuid.UUID `json:"eid"` + Title pgtype.Text `json:"title"` Location pgtype.Text `json:"location"` EventTime pgtype.Timestamp `json:"event_time"` Description pgtype.Text `json:"description"` @@ -439,6 +448,7 @@ func (q *Queries) GetUserEvents(ctx context.Context, uid uuid.UUID) ([]GetUserEv var i GetUserEventsRow if err := rows.Scan( &i.Eid, + &i.Title, &i.Location, &i.EventTime, &i.Description, @@ -593,7 +603,7 @@ func (q *Queries) ListBotTokens(ctx context.Context) ([]ListBotTokensRow, error) } const listEvents = `-- name: ListEvents :many -SELECT eid, location, event_time, description, date_created, date_modified FROM events ORDER BY event_time DESC LIMIT $1 OFFSET $2 +SELECT eid, title, location, event_time, description, date_created, date_modified FROM events ORDER BY event_time DESC LIMIT $1 OFFSET $2 ` type ListEventsParams struct { @@ -612,6 +622,7 @@ func (q *Queries) ListEvents(ctx context.Context, arg ListEventsParams) ([]Event var i Event if err := rows.Scan( &i.Eid, + &i.Title, &i.Location, &i.EventTime, &i.Description, @@ -629,7 +640,7 @@ func (q *Queries) ListEvents(ctx context.Context, arg ListEventsParams) ([]Event } const listEventsByOrg = `-- name: ListEventsByOrg :many -SELECT e.eid, e.location, e.event_time, e.description, e.date_created, e.date_modified +SELECT e.eid, e.title, e.location, e.event_time, e.description, e.date_created, e.date_modified FROM events e JOIN event_hosting eh ON e.eid = eh.eid WHERE eh.oid = $1 @@ -654,6 +665,7 @@ func (q *Queries) ListEventsByOrg(ctx context.Context, arg ListEventsByOrgParams var i Event if err := rows.Scan( &i.Eid, + &i.Title, &i.Location, &i.EventTime, &i.Description, @@ -809,15 +821,17 @@ func (q *Queries) UpdateBotTokenLastUsed(ctx context.Context, tokenID uuid.UUID) const updateEvent = `-- name: UpdateEvent :one UPDATE events -SET location = COALESCE($2, location), - event_time = COALESCE($3, event_time), - description = COALESCE($4, description) +SET title = COALESCE($2, title), + location = COALESCE($3, location), + event_time = COALESCE($4, event_time), + description = COALESCE($5, description) WHERE eid = $1 -RETURNING eid, location, event_time, description, date_created, date_modified +RETURNING eid, title, location, event_time, description, date_created, date_modified ` type UpdateEventParams struct { Eid uuid.UUID `json:"eid"` + Title pgtype.Text `json:"title"` Location pgtype.Text `json:"location"` EventTime pgtype.Timestamp `json:"event_time"` Description pgtype.Text `json:"description"` @@ -826,6 +840,7 @@ type UpdateEventParams struct { func (q *Queries) UpdateEvent(ctx context.Context, arg UpdateEventParams) (Event, error) { row := q.db.QueryRow(ctx, updateEvent, arg.Eid, + arg.Title, arg.Location, arg.EventTime, arg.Description, @@ -833,6 +848,7 @@ func (q *Queries) UpdateEvent(ctx context.Context, arg UpdateEventParams) (Event var i Event err := row.Scan( &i.Eid, + &i.Title, &i.Location, &i.EventTime, &i.Description, diff --git a/internal/dto/dto.go b/internal/dto/dto.go index 692c076..facf79e 100644 --- a/internal/dto/dto.go +++ b/internal/dto/dto.go @@ -83,6 +83,7 @@ type AddMemberRequest struct { // ============================================================================ type CreateEventRequest struct { + Title string `json:"title,omitempty"` Location string `json:"location,omitempty"` EventTime *time.Time `json:"event_time,omitempty"` Description string `json:"description,omitempty"` @@ -90,6 +91,7 @@ type CreateEventRequest struct { } type UpdateEventRequest struct { + Title *string `json:"title,omitempty"` Location *string `json:"location,omitempty"` EventTime *time.Time `json:"event_time,omitempty"` Description *string `json:"description,omitempty"` @@ -97,6 +99,7 @@ type UpdateEventRequest struct { type EventResponse struct { EID uuid.UUID `json:"eid"` + Title *string `json:"title,omitempty"` Location *string `json:"location,omitempty"` EventTime *time.Time `json:"event_time,omitempty"` Description *string `json:"description,omitempty"` diff --git a/internal/handler/events.go b/internal/handler/events.go index 81c58ef..46d6a5d 100644 --- a/internal/handler/events.go +++ b/internal/handler/events.go @@ -72,6 +72,7 @@ func (h *Handler) CreateEvent(w http.ResponseWriter, r *http.Request) { } event, err := h.queries.CreateEvent(r.Context(), database.CreateEventParams{ + Title: toPgTextFromString(req.Title), Location: toPgTextFromString(req.Location), EventTime: toPgTimestamp(req.EventTime), Description: toPgTextFromString(req.Description), @@ -155,6 +156,7 @@ func (h *Handler) UpdateEvent(w http.ResponseWriter, r *http.Request) { event, err := h.queries.UpdateEvent(r.Context(), database.UpdateEventParams{ Eid: eid, + Title: toPgText(req.Title), Location: toPgText(req.Location), EventTime: toPgTimestamp(req.EventTime), Description: toPgText(req.Description), @@ -418,6 +420,7 @@ func (h *Handler) ListEventsByOrg(w http.ResponseWriter, r *http.Request) { func toEventResponse(event database.Event) dto.EventResponse { return dto.EventResponse{ EID: event.Eid, + Title: fromPgText(event.Title), Location: fromPgText(event.Location), EventTime: fromPgTimestamp(event.EventTime), Description: fromPgText(event.Description), diff --git a/internal/handler/users.go b/internal/handler/users.go index 2ecbfca..066b0a3 100644 --- a/internal/handler/users.go +++ b/internal/handler/users.go @@ -205,6 +205,7 @@ func (h *Handler) GetUserEvents(w http.ResponseWriter, r *http.Request) { for i, event := range events { response[i] = dto.EventResponse{ EID: event.Eid, + Title: fromPgText(event.Title), Location: fromPgText(event.Location), EventTime: fromPgTimestamp(event.EventTime), Description: fromPgText(event.Description), diff --git a/migrations/20260316192946_initial_schema.up.sql b/migrations/20260316192946_initial_schema.up.sql index aff59d4..a2997a6 100644 --- a/migrations/20260316192946_initial_schema.up.sql +++ b/migrations/20260316192946_initial_schema.up.sql @@ -44,6 +44,7 @@ CREATE TABLE IF NOT EXISTS org_members ( CREATE TABLE IF NOT EXISTS events ( eid UUID PRIMARY KEY DEFAULT gen_random_uuid(), + title TEXT, location TEXT, event_time TIMESTAMP, description TEXT, diff --git a/migrations/20260327022209_add_event_title.down.sql b/migrations/20260327022209_add_event_title.down.sql new file mode 100644 index 0000000..34e6221 --- /dev/null +++ b/migrations/20260327022209_add_event_title.down.sql @@ -0,0 +1,2 @@ +ALTER TABLE events +DROP COLUMN title; diff --git a/migrations/20260327022209_add_event_title.up.sql b/migrations/20260327022209_add_event_title.up.sql new file mode 100644 index 0000000..8ae34a2 --- /dev/null +++ b/migrations/20260327022209_add_event_title.up.sql @@ -0,0 +1,2 @@ +ALTER TABLE events +ADD COLUMN title TEXT; diff --git a/schema.sql b/schema.sql index d67c444..5853ab2 100644 --- a/schema.sql +++ b/schema.sql @@ -44,6 +44,7 @@ CREATE TABLE IF NOT EXISTS org_members ( CREATE TABLE IF NOT EXISTS events ( eid UUID PRIMARY KEY DEFAULT gen_random_uuid(), + title TEXT, location TEXT, event_time TIMESTAMP, description TEXT, From 5c6cc40bc98126701a06377a3bd720b4ef72f32e Mon Sep 17 00:00:00 2001 From: Shamik Karkhanis Date: Thu, 26 Mar 2026 22:34:14 -0400 Subject: [PATCH 2/2] reverted init_scheme for version history --- migrations/20260316192946_initial_schema.up.sql | 1 - 1 file changed, 1 deletion(-) diff --git a/migrations/20260316192946_initial_schema.up.sql b/migrations/20260316192946_initial_schema.up.sql index a2997a6..aff59d4 100644 --- a/migrations/20260316192946_initial_schema.up.sql +++ b/migrations/20260316192946_initial_schema.up.sql @@ -44,7 +44,6 @@ CREATE TABLE IF NOT EXISTS org_members ( CREATE TABLE IF NOT EXISTS events ( eid UUID PRIMARY KEY DEFAULT gen_random_uuid(), - title TEXT, location TEXT, event_time TIMESTAMP, description TEXT,