Initial commit

This commit is contained in:
Björn Benouarets
2025-11-20 22:47:28 +01:00
commit 08055398c4
10 changed files with 319 additions and 0 deletions

20
app/models/endpoint.go Normal file
View File

@@ -0,0 +1,20 @@
package models
import (
"time"
"github.com/google/uuid"
"gorm.io/gorm"
)
type Endpoint struct {
ID uuid.UUID `gorm:"type:uuid;primary_key;default:gen_random_uuid()" json:"id"`
URL string `gorm:"not null" json:"url"`
CreatedAt time.Time `gorm:"not null;default:now()" json:"created_at"`
UpdatedAt time.Time `gorm:"not null;default:now()" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"index" json:"deleted_at"`
}
func (Endpoint) TableName() string {
return "endpoints"
}