erg

package
v0.0.0-...-3763cbc Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Generated by sqlboiler-erg: DO NOT EDIT.

Generated by sqlboiler-erg: DO NOT EDIT.

Generated by sqlboiler-erg: DO NOT EDIT.

Generated by sqlboiler-erg: DO NOT EDIT.

Generated by sqlboiler-erg: DO NOT EDIT.

Generated by sqlboiler-erg: DO NOT EDIT.

Generated by sqlboiler-erg: DO NOT EDIT.

Generated by sqlboiler-erg: DO NOT EDIT.

Generated by sqlboiler-erg: DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var TablesWithColumnsMap = TablesWithColumns{
	dm.TableNames.Account: map[string]bool{
		dm.AccountColumns.ID:        true,
		dm.AccountColumns.FirstName: true,
		dm.AccountColumns.LastName:  true,
		dm.AccountColumns.Email:     true,
		dm.AccountColumns.CreatedAt: true,
		dm.AccountColumns.UpdatedAt: true,
		dm.AccountColumns.DeletedAt: true,
	},
	dm.TableNames.AccountSession: map[string]bool{
		dm.AccountSessionColumns.ID:        true,
		dm.AccountSessionColumns.AccountID: true,
		dm.AccountSessionColumns.IPAddress: true,
		dm.AccountSessionColumns.UserAgent: true,
		dm.AccountSessionColumns.ExpiresAt: true,
		dm.AccountSessionColumns.CreatedAt: true,
		dm.AccountSessionColumns.UpdatedAt: true,
		dm.AccountSessionColumns.DeletedAt: true,
	},
	dm.TableNames.Comment: map[string]bool{
		dm.CommentColumns.ID:             true,
		dm.CommentColumns.OrganizationID: true,
		dm.CommentColumns.EventID:        true,
		dm.CommentColumns.AccountID:      true,
		dm.CommentColumns.Comment:        true,
		dm.CommentColumns.CreatedAt:      true,
		dm.CommentColumns.UpdatedAt:      true,
		dm.CommentColumns.DeletedAt:      true,
	},
	dm.TableNames.Event: map[string]bool{
		dm.EventColumns.ID:             true,
		dm.EventColumns.OrganizationID: true,
		dm.EventColumns.AccountID:      true,
		dm.EventColumns.Name:           true,
		dm.EventColumns.Description:    true,
		dm.EventColumns.CreatedAt:      true,
		dm.EventColumns.UpdatedAt:      true,
		dm.EventColumns.DeletedAt:      true,
	},
	dm.TableNames.Organization: map[string]bool{
		dm.OrganizationColumns.ID:        true,
		dm.OrganizationColumns.Name:      true,
		dm.OrganizationColumns.CreatedAt: true,
		dm.OrganizationColumns.UpdatedAt: true,
		dm.OrganizationColumns.DeletedAt: true,
	},
	dm.TableNames.OrganizationAccount: map[string]bool{
		dm.OrganizationAccountColumns.ID:             true,
		dm.OrganizationAccountColumns.OrganizationID: true,
		dm.OrganizationAccountColumns.AccountID:      true,
		dm.OrganizationAccountColumns.Role:           true,
		dm.OrganizationAccountColumns.CreatedAt:      true,
		dm.OrganizationAccountColumns.UpdatedAt:      true,
		dm.OrganizationAccountColumns.DeletedAt:      true,
	},
}

Functions

func TableHasColumn

func TableHasColumn(tableName, columnName string) bool

Types

type Account

type Account struct {
	ID        string     `json:"id,omitempty" toml:"id" yaml:"id"`
	FirstName string     `json:"firstName,omitempty" toml:"first_name" yaml:"first_name"`
	LastName  string     `json:"lastName,omitempty" toml:"last_name" yaml:"last_name"`
	Email     string     `json:"email,omitempty" toml:"email" yaml:"email"`
	CreatedAt time.Time  `json:"createdAt,omitempty" toml:"created_at" yaml:"created_at"`
	UpdatedAt time.Time  `json:"updatedAt,omitempty" toml:"updated_at" yaml:"updated_at"`
	DeletedAt *time.Time `json:"deletedAt,omitempty" toml:"deleted_at" yaml:"deleted_at"`

	AccountSessions      AccountSessionSlice      `json:"accountSessions,omitempty" toml:"account_sessions" yaml:"account_sessions"`
	Comments             CommentSlice             `json:"comments,omitempty" toml:"comments" yaml:"comments"`
	Events               EventSlice               `json:"events,omitempty" toml:"events" yaml:"events"`
	OrganizationAccounts OrganizationAccountSlice `json:"organizationAccounts,omitempty" toml:"organization_accounts" yaml:"organization_accounts"`

	CustomFields `json:"customFields,omitempty" toml:"custom_fields" yaml:"custom_fields"`
}

