util

package
v0.0.0-...-47e6888 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseMasterDB

func CloseMasterDB()

func CreateDB

func CreateDB()

func Master

func Master() *gorm.DB

func MigrateDB

func MigrateDB(db *gorm.DB) (err error)

func OpenDB

func OpenDB(dsn string, config *gorm.Config, maxIdleConns, maxOpenConns int) (err error)

Types

type Doctors

type Doctors struct {
	ID             uint   `gorm:"primaryKey"`
	EmployeeID     string `gorm:"unique;not null"`
	Name           string `gorm:"not null"`
	Specialization string
	Phone          string
	WorkDay        string
}

type Patients

type Patients struct {
	ID               uint   `gorm:"primaryKey"`
	Nik              string `gorm:"unique;not null"`
	Name             string `gorm:"not null"`
	Birthdate        time.Time
	Sex              string `gorm:"not null"`
	Address          string
	Phone            string
	EmergencyContact string
}

type Queue

type Queue struct {
	ID               uint   `gorm:"primaryKey"`
	PatientNik       string `gorm:"not null"`
	DoctorEmployeeID string `gorm:"not null"`
	QueueDate        time.Time
	Status           string `gorm:"default:Belum dilayani"`
}

Jump to

Keyboard shortcuts

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