model

package
v0.0.0-...-1b92868 Latest Latest
Warning

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

Go to latest
Published: May 6, 2021 License: GPL-3.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 Customer

type Customer struct {
	ID          bson.ObjectId `bson:"Id"           json:"Id"`
	Name        string        `bson:"name"         json:"name"`
	Description string        `bson:"description"  json:"description"`
	Photo       int64         `bson:"photo"        json:"photo"`
}

Customer - Struct a customer for a residency

type Note

type Note struct {
	ID          bson.ObjectId `bson:"Id"          json:"Id"`
	ResidencyID string        `bson:"residencyId" json:"residencyId"`
	Notes       string        `bson:"notes"       json:"notes"`
}

Note - Struct notes about a residency

type Residency

type Residency struct {
	ID          bson.ObjectId `bson:"_Id"          	json:"Id"`
	Name        string        `bson:"name"         	json:"name"`
	SalesKey    string        `bson:"salesKey"     	json:"salesKey"`
	Description string        `bson:"description"  	json:"description"`
	Prediction  time.Time     `bson:"prediction"   	json:"prediction"`
	CustomerID  string        `bson:"customerId"   	json:"customerId"`
	IsConfirmed bool          `bson:"isConfirmed"  	json:"isConfirmed"`
}

Residency - Struct a resdency that have a date predction to start

type StaffMember

type StaffMember struct {
	ID           bson.ObjectId `bson:"_Id"           	json:"Id"`
	Name         string        `bson:"name"          	json:"name"`
	Email        string        `bson:"email"         	json:"email"`
	Photo        int64         `bson:"photo"         	json:"photo"`
	IsCoreMember bool          `bson:"isCoreMember"		json:"isCoreMember"`
	ResidencyID  string        `bson:"residencyId"   	json:"residencyId"`
}

Team - Struct to refers the team that can work in a residency

type Track

type Track struct {
	ID        bson.ObjectId `bson:"_Id"           json:"Id"`
	Key       string        `bson:"key"           json:"key"`
	CreatedAt time.Time     `bson:"CreatedAt"     json:"CreatedAt"`
	UpdatedAt time.Time     `bson:"UpdatedAt"     json:"UpdatedAt"`
	UpdatedBy string        `bson:"UpdatedBy"     json:"UpdatedBy"`
}

Jump to

Keyboard shortcuts

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