db

package
v0.0.0-...-6789e5d Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDB

func GetDB() *gorm.DB

func InitDB

func InitDB()

Types

type CHECKLIST

type CHECKLIST struct {
	gorm.Model
	ChecklistItem string `json:"ChecklistItem"`
}

type ChecklistItem

type ChecklistItem struct {
	Category      string         `json:"category"`
	SwedishValues []SwedishValue `json:"swedish_values"`
	EnglishValues []EnglishValue `json:"english_values"`
}

type EnglishValue

type EnglishValue struct {
	ChecklistItemID string `json:"ChecklistItemID"`
	Prompt          string `json:"prompt"`
}

type SCHEDULE

type SCHEDULE struct {
	gorm.Model
	Key           string
	Overseers     string
	Comments      string
	ChecklistJSON string
}

type SwedishValue

type SwedishValue struct {
	ChecklistItemID string `json:"ChecklistItemID"`
	Prompt          string `json:"prompt"`
}

Jump to

Keyboard shortcuts

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