Files
bbq/db/models.go
T
ryan a0c4b28d1e Support both email and phone login
Auto-detect whether the user entered an email or phone number.
Email sends via Resend, phone sends via Twilio SMS. Users table
has nullable phone and email columns; verification_codes uses a
generic identifier field.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-18 08:53:29 -04:00

71 lines
1.0 KiB
Go

// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.31.1
package db
import (
"database/sql"
"time"
)
type Claim struct {
ID int64
SlotID int64
Name string
Note string
CreatedAt time.Time
}
type Event struct {
ID int64
Slug string
Title string
Date string
Time string
Location string
AdminToken string
Description string
UserID sql.NullInt64
CreatedAt time.Time
}
type Rsvp struct {
ID int64
EventID int64
Name string
Note string
CreatedAt time.Time
}
type Session struct {
Token string
UserID int64
ExpiresAt time.Time
}
type Slot struct {
ID int64
EventID int64
Name string
Emoji string
MaxClaims int64
SortOrder int64
}
type User struct {
ID int64
Phone sql.NullString
Email sql.NullString
Name string
CreatedAt time.Time
}
type VerificationCode struct {
ID int64
Identifier string
Code string
ExpiresAt time.Time
Used int64
}