46 lines
642 B
Go
46 lines
642 B
Go
// Code generated by sqlc. DO NOT EDIT.
|
|
// versions:
|
|
// sqlc v1.31.1
|
|
|
|
package db
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type Chat struct {
|
|
ID uuid.UUID
|
|
Title string
|
|
CreatedAt time.Time
|
|
}
|
|
|
|
type ChatMember struct {
|
|
ChatID uuid.UUID
|
|
UserID uuid.UUID
|
|
}
|
|
|
|
type Message struct {
|
|
ID uuid.UUID
|
|
ChatID uuid.UUID
|
|
SenderID uuid.UUID
|
|
Text string
|
|
CreatedAt time.Time
|
|
}
|
|
|
|
type Session struct {
|
|
TokenHash string
|
|
UserID uuid.UUID
|
|
CreatedAt time.Time
|
|
ExpiresAt time.Time
|
|
}
|
|
|
|
type User struct {
|
|
ID uuid.UUID
|
|
Username string
|
|
DisplayName string
|
|
PasswordHash string
|
|
CreatedAt time.Time
|
|
}
|