models

package
v0.0.0-...-5ba66fb Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: MIT Imports: 1 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        string    `json:"id"`
	VideoID   string    `json:"videoId"`
	UserID    string    `json:"userId"`
	Text      string    `json:"text"`
	Timestamp time.Time `json:"timestamp"`
}

type Like

type Like struct {
	ID      string `json:"id"`
	VideoID string `json:"videoId"`
	UserID  string `json:"userId"`
}

type User

type User struct {
	ID       string `json:"id"`
	Username string `json:"username"`
	Email    string `json:"email"`
	Password string `json:"password"` // Store as a hash
	Profile  string `json:"profile"`  // URL to the profile picture
	Bio      string `json:"bio"`
}

type Video

type Video struct {
	ID          string    `json:"id"`
	UserID      string    `json:"userId"`
	Title       string    `json:"title"`
	Description string    `json:"description"`
	URL         string    `json:"url"`       // URL to the video file
	Thumbnail   string    `json:"thumbnail"` // URL to the thumbnail image
	Timestamp   time.Time `json:"timestamp"`
}

Jump to

Keyboard shortcuts

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