primer intento de servicio para acortar urls

This commit is contained in:
2026-03-12 00:13:46 -03:00
commit 1b3ae43d61
9 changed files with 161 additions and 0 deletions

10
models/url.go Normal file
View File

@@ -0,0 +1,10 @@
package models
import "time"
type Url struct {
Shorturl string `gorm:"primaryKey"`
// Id uint64 `gorm: "primaryKey;autoIncrement"`
Longurl string `gorm:"uniqueIndex:idx_lurl"`
Time time.Time `gorm:"autoCreateTime"`
}