This commit is contained in:
Josh 2026-01-09 00:16:46 +02:00
commit d69342b2e9
160 changed files with 28681 additions and 0 deletions

34
internal/db/models.go Normal file
View file

@ -0,0 +1,34 @@
package db
import "time"
type User struct {
ID string
Email string
Name string
AvatarURL string
CreatedAt time.Time
}
type Tenant struct {
ID string
OwnerID string
Subdomain string
CustomDomain string
Premium bool
MembersEnabled bool
DonationsEnabled bool
CreatedAt time.Time
}
type Session struct {
Token string
UserID string
ExpiresAt time.Time
}
type Demo struct {
ID string
Subdomain string
ExpiresAt time.Time
}