func ToAccount

func ToAccount(a *dm.Account, customFields CustomFields, exclude ...string) *Account

type AccountSession

type AccountSession struct {
	ID        string     `json:"id,omitempty" toml:"id" yaml:"id"`
	AccountID string     `json:"accountId,omitempty" toml:"account_id" yaml:"account_id"`
	IPAddress string     `json:"ipAddress,omitempty" toml:"ip_address" yaml:"ip_address"`
	UserAgent string     `json:"userAgent,omitempty" toml:"user_agent" yaml:"user_agent"`
	ExpiresAt time.Time  `json:"expiresAt,omitempty" toml:"expires_at" yaml:"expires_at"`
	CreatedAt time.Time  `json:"createdAt,omitempty" toml:"created_at" yaml:"created_at"`
	UpdatedAt time.Time  `json:"updatedAt,omitempty" toml:"updated_at" yaml:"updated_at"`
	DeletedAt *time.Time `json:"deletedAt,omitempty" toml:"deleted_at" yaml:"deleted_at"`

	Account *Account `json:"account,omitempty" toml:"account" yaml:"account"`

	CustomFields `json:"customFields,omitempty" toml:"custom_fields" yaml:"custom_fields"`
}

func ToAccountSession

func ToAccountSession(a *dm.AccountSession, customFields CustomFields, exclude ...string) *AccountSession

type AccountSessionSlice

type AccountSessionSlice []*AccountSession

func ToAccountSessions

func ToAccountSessions(a dm.AccountSessionSlice, acf CustomFieldsSlice, exclude ...string) AccountSessionSlice

type AccountSlice

type AccountSlice []*Account

func ToAccounts

func ToAccounts(a dm.AccountSlice, acf CustomFieldsSlice, exclude ...string) AccountSlice

type Comment

type Comment struct {
	ID             string     `json:"id,omitempty" toml:"id" yaml:"id"`
	OrganizationID string     `json:"organizationId,omitempty" toml:"organization_id" yaml:"organization_id"`
	EventID        string     `json:"eventId,omitempty" toml:"event_id" yaml:"event_id"`
	AccountID      string     `json:"accountId,omitempty" toml:"account_id" yaml:"account_id"`
	Comment        string     `json:"comment,omitempty" toml:"comment" yaml:"comment"`
	CreatedAt      time.Time  `json:"createdAt,omitempty" toml:"created_at" yaml:"created_at"`
	UpdatedAt      time.Time  `json:"updatedAt,omitempty" toml:"updated_at" yaml:"updated_at"`
	DeletedAt      *time.Time `json:"deletedAt,omitempty" toml:"deleted_at" yaml:"deleted_at"`

	Account      *Account      `json:"account,omitempty" toml:"account" yaml:"account"`
	Event        *Event        `json:"event,omitempty" toml:"event" yaml:"event"`
	Organization *Organization `json:"organization,omitempty" toml:"organization" yaml:"organization"`

	CustomFields `json:"customFields,omitempty" toml:"custom_fields" yaml:"custom_fields"`
}

func ToComment

func ToComment(a *dm.Comment, customFields CustomFields, exclude ...string) *Comment

type CommentSlice

type CommentSlice []*Comment

func ToComments

func ToComments(a dm.CommentSlice, acf CustomFieldsSlice, exclude ...string) CommentSlice

type CustomFields

type CustomFields map[string]interface{}

type CustomFieldsSlice

type CustomFieldsSlice map[string]CustomFields

type Event

