models

package
v0.0.0-...-e32e584 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: 0BSD Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const TableNameMember = "member"
View Source
const TableNameUser = "users"

Variables

This section is empty.

Functions

This section is empty.

Types

type Member

type Member struct {
	ID             int64     `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	Mcode          string    `gorm:"column:mcode;not null" json:"mcode"` // 확인용 Code
	AccessToken    string    `gorm:"column:access_token" json:"access_token"`
	RefreshToken   string    `gorm:"column:refresh_token" json:"refresh_token"`
	Channel        string    `gorm:"column:channel" json:"channel"`                        // 로그인 채널 : G - google plus, F - facebook, N - naver
	NickName       string    `gorm:"column:nick_name" json:"nick_name"`                    // 닉네임
	ProfileImageID int64     `gorm:"column:profile_image_id" json:"profile_image_id"`      // 프로필 이미지 id
	ActiveYn       bool      `gorm:"column:active_yn;not null;default:1" json:"active_yn"` // 활성화 : 1(active), 휴면 : 0 (non-active)
	TUUID          string    `gorm:"column:t_uuid" json:"t_uuid"`
	TGid           string    `gorm:"column:t_gid" json:"t_gid"`
	UseYn          bool      `gorm:"column:use_yn;not null;default:1" json:"use_yn"` // 사용여부
	DelYn          bool      `gorm:"column:del_yn;not null" json:"del_yn"`           // 탈퇴여부
	LastLoginDt    time.Time `gorm:"column:last_login_dt" json:"last_login_dt"`      // 최종 로그인 일시
	LoginToken     string    `gorm:"column:login_token" json:"login_token"`          // 로그인토큰
	CreatedDt      time.Time `gorm:"column:created_dt;not null" json:"created_dt"`   // 등록일
	UpdatedDt      time.Time `gorm:"column:updated_dt;not null" json:"updated_dt"`   // 수정일
	DeletedDt      time.Time `gorm:"column:deleted_dt" json:"deleted_dt"`            // 탈퇴일
}

Member mapped from table <member>

func (*Member) TableName

func (*Member) TableName() string

TableName Member's table name

type User

type User struct {
	ID           int32          `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	Email        *string        `gorm:"column:email;not null" json:"email"`
	Name         string         `gorm:"column:name;not null" json:"name"`
	Age          int32          `gorm:"column:age" json:"age"`
	Birthday     *time.Time     `gorm:"column:birthday" json:"birthday"`
	MemberNumber sql.NullString `gorm:"column:member_number" json:"member_number"`
	CreatedAt    time.Time      `gorm:"column:created_at;not null" json:"created_at"`
	UpdatedAt    time.Time      `gorm:"column:updated_at;not null" json:"updated_at"`
}

User model

func (*User) TableName

func (*User) TableName() string

TableName User's table name

Jump to

Keyboard shortcuts

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