models

package
v0.0.0-...-33c65be Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Department

type Department struct {
	Name      string
	ShortName string
}

type Employee

type Employee struct {
	Human
	Salary float32
}

type Human

type Human struct {
	gorm.Model
	Name    string `json:"Name" gorm:"type:varchar(255)"`
	Surname string `json:"Surname" gorm:"type:varchar(255)"`
	Age     int32  `json:"Age"`
}

type Lesson

type Lesson struct {
	Name      string
	ShortName string
}

type Manager

type Manager struct {
	Human
	Salary float32
}

type Student

type Student struct {
	Human
}

type Teacher

type Teacher struct {
	Human
	Branch string
	Salary float32
}

Jump to

Keyboard shortcuts

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