entity

package
v0.0.0-...-a9a82f6 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	ID        int32      `json:"id"`
	UserID    int32      `json:"userId"`
	TypeID    int32      `json:"eventTypeId"`
	Date      time.Time  `json:"date"`
	CreatedAt time.Time  `json:"createdAt"`
	UpdatedAt time.Time  `json:"updatedAt"`
	DeletedAt *time.Time `json:"deletedAt"`
}

type EventType

type EventType struct {
	ID        int32      `json:"id"`
	UserID    int32      `json:"userId"`
	EventType string     `json:"eventType"`
	IsVisible bool       `json:"isVisible"`
	CreatedAt time.Time  `json:"createdAt"`
	UpdatedAt time.Time  `json:"updatedAt"`
	DeletedAt *time.Time `json:"deletedAt"`
}

type Friend

type Friend struct {
	ID         int32      `json:"id"`
	UserID     int32      `json:"userId"`
	WithUserID int32      `json:"withUserId"`
	CreatedAt  time.Time  `json:"createdAt"`
	UpdatedAt  time.Time  `json:"updatedAt"`
	DeletedAt  *time.Time `json:"deletedAt"`
}

type FriendInvite

type FriendInvite struct {
	ID         int32      `json:"id"`
	UserID     int32      `json:"userId"`
	WithUserID int32      `json:"withUserId"`
	CreatedAt  time.Time  `json:"createdAt"`
	UpdatedAt  time.Time  `json:"updatedAt"`
	DeletedAt  *time.Time `json:"deletedAt"`
}

type Password

type Password struct {
	ID             int32      `json:"id"`
	UserID         int32      `json:"userId"`
	PasswordHash   string     `json:"passwordHash"`
	FailedAttempts int32      `json:"failedAttempts"`
	CreatedAt      time.Time  `json:"createdAt"`
	UpdatedAt      time.Time  `json:"updatedAt"`
	DeletedAt      *time.Time `json:"deletedAt"`
	BlockedAt      *time.Time `json:"blockedAt"`
}

type Session

type Session struct {
	ID          int32      `json:"id"`
	UserID      int32      `json:"userId"`
	Session     string     `json:"session,omitempty"`
	SessionHash string     `json:"sessionHash"`
	CreatedAt   time.Time  `json:"createdAt"`
	UpdatedAt   time.Time  `json:"updatedAt"`
	DeletedAt   *time.Time `json:"deletedAt"`
}

type User

type User struct {
	ID            int32      `json:"id"`
	Username      string     `json:"username"`
	DisplayedName string     `json:"displayedName"`
	Email         *string    `json:"email"`
	ProfileImage  *string    `json:"profileImage"`
	CreatedAt     time.Time  `json:"createdAt"`
	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