treatments

package
v0.0.0-...-aebfb3a Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Treatment

type Treatment struct {
	ID uu.ID `db:"id,pk"`

	CaseStudyID uu.ID `db:"case_study_id"`

	External bool `db:"external"`

	StartedAt time.Time `db:"started_at"`
	EndedAt   time.Time `db:"ended_at"`

	Title              string                  `db:"title"`
	Description        nullable.NonEmptyString `db:"description"`
	PrivateDescription nullable.NonEmptyString `db:"private_description"`

	Score *uint8 `db:"score"` // check(score >= 1 and score <= 5),

	CreatedBy uu.ID         `db:"created_by"`
	UpdatedBy uu.NullableID `db:"updated_by"`

	CreatedAt time.Time `db:"created_at"`
	UpdatedAt time.Time `db:"updated_at"`
}

Jump to

Keyboard shortcuts

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