seeder

package
v0.0.0-...-1b63b6c Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: Apache-2.0 Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFakeCompany

func CreateFakeCompany(db *gorm.DB) error

func Seed

func Seed(db *gorm.DB) error

Types

type Company

type Company struct {
	ID        uint `faker:"-"`
	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt gorm.DeletedAt
	Name      string `faker:"domain_name"`
	Phone     string `faker:"toll_free_number"`
	Email     string `faker:"email"`
	Address   string `faker:"sentence"`
	TaxNumber string `faker:"phone_number"`
}

func FakeCompany

func FakeCompany() (Company, error)

Jump to

Keyboard shortcuts

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