models

package
v0.0.0-...-e07d330 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 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 Film

type Film struct {
	ID                 uint
	Title              string    `gorm:"not null;unique_index"`
	Genre              string    `gorm:"not null"`
	ReleaseDate        time.Time `gorm:"not null"`
	Synopsis           string    `gorm:"not null"`
	Director           string    `gorm:"not null"`
	Duration           int       `gorm:"not null"`
	FilmaffinityRating float32
	CreatedAt          time.Time `gorm:"not null"`
	UpdatedAt          time.Time `gorm:"not null"`
	CreateUserID       uint      `gorm:"not null"`
	CreateUser         User      `gorm:"foreignkey:CreateUserID"`
}

type User

type User struct {
	ID        uint
	Username  string `gorm:"not null"`
	Password  string `gorm:"not null"`
	IsEnabled bool   `gorm:"default:true"`
}

Jump to

Keyboard shortcuts

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