Initial Database Schema

This commit is contained in:
2026-06-02 19:18:02 +02:00
parent 53f02b6f2a
commit 6ab31c2c1b
9 changed files with 358 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.31.1
package database
import (
"database/sql"
"time"
)
type ClickLog struct {
ClickID int64
UrlID int32
ClickedAt time.Time
Referrer sql.NullString
UserAgent sql.NullString
IpAddress sql.NullString
}
type Url struct {
UrlID int32
LongUrl string
ShortCode string
CreatedAt time.Time
ExpiresAt sql.NullTime
IsActive bool
}