models

package
v0.0.0-...-d02c377 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comment

type Comment struct {
	ID        uuid.UUID
	UserID    uuid.UUID
	ImageID   uuid.UUID
	Content   string
	Likes     int
	CreatedAt pgtype.Timestamp
	UpdatedAt pgtype.Timestamp
}

type Image

type Image struct {
	ID          uuid.UUID
	UserID      uuid.UUID
	Title       string
	Author      *string
	Description *string
	URL         string
	Likes       int
	CreatedAt   pgtype.Timestamp
	UpdatedAt   pgtype.Timestamp
}

type User

type User struct {
	ID                uuid.UUID
	Username          string
	Email             string
	PasswordHash      string
	Bio               *string
	ProfilePictureURL *string
	CreatedAt         pgtype.Timestamp
	UpdatedAt         pgtype.Timestamp
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL