model

package
v0.0.0-...-d0245b9 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 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 PublicKey

type PublicKey struct {
	ID     int64  `json:"id" gorm:"primaryKey"`
	UserID int64  `json:"userID"`
	Key    []byte `json:"key"`

	CreatedAt time.Time `json:"createdAt"`
}

type User

type User struct {
	ID     int64  `gorm:"primaryKey"`
	AuthID string `gorm:"unique;not null"`

	Username string `gorm:"unique;not null"`
	Password string `gorm:"not null"`
}

Jump to

Keyboard shortcuts

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