db

package
v0.0.0-...-a7b642f Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type House_t

type House_t struct {
	gorm.Model
	Owner       uint
	Name        string
	RentalFee   uint
	Deposit     uint
	Maintenance uint
	RoomSize    uint
	IsRent      bool
	Location    Coordinate_t `gorm:"embedded"`
	CheckList   CheckList_t  `gorm:"embedded"`
	EnvScore    float64
	CLScore     float64
}

type User_t

type User_t struct {
	gorm.Model
	SignID      string
	PW          string
	Budget      uint
	WorkAddress Coordinate_t `gorm:"embedded"`
	PreferedFac string
	PreferedEnv CheckList_t `gorm:"embedded"`
	Houses      []House_t   `gorm:"foreignKey:Owner"`
}

Jump to

Keyboard shortcuts

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