fixture

package
v0.0.0-...-04f365a Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ActiveUser1 = entity.User{
		ID:        uuid.New(),
		Name:      "activeUser1",
		Email:     "activeUser1@gmail.com",
		Password:  "password",
		RoleID:    4,
		CreatedAt: time.Now(),
		UpdatedAt: time.Now(),
		DeletedAt: nil,
	}
	ActiveUser2 = entity.User{
		ID:        uuid.New(),
		Name:      "activeUser2",
		Email:     "activeUser2@gmail.com",
		Password:  "password",
		RoleID:    4,
		CreatedAt: time.Now().Add(1 * time.Hour),
		UpdatedAt: time.Now().Add(1 * time.Hour),
		DeletedAt: nil,
	}
	InactiveUser1 = entity.User{
		ID:        uuid.New(),
		Name:      "inactiveUser1",
		Email:     "inactiveUser1@gmail.com",
		Password:  "password",
		RoleID:    4,
		CreatedAt: time.Now().Add(2 * time.Hour),
		UpdatedAt: time.Now().Add(2 * time.Hour),
		DeletedAt: func(t time.Time) *time.Time { return &t }(time.Now().Add(2 * time.Hour)),
	}
	InactiveUser2 = entity.User{
		ID:        uuid.New(),
		Name:      "inactiveUser2",
		Email:     "inactiveUser2@gmail.com",
		Password:  "password",
		RoleID:    4,
		CreatedAt: time.Now().Add(3 * time.Hour),
		UpdatedAt: time.Now().Add(3 * time.Hour),
		DeletedAt: func(t time.Time) *time.Time { return &t }(time.Now().Add(3 * time.Hour)),
	}
)

* Make sure its the same order as the Struct

View Source
var Rows = []string{
	"id", "name", "email", "password", "role_id", "created_at", "updated_at", "deleted_at",
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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