Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add uuids to subscriptions #37

Merged
merged 1 commit into from
Apr 2, 2024
Merged

feat: add uuids to subscriptions #37

merged 1 commit into from
Apr 2, 2024

Conversation

im-adithya
Copy link
Member

  • Adds uuid column to the subscriptions table
  • Subscriptions are now stopped using UUID and not id (making it difficult to delete others' channels)

@im-adithya im-adithya merged commit 5a3d531 into main Apr 2, 2024
1 check passed
@bumi bumi deleted the task-uuid branch April 2, 2024 11:24
@@ -34,6 +34,7 @@ type Subscription struct {
Search string
CreatedAt time.Time
UpdatedAt time.Time
Uuid string `gorm:"type:uuid;default:gen_random_uuid()"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this have an index then automatically?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants