notatest/server/pkg/db/models.go

40 lines
1.1 KiB
Go

// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.28.0
package db
import (
"github.com/jackc/pgx/v5/pgtype"
)
type Note struct {
ID pgtype.UUID `json:"id"`
UserID pgtype.UUID `json:"user_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type NoteVersion struct {
ID pgtype.UUID `json:"id"`
NoteID pgtype.UUID `json:"note_id"`
Title string `json:"title"`
Content string `json:"content"`
VersionNumber int32 `json:"version_number"`
ContentHash string `json:"content_hash"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type SchemaMigration struct {
Version int64 `json:"version"`
AppliedAt pgtype.Timestamptz `json:"applied_at"`
}
type User struct {
ID pgtype.UUID `json:"id"`
Username string `json:"username"`
PasswordHash string `json:"password_hash"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}