ent

package
v0.0.0-...-a45a6ee Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	// ID represents a database column 'id' of type 'INT PRIMARY KEY NOT NULL'
	ID int `db:"id,primary_key,not_null" validate:"required" json:"id"`
	// FirstName represents a database column 'first_name' of type 'TEXT NOT NULL'
	FirstName string `db:"first_name,not_null" validate:"required,gt=0" json:"first_name"`
	// LastName represents a database column 'last_name' of type 'TEXT NULL'
	LastName *string `db:"last_name,null" validate:"-" json:"last_name"`
}

User represents a data base table 'users'

Jump to

Keyboard shortcuts

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