Skip to content
Snippets Groups Projects

Fix relationship from users to ephemerals

1 open thread
+ 1
1
@@ -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"`
}
Loading