model

package
v0.0.0-...-e3c8303 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: GPL-3.0 Imports: 3 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 {
	DeptNo   string `gorm:"column:dept_no;primary_key" json:"dept_no"`
	DeptName string `gorm:"column:dept_name" json:"dept_name"`
}

func (*Department) TableName

func (d *Department) TableName() string

TableName sets the insert table name for this struct type

type DeptEmp

type DeptEmp struct {
	EmpNo    int       `gorm:"column:emp_no;primary_key" json:"emp_no"`
	DeptNo   string    `gorm:"column:dept_no" json:"dept_no"`
	FromDate time.Time `gorm:"column:from_date" json:"from_date"`
	ToDate   time.Time `gorm:"column:to_date" json:"to_date"`
}

func (*DeptEmp) TableName

func (d *DeptEmp) TableName() string

TableName sets the insert table name for this struct type

type DeptManager

type DeptManager struct {
	EmpNo    int       `gorm:"column:emp_no;primary_key" json:"emp_no"`
	DeptNo   string    `gorm:"column:dept_no" json:"dept_no"`
	FromDate time.Time `gorm:"column:from_date" json:"from_date"`
	ToDate   time.Time `gorm:"column:to_date" json:"to_date"`
}

func (*DeptManager) TableName

func (d *DeptManager) TableName() string

TableName sets the insert table name for this struct type

type Employee

type Employee struct {
	EmpNo     int       `gorm:"column:emp_no;primary_key" json:"emp_no"`
	BirthDate time.Time `gorm:"column:birth_date" json:"birth_date"`
	FirstName string    `gorm:"column:first_name" json:"first_name"`
	LastName  string    `gorm:"column:last_name" json:"last_name"`
	Gender    string    `gorm:"column:gender" json:"gender"`
	HireDate  time.Time `gorm:"column:hire_date" json:"hire_date"`
}

func (*Employee) TableName

func (e *Employee) TableName() string

TableName sets the insert table name for this struct type

type Salary

type Salary struct {
	EmpNo    int       `gorm:"column:emp_no;primary_key" json:"emp_no"`
	Salary   int       `gorm:"column:salary" json:"salary"`
	FromDate time.Time `gorm:"column:from_date" json:"from_date"`
	ToDate   time.Time `gorm:"column:to_date" json:"to_date"`
}

func (*Salary) TableName

func (s *Salary) TableName() string

TableName sets the insert table name for this struct type

type Title

type Title struct {
	EmpNo    int       `gorm:"column:emp_no;primary_key" json:"emp_no"`
	Title    string    `gorm:"column:title" json:"title"`
	FromDate time.Time `gorm:"column:from_date" json:"from_date"`
	ToDate   null.Time `gorm:"column:to_date" json:"to_date"`
}

func (*Title) TableName

func (t *Title) TableName() string

TableName sets the insert table name for this struct type

Jump to

Keyboard shortcuts

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