Skip to content
Snippets Groups Projects
Commit df9bf161 authored by Jonah Husson's avatar Jonah Husson
Browse files

Fix relationship from users to ephemerals

parent fc3ed7cc
No related branches found
No related tags found
2 merge requests!15Release,!14Fix relationship from users to ephemerals
...@@ -53,7 +53,7 @@ type User struct { ...@@ -53,7 +53,7 @@ type User struct {
type Ephemeral struct { type Ephemeral struct {
ID uint `gorm:"primaryKey"` ID uint `gorm:"primaryKey"`
Offset int64 `gorm:"not null; index"` Offset int64 `gorm:"not null; index"`
TransmissionRSAHash []byte `gorm:"not null; unique; references users(transmission_rsa_hash)"` TransmissionRSAHash []byte `gorm:"not null; references users(transmission_rsa_hash)"`
EphemeralId int64 `gorm:"not null; index"` EphemeralId int64 `gorm:"not null; index"`
Epoch int32 `gorm:"not null; index"` Epoch int32 `gorm:"not null; index"`
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment