diff --git a/storage/database.go b/storage/database.go index a12029996ff8b9cb04387bd24d39aa1957d0c0ed..04785daf163db6071f8b25978f57f3ce8b96f0a3 100644 --- a/storage/database.go +++ b/storage/database.go @@ -53,7 +53,7 @@ type User struct { type Ephemeral struct { ID uint `gorm:"primaryKey"` 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"` Epoch int32 `gorm:"not null; index"` }