model

package
v0.0.0-...-60e53c5 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DBMigrate

func DBMigrate(db *gorm.DB) *gorm.DB

DBMigrate will create and migrate the tables

Types

type Vehicle

type Vehicle struct {
	gorm.Model
	VNo    string `gorm:"unique" json:"vno"`
	Modal  string `json:"modal"`
	Brand  string `json:"brand"`
	Fuel   string `json:"fuel"`
	Status bool   `json:"status"`
}

Jump to

Keyboard shortcuts

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