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"`
2020-04-02 06:30:07 -06:00
UserID int64 `json:"user_id"`
2020-03-31 07:38:45 -06:00
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 string `json:"token"`
2020-03-31 07:38:45 -06:00
TokenExpires time.Time `json:"token_expires"`
}