hecha una implementacion que no puede tener coinsidencias
This commit is contained in:
@@ -3,8 +3,7 @@ package models
|
||||
import "time"
|
||||
|
||||
type Url struct {
|
||||
Shorturl string `gorm:"primaryKey"`
|
||||
// Id uint64 `gorm: "primaryKey;autoIncrement"`
|
||||
Shorturl int64 `gorm:"primaryKey;autoIncrement:true"`
|
||||
Longurl string `gorm:"uniqueIndex:idx_lurl"`
|
||||
Time time.Time `gorm:"autoCreateTime"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user