entity

package
v0.0.0-...-d94427d Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Community

type Community struct {
	ID             string `gorm:"primaryKey"`
	Name           string
	UserID         string
	InvoiceID      string
	Description    string
	ProfilePicture string
	CoverPicture   string
	Status         string
	Posts          []Post   `gorm:"foreignKey:CommunityID"`
	Members        []Member `gorm:"foreignKey:CommunityID"`
}

type Invoice

type Invoice struct {
	ID        string `gorm:"primaryKey"`
	UserID    string
	Amount    uint64
	Purpose   string
	Status    string
	Community Community `gorm:"foreignKey:InvoiceID"`
}

type Member

type Member struct {
	ID          string `gorm:"primaryKey"`
	UserID      string
	CommunityID string
}

type Post

type Post struct {
	ID          string `gorm:"primaryKey"`
	Category    int
	CommunityID string
	UserID      string
	Link        string
	Title       string
	Description string
	ImageUrl    string
	Community   Community
}

type Terminal

type Terminal struct {
	ID        string `gorm:"primaryKey"`
	Name      string
	Latitude  string
	Longitude string
}

type User

type User struct {
	ID         string `gorm:"primaryKey"`
	Email      string `gorm:"not null;unique"`
	Password   string
	FullName   string
	Posts      []Post      `gorm:"foreignKey:UserID"`
	Communitys []Community `gorm:"foreignKey:UserID"`
	Members    []Member    `gorm:"foreignKey:UserID"`
}

Jump to

Keyboard shortcuts

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