migrations

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MigrateUsers

func MigrateUsers(db *gorm.DB) error

Types

type Users

type Users struct {
	ID       uint      `gorm:"primarykey;autoIncrement" json:"id"`
	Username *string   `gorm:"unique" json:"username"`
	Name     *string   `json:"name"`
	Email    *string   `gorm:"unique" json:"email"`
	Date     time.Time `json:"date"`
	City     *string   `json:"city"`
	Country  *string   `json:"country"`
	Password *string   `json:"-"`
}

Jump to

Keyboard shortcuts

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