cromp/db/models.go

33 lines
859 B
Go
Raw Normal View History

2020-03-31 07:38:45 -06:00
// Code generated by sqlc. DO NOT EDIT.
package db
import (
"database/sql"
"time"
"github.com/google/uuid"
)
type Entry struct {
EntryID uuid.UUID `json:"entry_id"`
UserID int32 `json:"user_id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt sql.NullTime `json:"updated_at"`
Title string `json:"title"`
Body string `json:"body"`
}
type User struct {
UserID int64 `json:"user_id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt sql.NullTime `json:"updated_at"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
Username string `json:"username"`
Hash string `json:"hash"`
Email string `json:"email"`
Token uuid.UUID `json:"token"`
TokenExpires time.Time `json:"token_expires"`
}