type Event struct {
	ID             string     `json:"id,omitempty" toml:"id" yaml:"id"`
	OrganizationID string     `json:"organizationId,omitempty" toml:"organization_id" yaml:"organization_id"`
	AccountID      string     `json:"accountId,omitempty" toml:"account_id" yaml:"account_id"`
	Name           string     `json:"name,omitempty" toml:"name" yaml:"name"`
	Description    string     `json:"description,omitempty" toml:"description" yaml:"description"`
	CreatedAt      time.Time  `json:"createdAt,omitempty" toml:"created_at" yaml:"created_at"`
	UpdatedAt      time.Time  `json:"updatedAt,omitempty" toml:"updated_at" yaml:"updated_at"`
	DeletedAt      *time.Time `json:"deletedAt,omitempty" toml:"deleted_at" yaml:"deleted_at"`

	Account      *Account      `json:"account,omitempty" toml:"account" yaml:"account"`
	Organization *Organization `json:"organization,omitempty" toml:"organization" yaml:"organization"`
	Comments     CommentSlice  `json:"comments,omitempty" toml:"comments" yaml:"comments"`

	CustomFields `json:"customFields,omitempty" toml:"custom_fields" yaml:"custom_fields"`
}

func ToEvent

func ToEvent(a *dm.Event, customFields CustomFields, exclude ...string) *Event

type EventSlice

type EventSlice []*Event

func ToEvents

func ToEvents(a dm.EventSlice, acf CustomFieldsSlice, exclude ...string) EventSlice

type Organization

type Organization struct {
	ID        string     `json:"id,omitempty" toml:"id" yaml:"id"`
	Name      string     `json:"name,omitempty" toml:"name" yaml:"name"`
	CreatedAt time.Time  `json:"createdAt,omitempty" toml:"created_at" yaml:"created_at"`
	UpdatedAt time.Time  `json:"updatedAt,omitempty" toml:"updated_at" yaml:"updated_at"`
	DeletedAt *time.Time `json:"deletedAt,omitempty" toml:"deleted_at" yaml:"deleted_at"`

	Comments             CommentSlice             `json:"comments,omitempty" toml:"comments" yaml:"comments"`
	Events               EventSlice               `json:"events,omitempty" toml:"events" yaml:"events"`
	OrganizationAccounts OrganizationAccountSlice `json:"organizationAccounts,omitempty" toml:"organization_accounts" yaml:"organization_accounts"`

	CustomFields `json:"customFields,omitempty" toml:"custom_fields" yaml:"custom_fields"`
}

func ToOrganization

func ToOrganization(a *dm.Organization, customFields CustomFields, exclude ...string) *Organization

type OrganizationAccount

type OrganizationAccount struct {
	ID             string     `json:"id,omitempty" toml:"id" yaml:"id"`
	OrganizationID string     `json:"organizationId,omitempty" toml:"organization_id" yaml:"organization_id"`
	AccountID      string     `json:"accountId,omitempty" toml:"account_id" yaml:"account_id"`
	Role           Role       `json:"role,omitempty" toml:"role" yaml:"role"`
	CreatedAt      time.Time  `json:"createdAt,omitempty" toml:"created_at" yaml:"created_at"`
	UpdatedAt      time.Time  `json:"updatedAt,omitempty" toml:"updated_at" yaml:"updated_at"`
	DeletedAt      *time.Time `json:"deletedAt,omitempty" toml:"deleted_at" yaml:"deleted_at"`

	Account      *Account      `json:"account,omitempty" toml:"account" yaml:"account"`
	Organization *Organization `json:"organization,omitempty" toml:"organization" yaml:"organization"`

	CustomFields `json:"customFields,omitempty" toml:"custom_fields" yaml:"custom_fields"`
}

func ToOrganizationAccount

func ToOrganizationAccount(a *dm.OrganizationAccount, customFields CustomFields, exclude ...string) *OrganizationAccount

type OrganizationAccountSlice

type OrganizationAccountSlice []*OrganizationAccount

type OrganizationSlice

type OrganizationSlice []*Organization

func ToOrganizations

func ToOrganizations(a dm.OrganizationSlice, acf CustomFieldsSlice, exclude ...string) OrganizationSlice

type Role

type Role string

type TablesWithColumns

type TablesWithColumns map[string]map[string]bool

Jump to

Keyboard shortcuts

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