entity

package
v0.0.0-...-cfa0982 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: Unlicense Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MasterUser

type MasterUser struct {
	ID        int64      `json:"id" gorm:"primary_key"`
	Username  string     `json:"username" gorm:"unique; not null"`
	Email     string     `json:"email" gorm:"unique; not null"`
	Birthday  string     `json:"birthday" gorm:"not null"`
	FullName  string     `json:"fullName" gorm:"not null"`
	CreatedAt time.Time  `json:"createdAt" gorm:"not null"`
	UpdatedAt *time.Time `json:"updatedAt"`
	DeletedAt *time.Time `json:"-"`
}

MasterUser ...

type UserAuth

type UserAuth struct {
	UserID    int64      `json:"userId" gorm:"primary_key"`
	Password  string     `json:"password" gorm:"not null"`
	DeviceID  string     `json:"deviceId"`
	LastLogin *time.Time `json:"lastLogin"`
}

type UserDiary

type UserDiary struct {
	ID        int64      `json:"id" gorm:"primary_key"`
	UserID    int64      `json:"userId" gorm:"not null"`
	Title     string     `json:"title" gorm:"not null"`
	BodyText  string     `json:"bodyText" gorm:"not null"`
	DatePost  time.Time  `json:"datePost" gorm:"not null"`
	CreatedAt time.Time  `json:"createdAt" gorm:"not null"`
	UpdatedAt *time.Time `json:"updatedAt"`
	DeletedAt *time.Time `json:"deletedAt"`
}

Jump to

Keyboard shortcuts

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