hecha una implementacion que no puede tener coinsidencias

This commit is contained in:
fede committed 2026-03-12 11:17:16 -03:00
1 parent 1b3ae43d61
commit 389f858369
2 files changed
+16 -16

No files matched your search

+1 -2
View File
@@ -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"`
}