Skip to content
This repository has been archived by the owner on Sep 11, 2022. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dusan Malusev committed Mar 13, 2022
1 parent b8206c2 commit ef6e206
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
7 changes: 4 additions & 3 deletions backend/migrations/000007_create_participants_table.up.plsql
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
CREATE TABLE participants(
user_id bigserial NOT NULL,
event_id bigserial NOT NULL,
id bigserial NOT NULL PRIMARY KEY,
user_id bigint NOT NULL,
event_id bigint NOT NULL,
status text NOT NULL,
created_at timestamp WITH TIME ZONE NOT NULL
);
);
3 changes: 1 addition & 2 deletions backend/pkg/models/participants.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package models

// TODO: Add Status as Postgres ENUM

type Participant struct {
ID uint64 `gorm:"column:id"`
UserID uint64 `gorm:"column:user_id" json:"user_id,omitempty"`
EventID uint64 `gorm:"column:event_id" json:"event_id,omitempty"`
Status string `gorm:"column:status" json:"status,omitempty"`
Expand Down

0 comments on commit ef6e206

Please sign in to comment.