models

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApplicationColumns = struct {
	ID              string
	Name            string
	Slug            string
	Kind            string
	CreatedAt       string
	UpdatedAt       string
	DeletedAt       string
	ApproverGroupID string
	TypeID          string
}{
	ID:              "id",
	Name:            "name",
	Slug:            "slug",
	Kind:            "kind",
	CreatedAt:       "created_at",
	UpdatedAt:       "updated_at",
	DeletedAt:       "deleted_at",
	ApproverGroupID: "approver_group_id",
	TypeID:          "type_id",
}
View Source
var ApplicationRels = struct {
	Type                          string
	ApproverGroup                 string
	SubjectApplicationAuditEvents string
	GroupApplicationRequests      string
	GroupApplications             string
}{
	Type:                          "Type",
	ApproverGroup:                 "ApproverGroup",
	SubjectApplicationAuditEvents: "SubjectApplicationAuditEvents",
	GroupApplicationRequests:      "GroupApplicationRequests",
	GroupApplications:             "GroupApplications",
}

ApplicationRels is where relationship names are stored.

View Source
var ApplicationTableColumns = struct {
	ID              string
	Name            string
	Slug            string
	Kind            string
	CreatedAt       string
	UpdatedAt       string
	DeletedAt       string
	ApproverGroupID string
	TypeID          string
}{
	ID:              "applications.id",
	Name:            "applications.name",
	Slug:            "applications.slug",
	Kind:            "applications.kind",
	CreatedAt:       "applications.created_at",
	UpdatedAt:       "applications.updated_at",
	DeletedAt:       "applications.deleted_at",
	ApproverGroupID: "applications.approver_group_id",
	TypeID:          "applications.type_id",
}
View Source
var ApplicationTypeColumns = struct {
	ID          string
	Name        string
	Slug        string
	Description string
	LogoURL     string
	CreatedAt   string
	UpdatedAt   string
	DeletedAt   string
}{
	ID:          "id",
	Name:        "name",
	Slug:        "slug",
	Description: "description",
	LogoURL:     "logo_url",
	CreatedAt:   "created_at",
	UpdatedAt:   "updated_at",
	DeletedAt:   "deleted_at",
}
View Source
var ApplicationTypeRels = struct {
	TypeApplications string
}{
	TypeApplications: "TypeApplications",
}

ApplicationTypeRels is where relationship names are stored.

View Source
var ApplicationTypeTableColumns = struct {
	ID          string
	Name        string
	Slug        string
	Description string
	LogoURL     string
	CreatedAt   string
	UpdatedAt   string
	DeletedAt   string
}{
	ID:          "application_types.id",
	Name:        "application_types.name",
	Slug:        "application_types.slug",
	Description: "application_types.description",
	LogoURL:     "application_types.logo_url",
	CreatedAt:   "application_types.created_at",
	UpdatedAt:   "application_types.updated_at",
	DeletedAt:   "application_types.deleted_at",
}
View Source
var ApplicationTypeWhere = struct {
	ID          whereHelperstring
	Name        whereHelperstring
	Slug        whereHelperstring
	Description whereHelperstring
	LogoURL     whereHelpernull_String
	CreatedAt   whereHelpertime_Time
	UpdatedAt   whereHelpertime_Time
	DeletedAt   whereHelpernull_Time
}{
	ID:          whereHelperstring{/* contains filtered or unexported fields */},
	Name:        whereHelperstring{/* contains filtered or unexported fields */},
	Slug:        whereHelperstring{/* contains filtered or unexported fields */},
	Description: whereHelperstring{/* contains filtered or unexported fields */},
	LogoURL:     whereHelpernull_String{/* contains filtered or unexported fields */},
	CreatedAt:   whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:   whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt:   whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var ApplicationWhere = struct {
	ID              whereHelperstring
	Name            whereHelperstring
	Slug            whereHelperstring
	Kind            whereHelperstring
	CreatedAt       whereHelpertime_Time
	UpdatedAt       whereHelpertime_Time
	DeletedAt       whereHelpernull_Time
	ApproverGroupID whereHelpernull_String
	TypeID          whereHelpernull_String
}{
	ID:              whereHelperstring{/* contains filtered or unexported fields */},
	Name:            whereHelperstring{/* contains filtered or unexported fields */},
	Slug:            whereHelperstring{/* contains filtered or unexported fields */},
	Kind:            whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt:       whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:       whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt:       whereHelpernull_Time{/* contains filtered or unexported fields */},
	ApproverGroupID: whereHelpernull_String{/* contains filtered or unexported fields */},
	TypeID:          whereHelpernull_String{/* contains filtered or unexported fields */},
}
View Source
var AuditEventColumns = struct {
	ID                    string
	ActorID               string
	Action                string
	Message               string
	Changeset             string
	SubjectGroupID        string
	SubjectUserID         string
	CreatedAt             string
	SubjectOrganizationID string
	SubjectApplicationID  string
	ParentID              string
}{
	ID:                    "id",
	ActorID:               "actor_id",
	Action:                "action",
	Message:               "message",
	Changeset:             "changeset",
	SubjectGroupID:        "subject_group_id",
	SubjectUserID:         "subject_user_id",
	CreatedAt:             "created_at",
	SubjectOrganizationID: "subject_organization_id",
	SubjectApplicationID:  "subject_application_id",
	ParentID:              "parent_id",
}
View Source
var AuditEventRels = struct {
	SubjectUser         string
	SubjectOrganization string
	SubjectGroup        string
	SubjectApplication  string
	Actor               string
}{
	SubjectUser:         "SubjectUser",
	SubjectOrganization: "SubjectOrganization",
	SubjectGroup:        "SubjectGroup",
	SubjectApplication:  "SubjectApplication",
	Actor:               "Actor",
}

AuditEventRels is where relationship names are stored.

View Source
var AuditEventTableColumns = struct {
	ID                    string
	ActorID               string
	Action                string
	Message               string
	Changeset             string
	SubjectGroupID        string
	SubjectUserID         string
	CreatedAt             string
	SubjectOrganizationID string
	SubjectApplicationID  string
	ParentID              string
}{
	ID:                    "audit_events.id",
	ActorID:               "audit_events.actor_id",
	Action:                "audit_events.action",
	Message:               "audit_events.message",
	Changeset:             "audit_events.changeset",
	SubjectGroupID:        "audit_events.subject_group_id",
	SubjectUserID:         "audit_events.subject_user_id",
	CreatedAt:             "audit_events.created_at",
	SubjectOrganizationID: "audit_events.subject_organization_id",
	SubjectApplicationID:  "audit_events.subject_application_id",
	ParentID:              "audit_events.parent_id",
}
View Source
var AuditEventWhere = struct {
	ID                    whereHelperstring
	ActorID               whereHelpernull_String
	Action                whereHelperstring
	Message               whereHelperstring
	Changeset             whereHelpertypes_StringArray
	SubjectGroupID        whereHelpernull_String
	SubjectUserID         whereHelpernull_String
	CreatedAt             whereHelpertime_Time
	SubjectOrganizationID whereHelpernull_String
	SubjectApplicationID  whereHelpernull_String
	ParentID              whereHelpernull_String
}{
	ID:                    whereHelperstring{/* contains filtered or unexported fields */},
	ActorID:               whereHelpernull_String{/* contains filtered or unexported fields */},
	Action:                whereHelperstring{/* contains filtered or unexported fields */},
	Message:               whereHelperstring{/* contains filtered or unexported fields */},
	Changeset:             whereHelpertypes_StringArray{/* contains filtered or unexported fields */},
	SubjectGroupID:        whereHelpernull_String{/* contains filtered or unexported fields */},
	SubjectUserID:         whereHelpernull_String{/* contains filtered or unexported fields */},
	CreatedAt:             whereHelpertime_Time{/* contains filtered or unexported fields */},
	SubjectOrganizationID: whereHelpernull_String{/* contains filtered or unexported fields */},
	SubjectApplicationID:  whereHelpernull_String{/* contains filtered or unexported fields */},
	ParentID:              whereHelpernull_String{/* contains filtered or unexported fields */},
}
View Source
var ErrSyncFail = errors.New("models: failed to synchronize data after insert")

ErrSyncFail occurs during insert when the record could not be retrieved in order to populate default value information. This usually happens when LastInsertId fails or there was a primary key configuration that was not resolvable.

View Source
var GroupApplicationColumns = struct {
	ID            string
	GroupID       string
	ApplicationID string
	CreatedAt     string
	UpdatedAt     string
	DeletedAt     string
}{
	ID:            "id",
	GroupID:       "group_id",
	ApplicationID: "application_id",
	CreatedAt:     "created_at",
	UpdatedAt:     "updated_at",
	DeletedAt:     "deleted_at",
}
View Source
var GroupApplicationRels = struct {
	Group       string
	Application string
}{
	Group:       "Group",
	Application: "Application",
}

GroupApplicationRels is where relationship names are stored.

View Source
var GroupApplicationRequestColumns = struct {
	ID              string
	GroupID         string
	ApplicationID   string
	ApproverGroupID string
	RequesterUserID string
	Note            string
	CreatedAt       string
	UpdatedAt       string
}{
	ID:              "id",
	GroupID:         "group_id",
	ApplicationID:   "application_id",
	ApproverGroupID: "approver_group_id",
	RequesterUserID: "requester_user_id",
	Note:            "note",
	CreatedAt:       "created_at",
	UpdatedAt:       "updated_at",
}
View Source
var GroupApplicationRequestRels = struct {
	RequesterUser string
	Group         string
	ApproverGroup string
	Application   string
}{
	RequesterUser: "RequesterUser",
	Group:         "Group",
	ApproverGroup: "ApproverGroup",
	Application:   "Application",
}

GroupApplicationRequestRels is where relationship names are stored.

View Source
var GroupApplicationRequestTableColumns = struct {
	ID              string
	GroupID         string
	ApplicationID   string
	ApproverGroupID string
	RequesterUserID string
	Note            string
	CreatedAt       string
	UpdatedAt       string
}{
	ID:              "group_application_requests.id",
	GroupID:         "group_application_requests.group_id",
	ApplicationID:   "group_application_requests.application_id",
	ApproverGroupID: "group_application_requests.approver_group_id",
	RequesterUserID: "group_application_requests.requester_user_id",
	Note:            "group_application_requests.note",
	CreatedAt:       "group_application_requests.created_at",
	UpdatedAt:       "group_application_requests.updated_at",
}
View Source
var GroupApplicationRequestWhere = struct {
	ID              whereHelperstring
	GroupID         whereHelperstring
	ApplicationID   whereHelperstring
	ApproverGroupID whereHelperstring
	RequesterUserID whereHelperstring
	Note            whereHelpernull_String
	CreatedAt       whereHelpertime_Time
	UpdatedAt       whereHelpertime_Time
}{
	ID:              whereHelperstring{/* contains filtered or unexported fields */},
	GroupID:         whereHelperstring{/* contains filtered or unexported fields */},
	ApplicationID:   whereHelperstring{/* contains filtered or unexported fields */},
	ApproverGroupID: whereHelperstring{/* contains filtered or unexported fields */},
	RequesterUserID: whereHelperstring{/* contains filtered or unexported fields */},
	Note:            whereHelpernull_String{/* contains filtered or unexported fields */},
	CreatedAt:       whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:       whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var GroupApplicationTableColumns = struct {
	ID            string
	GroupID       string
	ApplicationID string
	CreatedAt     string
	UpdatedAt     string
	DeletedAt     string
}{
	ID:            "group_applications.id",
	GroupID:       "group_applications.group_id",
	ApplicationID: "group_applications.application_id",
	CreatedAt:     "group_applications.created_at",
	UpdatedAt:     "group_applications.updated_at",
	DeletedAt:     "group_applications.deleted_at",
}
View Source
var GroupApplicationWhere = struct {
	ID            whereHelperstring
	GroupID       whereHelperstring
	ApplicationID whereHelperstring
	CreatedAt     whereHelpertime_Time
	UpdatedAt     whereHelpertime_Time
	DeletedAt     whereHelpernull_Time
}{
	ID:            whereHelperstring{/* contains filtered or unexported fields */},
	GroupID:       whereHelperstring{/* contains filtered or unexported fields */},
	ApplicationID: whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt:     whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:     whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt:     whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var GroupColumns = struct {
	ID          string
	Name        string
	Slug        string
	Description string
	CreatedAt   string
	UpdatedAt   string
	DeletedAt   string
	Note        string
}{
	ID:          "id",
	Name:        "name",
	Slug:        "slug",
	Description: "description",
	CreatedAt:   "created_at",
	UpdatedAt:   "updated_at",
	DeletedAt:   "deleted_at",
	Note:        "note",
}
View Source
var GroupHierarchyColumns = struct {
	ID            string
	ParentGroupID string
	MemberGroupID string
	CreatedAt     string
	UpdatedAt     string
	ExpiresAt     string
}{
	ID:            "id",
	ParentGroupID: "parent_group_id",
	MemberGroupID: "member_group_id",
	CreatedAt:     "created_at",
	UpdatedAt:     "updated_at",
	ExpiresAt:     "expires_at",
}
View Source
var GroupHierarchyRels = struct {
	ParentGroup string
	MemberGroup string
}{
	ParentGroup: "ParentGroup",
	MemberGroup: "MemberGroup",
}

GroupHierarchyRels is where relationship names are stored.

View Source
var GroupHierarchyTableColumns = struct {
	ID            string
	ParentGroupID string
	MemberGroupID string
	CreatedAt     string
	UpdatedAt     string
	ExpiresAt     string
}{
	ID:            "group_hierarchies.id",
	ParentGroupID: "group_hierarchies.parent_group_id",
	MemberGroupID: "group_hierarchies.member_group_id",
	CreatedAt:     "group_hierarchies.created_at",
	UpdatedAt:     "group_hierarchies.updated_at",
	ExpiresAt:     "group_hierarchies.expires_at",
}
View Source
var GroupHierarchyWhere = struct {
	ID            whereHelperstring
	ParentGroupID whereHelperstring
	MemberGroupID whereHelperstring
	CreatedAt     whereHelpertime_Time
	UpdatedAt     whereHelpertime_Time
	ExpiresAt     whereHelpernull_Time
}{
	ID:            whereHelperstring{/* contains filtered or unexported fields */},
	ParentGroupID: whereHelperstring{/* contains filtered or unexported fields */},
	MemberGroupID: whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt:     whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:     whereHelpertime_Time{/* contains filtered or unexported fields */},
	ExpiresAt:     whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var GroupMembershipColumns = struct {
	ID        string
	GroupID   string
	UserID    string
	IsAdmin   string
	CreatedAt string
	UpdatedAt string
	ExpiresAt string
}{
	ID:        "id",
	GroupID:   "group_id",
	UserID:    "user_id",
	IsAdmin:   "is_admin",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
	ExpiresAt: "expires_at",
}
View Source
var GroupMembershipRels = struct {
	User  string
	Group string
}{
	User:  "User",
	Group: "Group",
}

GroupMembershipRels is where relationship names are stored.

View Source
var GroupMembershipRequestColumns = struct {
	ID        string
	GroupID   string
	UserID    string
	CreatedAt string
	UpdatedAt string
	IsAdmin   string
	Note      string
	ExpiresAt string
}{
	ID:        "id",
	GroupID:   "group_id",
	UserID:    "user_id",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
	IsAdmin:   "is_admin",
	Note:      "note",
	ExpiresAt: "expires_at",
}
View Source
var GroupMembershipRequestRels = struct {
	User  string
	Group string
}{
	User:  "User",
	Group: "Group",
}

GroupMembershipRequestRels is where relationship names are stored.

View Source
var GroupMembershipRequestTableColumns = struct {
	ID        string
	GroupID   string
	UserID    string
	CreatedAt string
	UpdatedAt string
	IsAdmin   string
	Note      string
	ExpiresAt string
}{
	ID:        "group_membership_requests.id",
	GroupID:   "group_membership_requests.group_id",
	UserID:    "group_membership_requests.user_id",
	CreatedAt: "group_membership_requests.created_at",
	UpdatedAt: "group_membership_requests.updated_at",
	IsAdmin:   "group_membership_requests.is_admin",
	Note:      "group_membership_requests.note",
	ExpiresAt: "group_membership_requests.expires_at",
}
View Source
var GroupMembershipRequestWhere = struct {
	ID        whereHelperstring
	GroupID   whereHelperstring
	UserID    whereHelperstring
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
	IsAdmin   whereHelperbool
	Note      whereHelperstring
	ExpiresAt whereHelpernull_Time
}{
	ID:        whereHelperstring{/* contains filtered or unexported fields */},
	GroupID:   whereHelperstring{/* contains filtered or unexported fields */},
	UserID:    whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	IsAdmin:   whereHelperbool{/* contains filtered or unexported fields */},
	Note:      whereHelperstring{/* contains filtered or unexported fields */},
	ExpiresAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var GroupMembershipTableColumns = struct {
	ID        string
	GroupID   string
	UserID    string
	IsAdmin   string
	CreatedAt string
	UpdatedAt string
	ExpiresAt string
}{
	ID:        "group_memberships.id",
	GroupID:   "group_memberships.group_id",
	UserID:    "group_memberships.user_id",
	IsAdmin:   "group_memberships.is_admin",
	CreatedAt: "group_memberships.created_at",
	UpdatedAt: "group_memberships.updated_at",
	ExpiresAt: "group_memberships.expires_at",
}
View Source
var GroupMembershipWhere = struct {
	ID        whereHelperstring
	GroupID   whereHelperstring
	UserID    whereHelperstring
	IsAdmin   whereHelperbool
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
	ExpiresAt whereHelpernull_Time
}{
	ID:        whereHelperstring{/* contains filtered or unexported fields */},
	GroupID:   whereHelperstring{/* contains filtered or unexported fields */},
	UserID:    whereHelperstring{/* contains filtered or unexported fields */},
	IsAdmin:   whereHelperbool{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	ExpiresAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var GroupOrganizationColumns = struct {
	ID             string
	GroupID        string
	OrganizationID string
	CreatedAt      string
	UpdatedAt      string
}{
	ID:             "id",
	GroupID:        "group_id",
	OrganizationID: "organization_id",
	CreatedAt:      "created_at",
	UpdatedAt:      "updated_at",
}
View Source
var GroupOrganizationRels = struct {
	Organization string
	Group        string
}{
	Organization: "Organization",
	Group:        "Group",
}

GroupOrganizationRels is where relationship names are stored.

View Source
var GroupOrganizationTableColumns = struct {
	ID             string
	GroupID        string
	OrganizationID string
	CreatedAt      string
	UpdatedAt      string
}{
	ID:             "group_organizations.id",
	GroupID:        "group_organizations.group_id",
	OrganizationID: "group_organizations.organization_id",
	CreatedAt:      "group_organizations.created_at",
	UpdatedAt:      "group_organizations.updated_at",
}
View Source
var GroupOrganizationWhere = struct {
	ID             whereHelperstring
	GroupID        whereHelperstring
	OrganizationID whereHelperstring
	CreatedAt      whereHelpertime_Time
	UpdatedAt      whereHelpertime_Time
}{
	ID:             whereHelperstring{/* contains filtered or unexported fields */},
	GroupID:        whereHelperstring{/* contains filtered or unexported fields */},
	OrganizationID: whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var GroupRels = struct {
	ApproverGroupApplications             string
	SubjectGroupAuditEvents               string
	GroupApplicationRequests              string
	ApproverGroupGroupApplicationRequests string
	GroupApplications                     string
	ParentGroupGroupHierarchies           string
	MemberGroupGroupHierarchies           string
	GroupMembershipRequests               string
	GroupMemberships                      string
	GroupOrganizations                    string
}{
	ApproverGroupApplications:             "ApproverGroupApplications",
	SubjectGroupAuditEvents:               "SubjectGroupAuditEvents",
	GroupApplicationRequests:              "GroupApplicationRequests",
	ApproverGroupGroupApplicationRequests: "ApproverGroupGroupApplicationRequests",
	GroupApplications:                     "GroupApplications",
	ParentGroupGroupHierarchies:           "ParentGroupGroupHierarchies",
	MemberGroupGroupHierarchies:           "MemberGroupGroupHierarchies",
	GroupMembershipRequests:               "GroupMembershipRequests",
	GroupMemberships:                      "GroupMemberships",
	GroupOrganizations:                    "GroupOrganizations",
}

GroupRels is where relationship names are stored.

View Source
var GroupTableColumns = struct {
	ID          string
	Name        string
	Slug        string
	Description string
	CreatedAt   string
	UpdatedAt   string
	DeletedAt   string
	Note        string
}{
	ID:          "groups.id",
	Name:        "groups.name",
	Slug:        "groups.slug",
	Description: "groups.description",
	CreatedAt:   "groups.created_at",
	UpdatedAt:   "groups.updated_at",
	DeletedAt:   "groups.deleted_at",
	Note:        "groups.note",
}
View Source
var GroupWhere = struct {
	ID          whereHelperstring
	Name        whereHelperstring
	Slug        whereHelperstring
	Description whereHelperstring
	CreatedAt   whereHelpertime_Time
	UpdatedAt   whereHelpertime_Time
	DeletedAt   whereHelpernull_Time
	Note        whereHelperstring
}{
	ID:          whereHelperstring{/* contains filtered or unexported fields */},
	Name:        whereHelperstring{/* contains filtered or unexported fields */},
	Slug:        whereHelperstring{/* contains filtered or unexported fields */},
	Description: whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt:   whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:   whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt:   whereHelpernull_Time{/* contains filtered or unexported fields */},
	Note:        whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var OrganizationColumns = struct {
	ID        string
	Name      string
	CreatedAt string
	UpdatedAt string
	Slug      string
	DeletedAt string
}{
	ID:        "id",
	Name:      "name",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
	Slug:      "slug",
	DeletedAt: "deleted_at",
}
View Source
var OrganizationRels = struct {
	SubjectOrganizationAuditEvents string
	GroupOrganizations             string
}{
	SubjectOrganizationAuditEvents: "SubjectOrganizationAuditEvents",
	GroupOrganizations:             "GroupOrganizations",
}

OrganizationRels is where relationship names are stored.

View Source
var OrganizationTableColumns = struct {
	ID        string
	Name      string
	CreatedAt string
	UpdatedAt string
	Slug      string
	DeletedAt string
}{
	ID:        "organizations.id",
	Name:      "organizations.name",
	CreatedAt: "organizations.created_at",
	UpdatedAt: "organizations.updated_at",
	Slug:      "organizations.slug",
	DeletedAt: "organizations.deleted_at",
}
View Source
var OrganizationWhere = struct {
	ID        whereHelperstring
	Name      whereHelperstring
	CreatedAt whereHelpertime_Time
	UpdatedAt whereHelpertime_Time
	Slug      whereHelperstring
	DeletedAt whereHelpernull_Time
}{
	ID:        whereHelperstring{/* contains filtered or unexported fields */},
	Name:      whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
	Slug:      whereHelperstring{/* contains filtered or unexported fields */},
	DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var TableNames = struct {
	ApplicationTypes         string
	Applications             string
	AuditEvents              string
	GroupApplicationRequests string
	GroupApplications        string
	GroupHierarchies         string
	GroupMembershipRequests  string
	GroupMemberships         string
	GroupOrganizations       string
	Groups                   string
	Organizations            string
	Users                    string
}{
	ApplicationTypes:         "application_types",
	Applications:             "applications",
	AuditEvents:              "audit_events",
	GroupApplicationRequests: "group_application_requests",
	GroupApplications:        "group_applications",
	GroupHierarchies:         "group_hierarchies",
	GroupMembershipRequests:  "group_membership_requests",
	GroupMemberships:         "group_memberships",
	GroupOrganizations:       "group_organizations",
	Groups:                   "groups",
	Organizations:            "organizations",
	Users:                    "users",
}
View Source
var UserColumns = struct {
	ID             string
	ExternalID     string
	Name           string
	Email          string
	LoginCount     string
	AvatarURL      string
	LastLoginAt    string
	CreatedAt      string
	UpdatedAt      string
	GithubID       string
	GithubUsername string
	DeletedAt      string
	Status         string
}{
	ID:             "id",
	ExternalID:     "external_id",
	Name:           "name",
	Email:          "email",
	LoginCount:     "login_count",
	AvatarURL:      "avatar_url",
	LastLoginAt:    "last_login_at",
	CreatedAt:      "created_at",
	UpdatedAt:      "updated_at",
	GithubID:       "github_id",
	GithubUsername: "github_username",
	DeletedAt:      "deleted_at",
	Status:         "status",
}
View Source
var UserRels = struct {
	SubjectUserAuditEvents                string
	ActorAuditEvents                      string
	RequesterUserGroupApplicationRequests string
	GroupMembershipRequests               string
	GroupMemberships                      string
}{
	SubjectUserAuditEvents:                "SubjectUserAuditEvents",
	ActorAuditEvents:                      "ActorAuditEvents",
	RequesterUserGroupApplicationRequests: "RequesterUserGroupApplicationRequests",
	GroupMembershipRequests:               "GroupMembershipRequests",
	GroupMemberships:                      "GroupMemberships",
}

UserRels is where relationship names are stored.

View Source
var UserTableColumns = struct {
	ID             string
	ExternalID     string
	Name           string
	Email          string
	LoginCount     string
	AvatarURL      string
	LastLoginAt    string
	CreatedAt      string
	UpdatedAt      string
	GithubID       string
	GithubUsername string
	DeletedAt      string
	Status         string
}{
	ID:             "users.id",
	ExternalID:     "users.external_id",
	Name:           "users.name",
	Email:          "users.email",
	LoginCount:     "users.login_count",
	AvatarURL:      "users.avatar_url",
	LastLoginAt:    "users.last_login_at",
	CreatedAt:      "users.created_at",
	UpdatedAt:      "users.updated_at",
	GithubID:       "users.github_id",
	GithubUsername: "users.github_username",
	DeletedAt:      "users.deleted_at",
	Status:         "users.status",
}
View Source
var UserWhere = struct {
	ID             whereHelperstring
	ExternalID     whereHelpernull_String
	Name           whereHelperstring
	Email          whereHelperstring
	LoginCount     whereHelperint64
	AvatarURL      whereHelpernull_String
	LastLoginAt    whereHelpernull_Time
	CreatedAt      whereHelpertime_Time
	UpdatedAt      whereHelpertime_Time
	GithubID       whereHelpernull_Int64
	GithubUsername whereHelpernull_String
	DeletedAt      whereHelpernull_Time
	Status         whereHelpernull_String
}{
	ID:             whereHelperstring{/* contains filtered or unexported fields */},
	ExternalID:     whereHelpernull_String{/* contains filtered or unexported fields */},
	Name:           whereHelperstring{/* contains filtered or unexported fields */},
	Email:          whereHelperstring{/* contains filtered or unexported fields */},
	LoginCount:     whereHelperint64{/* contains filtered or unexported fields */},
	AvatarURL:      whereHelpernull_String{/* contains filtered or unexported fields */},
	LastLoginAt:    whereHelpernull_Time{/* contains filtered or unexported fields */},
	CreatedAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
	GithubID:       whereHelpernull_Int64{/* contains filtered or unexported fields */},
	GithubUsername: whereHelpernull_String{/* contains filtered or unexported fields */},
	DeletedAt:      whereHelpernull_Time{/* contains filtered or unexported fields */},
	Status:         whereHelpernull_String{/* contains filtered or unexported fields */},
}
View Source
var ViewNames = struct {
}{}

Functions

func AddApplicationHook

func AddApplicationHook(hookPoint boil.HookPoint, applicationHook ApplicationHook)

AddApplicationHook registers your hook function for all future operations.

func AddApplicationTypeHook

func AddApplicationTypeHook(hookPoint boil.HookPoint, applicationTypeHook ApplicationTypeHook)

AddApplicationTypeHook registers your hook function for all future operations.

func AddAuditEventHook

func AddAuditEventHook(hookPoint boil.HookPoint, auditEventHook AuditEventHook)

AddAuditEventHook registers your hook function for all future operations.

func AddGroupApplicationHook

func AddGroupApplicationHook(hookPoint boil.HookPoint, groupApplicationHook GroupApplicationHook)

AddGroupApplicationHook registers your hook function for all future operations.

func AddGroupApplicationRequestHook

func AddGroupApplicationRequestHook(hookPoint boil.HookPoint, groupApplicationRequestHook GroupApplicationRequestHook)

AddGroupApplicationRequestHook registers your hook function for all future operations.

func AddGroupHierarchyHook added in v0.1.1

func AddGroupHierarchyHook(hookPoint boil.HookPoint, groupHierarchyHook GroupHierarchyHook)

AddGroupHierarchyHook registers your hook function for all future operations.

func AddGroupHook

func AddGroupHook(hookPoint boil.HookPoint, groupHook GroupHook)

AddGroupHook registers your hook function for all future operations.

func AddGroupMembershipHook

func AddGroupMembershipHook(hookPoint boil.HookPoint, groupMembershipHook GroupMembershipHook)

AddGroupMembershipHook registers your hook function for all future operations.

func AddGroupMembershipRequestHook

func AddGroupMembershipRequestHook(hookPoint boil.HookPoint, groupMembershipRequestHook GroupMembershipRequestHook)

AddGroupMembershipRequestHook registers your hook function for all future operations.

func AddGroupOrganizationHook

func AddGroupOrganizationHook(hookPoint boil.HookPoint, groupOrganizationHook GroupOrganizationHook)

AddGroupOrganizationHook registers your hook function for all future operations.

func AddOrganizationHook

func AddOrganizationHook(hookPoint boil.HookPoint, organizationHook OrganizationHook)

AddOrganizationHook registers your hook function for all future operations.

func AddUserHook

func AddUserHook(hookPoint boil.HookPoint, userHook UserHook)

AddUserHook registers your hook function for all future operations.

func ApplicationExists

func ApplicationExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

ApplicationExists checks if the Application row exists.

func ApplicationTypeExists

func ApplicationTypeExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

ApplicationTypeExists checks if the ApplicationType row exists.

func ApplicationTypes

func ApplicationTypes(mods ...qm.QueryMod) applicationTypeQuery

ApplicationTypes retrieves all the records using an executor.

func Applications

func Applications(mods ...qm.QueryMod) applicationQuery

Applications retrieves all the records using an executor.

func AuditEventExists

func AuditEventExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

AuditEventExists checks if the AuditEvent row exists.

func AuditEvents

func AuditEvents(mods ...qm.QueryMod) auditEventQuery

AuditEvents retrieves all the records using an executor.

func GroupApplicationExists

func GroupApplicationExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

GroupApplicationExists checks if the GroupApplication row exists.

func GroupApplicationRequestExists

func GroupApplicationRequestExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

GroupApplicationRequestExists checks if the GroupApplicationRequest row exists.

func GroupApplicationRequests

func GroupApplicationRequests(mods ...qm.QueryMod) groupApplicationRequestQuery

GroupApplicationRequests retrieves all the records using an executor.

func GroupApplications

func GroupApplications(mods ...qm.QueryMod) groupApplicationQuery

GroupApplications retrieves all the records using an executor.

func GroupExists

func GroupExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

GroupExists checks if the Group row exists.

func GroupHierarchies added in v0.1.1

func GroupHierarchies(mods ...qm.QueryMod) groupHierarchyQuery

GroupHierarchies retrieves all the records using an executor.

func GroupHierarchyExists added in v0.1.1

func GroupHierarchyExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

GroupHierarchyExists checks if the GroupHierarchy row exists.

func GroupMembershipExists

func GroupMembershipExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

GroupMembershipExists checks if the GroupMembership row exists.

func GroupMembershipRequestExists

func GroupMembershipRequestExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

GroupMembershipRequestExists checks if the GroupMembershipRequest row exists.

func GroupMembershipRequests

func GroupMembershipRequests(mods ...qm.QueryMod) groupMembershipRequestQuery

GroupMembershipRequests retrieves all the records using an executor.

func GroupMemberships

func GroupMemberships(mods ...qm.QueryMod) groupMembershipQuery

GroupMemberships retrieves all the records using an executor.

func GroupOrganizationExists

func GroupOrganizationExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

GroupOrganizationExists checks if the GroupOrganization row exists.

func GroupOrganizations

func GroupOrganizations(mods ...qm.QueryMod) groupOrganizationQuery

GroupOrganizations retrieves all the records using an executor.

func Groups

func Groups(mods ...qm.QueryMod) groupQuery

Groups retrieves all the records using an executor.

func NewQuery

func NewQuery(mods ...qm.QueryMod) *queries.Query

NewQuery initializes a new Query using the passed in QueryMods

func OrganizationExists

func OrganizationExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

OrganizationExists checks if the Organization row exists.

func Organizations

func Organizations(mods ...qm.QueryMod) organizationQuery

Organizations retrieves all the records using an executor.

func UserExists

func UserExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

UserExists checks if the User row exists.

func Users

func Users(mods ...qm.QueryMod) userQuery

Users retrieves all the records using an executor.

Types

type Application

type Application struct {
	ID              string      `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name            string      `boil:"name" json:"name" toml:"name" yaml:"name"`
	Slug            string      `boil:"slug" json:"slug" toml:"slug" yaml:"slug"`
	Kind            string      `boil:"kind" json:"kind" toml:"kind" yaml:"kind"`
	CreatedAt       time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt       time.Time   `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	DeletedAt       null.Time   `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`
	ApproverGroupID null.String `boil:"approver_group_id" json:"approver_group_id,omitempty" toml:"approver_group_id" yaml:"approver_group_id,omitempty"`
	TypeID          null.String `boil:"type_id" json:"type_id,omitempty" toml:"type_id" yaml:"type_id,omitempty"`

	R *applicationR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L applicationL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Application is an object representing the database table.

func FindApplication

func FindApplication(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Application, error)

FindApplication retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Application) AddGroupApplicationRequests

func (o *Application) AddGroupApplicationRequests(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*GroupApplicationRequest) error

AddGroupApplicationRequests adds the given related objects to the existing relationships of the application, optionally inserting them as new records. Appends related to o.R.GroupApplicationRequests. Sets related.R.Application appropriately.

func (*Application) AddGroupApplications

func (o *Application) AddGroupApplications(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*GroupApplication) error

AddGroupApplications adds the given related objects to the existing relationships of the application, optionally inserting them as new records. Appends related to o.R.GroupApplications. Sets related.R.Application appropriately.

func (*Application) AddSubjectApplicationAuditEvents

func (o *Application) AddSubjectApplicationAuditEvents(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*AuditEvent) error

AddSubjectApplicationAuditEvents adds the given related objects to the existing relationships of the application, optionally inserting them as new records. Appends related to o.R.SubjectApplicationAuditEvents. Sets related.R.SubjectApplication appropriately.

func (*Application) ApproverGroup

func (o *Application) ApproverGroup(mods ...qm.QueryMod) groupQuery

ApproverGroup pointed to by the foreign key.

func (*Application) Delete

func (o *Application) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

Delete deletes a single Application record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Application) Exists

func (o *Application) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Application row exists.

func (*Application) GroupApplicationRequests

func (o *Application) GroupApplicationRequests(mods ...qm.QueryMod) groupApplicationRequestQuery

GroupApplicationRequests retrieves all the group_application_request's GroupApplicationRequests with an executor.

func (*Application) GroupApplications

func (o *Application) GroupApplications(mods ...qm.QueryMod) groupApplicationQuery

GroupApplications retrieves all the group_application's GroupApplications with an executor.

func (*Application) Insert

func (o *Application) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Application) Reload

func (o *Application) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Application) RemoveApproverGroup

func (o *Application) RemoveApproverGroup(ctx context.Context, exec boil.ContextExecutor, related *Group) error

RemoveApproverGroup relationship. Sets o.R.ApproverGroup to nil. Removes o from all passed in related items' relationships struct.

func (*Application) RemoveSubjectApplicationAuditEvents

func (o *Application) RemoveSubjectApplicationAuditEvents(ctx context.Context, exec boil.ContextExecutor, related ...*AuditEvent) error

RemoveSubjectApplicationAuditEvents relationships from objects passed in. Removes related items from R.SubjectApplicationAuditEvents (uses pointer comparison, removal does not keep order) Sets related.R.SubjectApplication.

func (*Application) RemoveType

func (o *Application) RemoveType(ctx context.Context, exec boil.ContextExecutor, related *ApplicationType) error

RemoveType relationship. Sets o.R.Type to nil. Removes o from all passed in related items' relationships struct.

func (*Application) SetApproverGroup

func (o *Application) SetApproverGroup(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Group) error

SetApproverGroup of the application to the related item. Sets o.R.ApproverGroup to related. Adds o to related.R.ApproverGroupApplications.

func (*Application) SetSubjectApplicationAuditEvents

func (o *Application) SetSubjectApplicationAuditEvents(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*AuditEvent) error

SetSubjectApplicationAuditEvents removes all previously related items of the application replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.SubjectApplication's SubjectApplicationAuditEvents accordingly. Replaces o.R.SubjectApplicationAuditEvents with related. Sets related.R.SubjectApplication's SubjectApplicationAuditEvents accordingly.

func (*Application) SetType

func (o *Application) SetType(ctx context.Context, exec boil.ContextExecutor, insert bool, related *ApplicationType) error

SetType of the application to the related item. Sets o.R.Type to related. Adds o to related.R.TypeApplications.

func (*Application) SubjectApplicationAuditEvents

func (o *Application) SubjectApplicationAuditEvents(mods ...qm.QueryMod) auditEventQuery

SubjectApplicationAuditEvents retrieves all the audit_event's AuditEvents with an executor via subject_application_id column.

func (*Application) Type

func (o *Application) Type(mods ...qm.QueryMod) applicationTypeQuery

Type pointed to by the foreign key.

func (*Application) Update

func (o *Application) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Application. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Application) Upsert

func (o *Application) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type ApplicationHook

type ApplicationHook func(context.Context, boil.ContextExecutor, *Application) error

ApplicationHook is the signature for custom Application hook methods

type ApplicationSlice

type ApplicationSlice []*Application

ApplicationSlice is an alias for a slice of pointers to Application. This should almost always be used instead of []Application.

func (ApplicationSlice) DeleteAll

func (o ApplicationSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*ApplicationSlice) ReloadAll

func (o *ApplicationSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (ApplicationSlice) UpdateAll

func (o ApplicationSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type ApplicationType

type ApplicationType struct {
	ID          string      `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name        string      `boil:"name" json:"name" toml:"name" yaml:"name"`
	Slug        string      `boil:"slug" json:"slug" toml:"slug" yaml:"slug"`
	Description string      `boil:"description" json:"description" toml:"description" yaml:"description"`
	LogoURL     null.String `boil:"logo_url" json:"logo_url,omitempty" toml:"logo_url" yaml:"logo_url,omitempty"`
	CreatedAt   time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt   time.Time   `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	DeletedAt   null.Time   `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`

	R *applicationTypeR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L applicationTypeL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

ApplicationType is an object representing the database table.

func FindApplicationType

func FindApplicationType(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*ApplicationType, error)

FindApplicationType retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*ApplicationType) AddTypeApplications

func (o *ApplicationType) AddTypeApplications(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Application) error

AddTypeApplications adds the given related objects to the existing relationships of the application_type, optionally inserting them as new records. Appends related to o.R.TypeApplications. Sets related.R.Type appropriately.

func (*ApplicationType) Delete

func (o *ApplicationType) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

Delete deletes a single ApplicationType record with an executor. Delete will match against the primary key column to find the record to delete.

func (*ApplicationType) Exists

func (o *ApplicationType) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the ApplicationType row exists.

func (*ApplicationType) Insert

func (o *ApplicationType) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*ApplicationType) Reload

Reload refetches the object from the database using the primary keys with an executor.

func (*ApplicationType) RemoveTypeApplications

func (o *ApplicationType) RemoveTypeApplications(ctx context.Context, exec boil.ContextExecutor, related ...*Application) error

RemoveTypeApplications relationships from objects passed in. Removes related items from R.TypeApplications (uses pointer comparison, removal does not keep order) Sets related.R.Type.

func (*ApplicationType) SetTypeApplications

func (o *ApplicationType) SetTypeApplications(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Application) error

SetTypeApplications removes all previously related items of the application_type replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Type's TypeApplications accordingly. Replaces o.R.TypeApplications with related. Sets related.R.Type's TypeApplications accordingly.

func (*ApplicationType) TypeApplications

func (o *ApplicationType) TypeApplications(mods ...qm.QueryMod) applicationQuery

TypeApplications retrieves all the application's Applications with an executor via type_id column.

func (*ApplicationType) Update

func (o *ApplicationType) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the ApplicationType. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*ApplicationType) Upsert

func (o *ApplicationType) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type ApplicationTypeHook

type ApplicationTypeHook func(context.Context, boil.ContextExecutor, *ApplicationType) error

ApplicationTypeHook is the signature for custom ApplicationType hook methods

type ApplicationTypeSlice

type ApplicationTypeSlice []*ApplicationType

ApplicationTypeSlice is an alias for a slice of pointers to ApplicationType. This should almost always be used instead of []ApplicationType.

func (ApplicationTypeSlice) DeleteAll

func (o ApplicationTypeSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*ApplicationTypeSlice) ReloadAll

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (ApplicationTypeSlice) UpdateAll

func (o ApplicationTypeSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type AuditEvent

type AuditEvent struct {
	ID                    string            `boil:"id" json:"id" toml:"id" yaml:"id"`
	ActorID               null.String       `boil:"actor_id" json:"actor_id,omitempty" toml:"actor_id" yaml:"actor_id,omitempty"`
	Action                string            `boil:"action" json:"action" toml:"action" yaml:"action"`
	Message               string            `boil:"message" json:"message" toml:"message" yaml:"message"`
	Changeset             types.StringArray `boil:"changeset" json:"changeset" toml:"changeset" yaml:"changeset"`
	SubjectGroupID        null.String       `boil:"subject_group_id" json:"subject_group_id,omitempty" toml:"subject_group_id" yaml:"subject_group_id,omitempty"`
	SubjectUserID         null.String       `boil:"subject_user_id" json:"subject_user_id,omitempty" toml:"subject_user_id" yaml:"subject_user_id,omitempty"`
	CreatedAt             time.Time         `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	SubjectOrganizationID null.String       `` /* 143-byte string literal not displayed */
	SubjectApplicationID  null.String       `` /* 139-byte string literal not displayed */
	ParentID              null.String       `boil:"parent_id" json:"parent_id,omitempty" toml:"parent_id" yaml:"parent_id,omitempty"`

	R *auditEventR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L auditEventL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

AuditEvent is an object representing the database table.

func FindAuditEvent

func FindAuditEvent(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*AuditEvent, error)

FindAuditEvent retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*AuditEvent) Actor

func (o *AuditEvent) Actor(mods ...qm.QueryMod) userQuery

Actor pointed to by the foreign key.

func (*AuditEvent) Delete

func (o *AuditEvent) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single AuditEvent record with an executor. Delete will match against the primary key column to find the record to delete.

func (*AuditEvent) Exists

func (o *AuditEvent) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the AuditEvent row exists.

func (*AuditEvent) Insert

func (o *AuditEvent) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*AuditEvent) Reload

func (o *AuditEvent) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*AuditEvent) RemoveActor

func (o *AuditEvent) RemoveActor(ctx context.Context, exec boil.ContextExecutor, related *User) error

RemoveActor relationship. Sets o.R.Actor to nil. Removes o from all passed in related items' relationships struct.

func (*AuditEvent) RemoveSubjectApplication

func (o *AuditEvent) RemoveSubjectApplication(ctx context.Context, exec boil.ContextExecutor, related *Application) error

RemoveSubjectApplication relationship. Sets o.R.SubjectApplication to nil. Removes o from all passed in related items' relationships struct.

func (*AuditEvent) RemoveSubjectGroup

func (o *AuditEvent) RemoveSubjectGroup(ctx context.Context, exec boil.ContextExecutor, related *Group) error

RemoveSubjectGroup relationship. Sets o.R.SubjectGroup to nil. Removes o from all passed in related items' relationships struct.

func (*AuditEvent) RemoveSubjectOrganization

func (o *AuditEvent) RemoveSubjectOrganization(ctx context.Context, exec boil.ContextExecutor, related *Organization) error

RemoveSubjectOrganization relationship. Sets o.R.SubjectOrganization to nil. Removes o from all passed in related items' relationships struct.

func (*AuditEvent) RemoveSubjectUser

func (o *AuditEvent) RemoveSubjectUser(ctx context.Context, exec boil.ContextExecutor, related *User) error

RemoveSubjectUser relationship. Sets o.R.SubjectUser to nil. Removes o from all passed in related items' relationships struct.

func (*AuditEvent) SetActor

func (o *AuditEvent) SetActor(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error

SetActor of the auditEvent to the related item. Sets o.R.Actor to related. Adds o to related.R.ActorAuditEvents.

func (*AuditEvent) SetSubjectApplication

func (o *AuditEvent) SetSubjectApplication(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Application) error

SetSubjectApplication of the auditEvent to the related item. Sets o.R.SubjectApplication to related. Adds o to related.R.SubjectApplicationAuditEvents.

func (*AuditEvent) SetSubjectGroup

func (o *AuditEvent) SetSubjectGroup(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Group) error

SetSubjectGroup of the auditEvent to the related item. Sets o.R.SubjectGroup to related. Adds o to related.R.SubjectGroupAuditEvents.

func (*AuditEvent) SetSubjectOrganization

func (o *AuditEvent) SetSubjectOrganization(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Organization) error

SetSubjectOrganization of the auditEvent to the related item. Sets o.R.SubjectOrganization to related. Adds o to related.R.SubjectOrganizationAuditEvents.

func (*AuditEvent) SetSubjectUser

func (o *AuditEvent) SetSubjectUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error

SetSubjectUser of the auditEvent to the related item. Sets o.R.SubjectUser to related. Adds o to related.R.SubjectUserAuditEvents.

func (*AuditEvent) SubjectApplication

func (o *AuditEvent) SubjectApplication(mods ...qm.QueryMod) applicationQuery

SubjectApplication pointed to by the foreign key.

func (*AuditEvent) SubjectGroup

func (o *AuditEvent) SubjectGroup(mods ...qm.QueryMod) groupQuery

SubjectGroup pointed to by the foreign key.

func (*AuditEvent) SubjectOrganization

func (o *AuditEvent) SubjectOrganization(mods ...qm.QueryMod) organizationQuery

SubjectOrganization pointed to by the foreign key.

func (*AuditEvent) SubjectUser

func (o *AuditEvent) SubjectUser(mods ...qm.QueryMod) userQuery

SubjectUser pointed to by the foreign key.

func (*AuditEvent) Update

func (o *AuditEvent) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the AuditEvent. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*AuditEvent) Upsert

func (o *AuditEvent) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type AuditEventHook

type AuditEventHook func(context.Context, boil.ContextExecutor, *AuditEvent) error

AuditEventHook is the signature for custom AuditEvent hook methods

type AuditEventSlice

type AuditEventSlice []*AuditEvent

AuditEventSlice is an alias for a slice of pointers to AuditEvent. This should almost always be used instead of []AuditEvent.

func (AuditEventSlice) DeleteAll

func (o AuditEventSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*AuditEventSlice) ReloadAll

func (o *AuditEventSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (AuditEventSlice) UpdateAll

func (o AuditEventSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type Group

type Group struct {
	ID          string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name        string    `boil:"name" json:"name" toml:"name" yaml:"name"`
	Slug        string    `boil:"slug" json:"slug" toml:"slug" yaml:"slug"`
	Description string    `boil:"description" json:"description" toml:"description" yaml:"description"`
	CreatedAt   time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt   time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	DeletedAt   null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`
	Note        string    `boil:"note" json:"note" toml:"note" yaml:"note"`

	R *groupR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L groupL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Group is an object representing the database table.

func FindGroup

func FindGroup(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Group, error)

FindGroup retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Group) AddApproverGroupApplications

func (o *Group) AddApproverGroupApplications(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Application) error

AddApproverGroupApplications adds the given related objects to the existing relationships of the group, optionally inserting them as new records. Appends related to o.R.ApproverGroupApplications. Sets related.R.ApproverGroup appropriately.

func (*Group) AddApproverGroupGroupApplicationRequests

func (o *Group) AddApproverGroupGroupApplicationRequests(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*GroupApplicationRequest) error

AddApproverGroupGroupApplicationRequests adds the given related objects to the existing relationships of the group, optionally inserting them as new records. Appends related to o.R.ApproverGroupGroupApplicationRequests. Sets related.R.ApproverGroup appropriately.

func (*Group) AddGroupApplicationRequests

func (o *Group) AddGroupApplicationRequests(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*GroupApplicationRequest) error

AddGroupApplicationRequests adds the given related objects to the existing relationships of the group, optionally inserting them as new records. Appends related to o.R.GroupApplicationRequests. Sets related.R.Group appropriately.

func (*Group) AddGroupApplications

func (o *Group) AddGroupApplications(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*GroupApplication) error

AddGroupApplications adds the given related objects to the existing relationships of the group, optionally inserting them as new records. Appends related to o.R.GroupApplications. Sets related.R.Group appropriately.

func (*Group) AddGroupMembershipRequests

func (o *Group) AddGroupMembershipRequests(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*GroupMembershipRequest) error

AddGroupMembershipRequests adds the given related objects to the existing relationships of the group, optionally inserting them as new records. Appends related to o.R.GroupMembershipRequests. Sets related.R.Group appropriately.

func (*Group) AddGroupMemberships

func (o *Group) AddGroupMemberships(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*GroupMembership) error

AddGroupMemberships adds the given related objects to the existing relationships of the group, optionally inserting them as new records. Appends related to o.R.GroupMemberships. Sets related.R.Group appropriately.

func (*Group) AddGroupOrganizations

func (o *Group) AddGroupOrganizations(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*GroupOrganization) error

AddGroupOrganizations adds the given related objects to the existing relationships of the group, optionally inserting them as new records. Appends related to o.R.GroupOrganizations. Sets related.R.Group appropriately.

func (*Group) AddMemberGroupGroupHierarchies added in v0.1.1

func (o *Group) AddMemberGroupGroupHierarchies(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*GroupHierarchy) error

AddMemberGroupGroupHierarchies adds the given related objects to the existing relationships of the group, optionally inserting them as new records. Appends related to o.R.MemberGroupGroupHierarchies. Sets related.R.MemberGroup appropriately.

func (*Group) AddParentGroupGroupHierarchies added in v0.1.1

func (o *Group) AddParentGroupGroupHierarchies(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*GroupHierarchy) error

AddParentGroupGroupHierarchies adds the given related objects to the existing relationships of the group, optionally inserting them as new records. Appends related to o.R.ParentGroupGroupHierarchies. Sets related.R.ParentGroup appropriately.

func (*Group) AddSubjectGroupAuditEvents

func (o *Group) AddSubjectGroupAuditEvents(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*AuditEvent) error

AddSubjectGroupAuditEvents adds the given related objects to the existing relationships of the group, optionally inserting them as new records. Appends related to o.R.SubjectGroupAuditEvents. Sets related.R.SubjectGroup appropriately.

func (*Group) ApproverGroupApplications

func (o *Group) ApproverGroupApplications(mods ...qm.QueryMod) applicationQuery

ApproverGroupApplications retrieves all the application's Applications with an executor via approver_group_id column.

func (*Group) ApproverGroupGroupApplicationRequests

func (o *Group) ApproverGroupGroupApplicationRequests(mods ...qm.QueryMod) groupApplicationRequestQuery

ApproverGroupGroupApplicationRequests retrieves all the group_application_request's GroupApplicationRequests with an executor via approver_group_id column.

func (*Group) Delete

func (o *Group) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

Delete deletes a single Group record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Group) Exists

func (o *Group) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Group row exists.

func (*Group) GroupApplicationRequests

func (o *Group) GroupApplicationRequests(mods ...qm.QueryMod) groupApplicationRequestQuery

GroupApplicationRequests retrieves all the group_application_request's GroupApplicationRequests with an executor.

func (*Group) GroupApplications

func (o *Group) GroupApplications(mods ...qm.QueryMod) groupApplicationQuery

GroupApplications retrieves all the group_application's GroupApplications with an executor.

func (*Group) GroupMembershipRequests

func (o *Group) GroupMembershipRequests(mods ...qm.QueryMod) groupMembershipRequestQuery

GroupMembershipRequests retrieves all the group_membership_request's GroupMembershipRequests with an executor.

func (*Group) GroupMemberships

func (o *Group) GroupMemberships(mods ...qm.QueryMod) groupMembershipQuery

GroupMemberships retrieves all the group_membership's GroupMemberships with an executor.

func (*Group) GroupOrganizations

func (o *Group) GroupOrganizations(mods ...qm.QueryMod) groupOrganizationQuery

GroupOrganizations retrieves all the group_organization's GroupOrganizations with an executor.

func (*Group) Insert

func (o *Group) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Group) MemberGroupGroupHierarchies added in v0.1.1

func (o *Group) MemberGroupGroupHierarchies(mods ...qm.QueryMod) groupHierarchyQuery

MemberGroupGroupHierarchies retrieves all the group_hierarchy's GroupHierarchies with an executor via member_group_id column.

func (*Group) ParentGroupGroupHierarchies added in v0.1.1

func (o *Group) ParentGroupGroupHierarchies(mods ...qm.QueryMod) groupHierarchyQuery

ParentGroupGroupHierarchies retrieves all the group_hierarchy's GroupHierarchies with an executor via parent_group_id column.

func (*Group) Reload

func (o *Group) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Group) RemoveApproverGroupApplications

func (o *Group) RemoveApproverGroupApplications(ctx context.Context, exec boil.ContextExecutor, related ...*Application) error

RemoveApproverGroupApplications relationships from objects passed in. Removes related items from R.ApproverGroupApplications (uses pointer comparison, removal does not keep order) Sets related.R.ApproverGroup.

func (*Group) RemoveSubjectGroupAuditEvents

func (o *Group) RemoveSubjectGroupAuditEvents(ctx context.Context, exec boil.ContextExecutor, related ...*AuditEvent) error

RemoveSubjectGroupAuditEvents relationships from objects passed in. Removes related items from R.SubjectGroupAuditEvents (uses pointer comparison, removal does not keep order) Sets related.R.SubjectGroup.

func (*Group) SetApproverGroupApplications

func (o *Group) SetApproverGroupApplications(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Application) error

SetApproverGroupApplications removes all previously related items of the group replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.ApproverGroup's ApproverGroupApplications accordingly. Replaces o.R.ApproverGroupApplications with related. Sets related.R.ApproverGroup's ApproverGroupApplications accordingly.

func (*Group) SetSubjectGroupAuditEvents

func (o *Group) SetSubjectGroupAuditEvents(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*AuditEvent) error

SetSubjectGroupAuditEvents removes all previously related items of the group replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.SubjectGroup's SubjectGroupAuditEvents accordingly. Replaces o.R.SubjectGroupAuditEvents with related. Sets related.R.SubjectGroup's SubjectGroupAuditEvents accordingly.

func (*Group) SubjectGroupAuditEvents

func (o *Group) SubjectGroupAuditEvents(mods ...qm.QueryMod) auditEventQuery

SubjectGroupAuditEvents retrieves all the audit_event's AuditEvents with an executor via subject_group_id column.

func (*Group) Update

func (o *Group) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Group. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Group) Upsert

func (o *Group) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type GroupApplication

type GroupApplication struct {
	ID            string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	GroupID       string    `boil:"group_id" json:"group_id" toml:"group_id" yaml:"group_id"`
	ApplicationID string    `boil:"application_id" json:"application_id" toml:"application_id" yaml:"application_id"`
	CreatedAt     time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt     time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	DeletedAt     null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`

	R *groupApplicationR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L groupApplicationL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

GroupApplication is an object representing the database table.

func FindGroupApplication

func FindGroupApplication(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*GroupApplication, error)

FindGroupApplication retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*GroupApplication) Application

func (o *GroupApplication) Application(mods ...qm.QueryMod) applicationQuery

Application pointed to by the foreign key.

func (*GroupApplication) Delete

func (o *GroupApplication) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

Delete deletes a single GroupApplication record with an executor. Delete will match against the primary key column to find the record to delete.

func (*GroupApplication) Exists

func (o *GroupApplication) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the GroupApplication row exists.

func (*GroupApplication) Group

func (o *GroupApplication) Group(mods ...qm.QueryMod) groupQuery

Group pointed to by the foreign key.

func (*GroupApplication) Insert

func (o *GroupApplication) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*GroupApplication) Reload

Reload refetches the object from the database using the primary keys with an executor.

func (*GroupApplication) SetApplication

func (o *GroupApplication) SetApplication(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Application) error

SetApplication of the groupApplication to the related item. Sets o.R.Application to related. Adds o to related.R.GroupApplications.

func (*GroupApplication) SetGroup

func (o *GroupApplication) SetGroup(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Group) error

SetGroup of the groupApplication to the related item. Sets o.R.Group to related. Adds o to related.R.GroupApplications.

func (*GroupApplication) Update

func (o *GroupApplication) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the GroupApplication. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*GroupApplication) Upsert

func (o *GroupApplication) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type GroupApplicationHook

type GroupApplicationHook func(context.Context, boil.ContextExecutor, *GroupApplication) error

GroupApplicationHook is the signature for custom GroupApplication hook methods

type GroupApplicationRequest

type GroupApplicationRequest struct {
	ID              string      `boil:"id" json:"id" toml:"id" yaml:"id"`
	GroupID         string      `boil:"group_id" json:"group_id" toml:"group_id" yaml:"group_id"`
	ApplicationID   string      `boil:"application_id" json:"application_id" toml:"application_id" yaml:"application_id"`
	ApproverGroupID string      `boil:"approver_group_id" json:"approver_group_id" toml:"approver_group_id" yaml:"approver_group_id"`
	RequesterUserID string      `boil:"requester_user_id" json:"requester_user_id" toml:"requester_user_id" yaml:"requester_user_id"`
	Note            null.String `boil:"note" json:"note,omitempty" toml:"note" yaml:"note,omitempty"`
	CreatedAt       time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt       time.Time   `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`

	R *groupApplicationRequestR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L groupApplicationRequestL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

GroupApplicationRequest is an object representing the database table.

func FindGroupApplicationRequest

func FindGroupApplicationRequest(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*GroupApplicationRequest, error)

FindGroupApplicationRequest retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*GroupApplicationRequest) Application

func (o *GroupApplicationRequest) Application(mods ...qm.QueryMod) applicationQuery

Application pointed to by the foreign key.

func (*GroupApplicationRequest) ApproverGroup

func (o *GroupApplicationRequest) ApproverGroup(mods ...qm.QueryMod) groupQuery

ApproverGroup pointed to by the foreign key.

func (*GroupApplicationRequest) Delete

Delete deletes a single GroupApplicationRequest record with an executor. Delete will match against the primary key column to find the record to delete.

func (*GroupApplicationRequest) Exists

Exists checks if the GroupApplicationRequest row exists.

func (*GroupApplicationRequest) Group

func (o *GroupApplicationRequest) Group(mods ...qm.QueryMod) groupQuery

Group pointed to by the foreign key.

func (*GroupApplicationRequest) Insert

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*GroupApplicationRequest) Reload

Reload refetches the object from the database using the primary keys with an executor.

func (*GroupApplicationRequest) RequesterUser

func (o *GroupApplicationRequest) RequesterUser(mods ...qm.QueryMod) userQuery

RequesterUser pointed to by the foreign key.

func (*GroupApplicationRequest) SetApplication

func (o *GroupApplicationRequest) SetApplication(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Application) error

SetApplication of the groupApplicationRequest to the related item. Sets o.R.Application to related. Adds o to related.R.GroupApplicationRequests.

func (*GroupApplicationRequest) SetApproverGroup

func (o *GroupApplicationRequest) SetApproverGroup(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Group) error

SetApproverGroup of the groupApplicationRequest to the related item. Sets o.R.ApproverGroup to related. Adds o to related.R.ApproverGroupGroupApplicationRequests.

func (*GroupApplicationRequest) SetGroup

func (o *GroupApplicationRequest) SetGroup(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Group) error

SetGroup of the groupApplicationRequest to the related item. Sets o.R.Group to related. Adds o to related.R.GroupApplicationRequests.

func (*GroupApplicationRequest) SetRequesterUser

func (o *GroupApplicationRequest) SetRequesterUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error

SetRequesterUser of the groupApplicationRequest to the related item. Sets o.R.RequesterUser to related. Adds o to related.R.RequesterUserGroupApplicationRequests.

func (*GroupApplicationRequest) Update

Update uses an executor to update the GroupApplicationRequest. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*GroupApplicationRequest) Upsert

func (o *GroupApplicationRequest) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type GroupApplicationRequestHook

type GroupApplicationRequestHook func(context.Context, boil.ContextExecutor, *GroupApplicationRequest) error

GroupApplicationRequestHook is the signature for custom GroupApplicationRequest hook methods

type GroupApplicationRequestSlice

type GroupApplicationRequestSlice []*GroupApplicationRequest

GroupApplicationRequestSlice is an alias for a slice of pointers to GroupApplicationRequest. This should almost always be used instead of []GroupApplicationRequest.

func (GroupApplicationRequestSlice) DeleteAll

DeleteAll deletes all rows in the slice, using an executor.

func (*GroupApplicationRequestSlice) ReloadAll

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (GroupApplicationRequestSlice) UpdateAll

func (o GroupApplicationRequestSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type GroupApplicationSlice

type GroupApplicationSlice []*GroupApplication

GroupApplicationSlice is an alias for a slice of pointers to GroupApplication. This should almost always be used instead of []GroupApplication.

func (GroupApplicationSlice) DeleteAll

func (o GroupApplicationSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*GroupApplicationSlice) ReloadAll

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (GroupApplicationSlice) UpdateAll

func (o GroupApplicationSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type GroupHierarchy added in v0.1.1

type GroupHierarchy struct {
	ID            string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	ParentGroupID string    `boil:"parent_group_id" json:"parent_group_id" toml:"parent_group_id" yaml:"parent_group_id"`
	MemberGroupID string    `boil:"member_group_id" json:"member_group_id" toml:"member_group_id" yaml:"member_group_id"`
	CreatedAt     time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt     time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	ExpiresAt     null.Time `boil:"expires_at" json:"expires_at,omitempty" toml:"expires_at" yaml:"expires_at,omitempty"`

	R *groupHierarchyR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L groupHierarchyL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

GroupHierarchy is an object representing the database table.

func FindGroupHierarchy added in v0.1.1

func FindGroupHierarchy(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*GroupHierarchy, error)

FindGroupHierarchy retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*GroupHierarchy) Delete added in v0.1.1

func (o *GroupHierarchy) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single GroupHierarchy record with an executor. Delete will match against the primary key column to find the record to delete.

func (*GroupHierarchy) Exists added in v0.1.1

func (o *GroupHierarchy) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the GroupHierarchy row exists.

func (*GroupHierarchy) Insert added in v0.1.1

func (o *GroupHierarchy) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*GroupHierarchy) MemberGroup added in v0.1.1

func (o *GroupHierarchy) MemberGroup(mods ...qm.QueryMod) groupQuery

MemberGroup pointed to by the foreign key.

func (*GroupHierarchy) ParentGroup added in v0.1.1

func (o *GroupHierarchy) ParentGroup(mods ...qm.QueryMod) groupQuery

ParentGroup pointed to by the foreign key.

func (*GroupHierarchy) Reload added in v0.1.1

func (o *GroupHierarchy) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*GroupHierarchy) SetMemberGroup added in v0.1.1

func (o *GroupHierarchy) SetMemberGroup(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Group) error

SetMemberGroup of the groupHierarchy to the related item. Sets o.R.MemberGroup to related. Adds o to related.R.MemberGroupGroupHierarchies.

func (*GroupHierarchy) SetParentGroup added in v0.1.1

func (o *GroupHierarchy) SetParentGroup(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Group) error

SetParentGroup of the groupHierarchy to the related item. Sets o.R.ParentGroup to related. Adds o to related.R.ParentGroupGroupHierarchies.

func (*GroupHierarchy) Update added in v0.1.1

func (o *GroupHierarchy) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the GroupHierarchy. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*GroupHierarchy) Upsert added in v0.1.1

func (o *GroupHierarchy) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type GroupHierarchyHook added in v0.1.1

type GroupHierarchyHook func(context.Context, boil.ContextExecutor, *GroupHierarchy) error

GroupHierarchyHook is the signature for custom GroupHierarchy hook methods

type GroupHierarchySlice added in v0.1.1

type GroupHierarchySlice []*GroupHierarchy

GroupHierarchySlice is an alias for a slice of pointers to GroupHierarchy. This should almost always be used instead of []GroupHierarchy.

func (GroupHierarchySlice) DeleteAll added in v0.1.1

DeleteAll deletes all rows in the slice, using an executor.

func (*GroupHierarchySlice) ReloadAll added in v0.1.1

func (o *GroupHierarchySlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (GroupHierarchySlice) UpdateAll added in v0.1.1

func (o GroupHierarchySlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type GroupHook

type GroupHook func(context.Context, boil.ContextExecutor, *Group) error

GroupHook is the signature for custom Group hook methods

type GroupMembership

type GroupMembership struct {
	ID        string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	GroupID   string    `boil:"group_id" json:"group_id" toml:"group_id" yaml:"group_id"`
	UserID    string    `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
	IsAdmin   bool      `boil:"is_admin" json:"is_admin" toml:"is_admin" yaml:"is_admin"`
	CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	ExpiresAt null.Time `boil:"expires_at" json:"expires_at,omitempty" toml:"expires_at" yaml:"expires_at,omitempty"`

	R *groupMembershipR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L groupMembershipL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

GroupMembership is an object representing the database table.

func FindGroupMembership

func FindGroupMembership(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*GroupMembership, error)

FindGroupMembership retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*GroupMembership) Delete

func (o *GroupMembership) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

Delete deletes a single GroupMembership record with an executor. Delete will match against the primary key column to find the record to delete.

func (*GroupMembership) Exists

func (o *GroupMembership) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the GroupMembership row exists.

func (*GroupMembership) Group

func (o *GroupMembership) Group(mods ...qm.QueryMod) groupQuery

Group pointed to by the foreign key.

func (*GroupMembership) Insert

func (o *GroupMembership) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*GroupMembership) Reload

Reload refetches the object from the database using the primary keys with an executor.

func (*GroupMembership) SetGroup

func (o *GroupMembership) SetGroup(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Group) error

SetGroup of the groupMembership to the related item. Sets o.R.Group to related. Adds o to related.R.GroupMemberships.

func (*GroupMembership) SetUser

func (o *GroupMembership) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error

SetUser of the groupMembership to the related item. Sets o.R.User to related. Adds o to related.R.GroupMemberships.

func (*GroupMembership) Update

func (o *GroupMembership) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the GroupMembership. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*GroupMembership) Upsert

func (o *GroupMembership) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

func (*GroupMembership) User

func (o *GroupMembership) User(mods ...qm.QueryMod) userQuery

User pointed to by the foreign key.

type GroupMembershipHook

type GroupMembershipHook func(context.Context, boil.ContextExecutor, *GroupMembership) error

GroupMembershipHook is the signature for custom GroupMembership hook methods

type GroupMembershipRequest

type GroupMembershipRequest struct {
	ID        string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	GroupID   string    `boil:"group_id" json:"group_id" toml:"group_id" yaml:"group_id"`
	UserID    string    `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
	CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	IsAdmin   bool      `boil:"is_admin" json:"is_admin" toml:"is_admin" yaml:"is_admin"`
	Note      string    `boil:"note" json:"note" toml:"note" yaml:"note"`
	ExpiresAt null.Time `boil:"expires_at" json:"expires_at,omitempty" toml:"expires_at" yaml:"expires_at,omitempty"`

	R *groupMembershipRequestR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L groupMembershipRequestL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

GroupMembershipRequest is an object representing the database table.

func FindGroupMembershipRequest

func FindGroupMembershipRequest(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*GroupMembershipRequest, error)

FindGroupMembershipRequest retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*GroupMembershipRequest) Delete

Delete deletes a single GroupMembershipRequest record with an executor. Delete will match against the primary key column to find the record to delete.

func (*GroupMembershipRequest) Exists

Exists checks if the GroupMembershipRequest row exists.

func (*GroupMembershipRequest) Group

func (o *GroupMembershipRequest) Group(mods ...qm.QueryMod) groupQuery

Group pointed to by the foreign key.

func (*GroupMembershipRequest) Insert

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*GroupMembershipRequest) Reload

Reload refetches the object from the database using the primary keys with an executor.

func (*GroupMembershipRequest) SetGroup

func (o *GroupMembershipRequest) SetGroup(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Group) error

SetGroup of the groupMembershipRequest to the related item. Sets o.R.Group to related. Adds o to related.R.GroupMembershipRequests.

func (*GroupMembershipRequest) SetUser

func (o *GroupMembershipRequest) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error

SetUser of the groupMembershipRequest to the related item. Sets o.R.User to related. Adds o to related.R.GroupMembershipRequests.

func (*GroupMembershipRequest) Update

Update uses an executor to update the GroupMembershipRequest. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*GroupMembershipRequest) Upsert

func (o *GroupMembershipRequest) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

func (*GroupMembershipRequest) User

func (o *GroupMembershipRequest) User(mods ...qm.QueryMod) userQuery

User pointed to by the foreign key.

type GroupMembershipRequestHook

type GroupMembershipRequestHook func(context.Context, boil.ContextExecutor, *GroupMembershipRequest) error

GroupMembershipRequestHook is the signature for custom GroupMembershipRequest hook methods

type GroupMembershipRequestSlice

type GroupMembershipRequestSlice []*GroupMembershipRequest

GroupMembershipRequestSlice is an alias for a slice of pointers to GroupMembershipRequest. This should almost always be used instead of []GroupMembershipRequest.

func (GroupMembershipRequestSlice) DeleteAll

DeleteAll deletes all rows in the slice, using an executor.

func (*GroupMembershipRequestSlice) ReloadAll

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (GroupMembershipRequestSlice) UpdateAll

func (o GroupMembershipRequestSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type GroupMembershipSlice

type GroupMembershipSlice []*GroupMembership

GroupMembershipSlice is an alias for a slice of pointers to GroupMembership. This should almost always be used instead of []GroupMembership.

func (GroupMembershipSlice) DeleteAll

DeleteAll deletes all rows in the slice, using an executor.

func (*GroupMembershipSlice) ReloadAll

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (GroupMembershipSlice) UpdateAll

func (o GroupMembershipSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type GroupOrganization

type GroupOrganization struct {
	ID             string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	GroupID        string    `boil:"group_id" json:"group_id" toml:"group_id" yaml:"group_id"`
	OrganizationID string    `boil:"organization_id" json:"organization_id" toml:"organization_id" yaml:"organization_id"`
	CreatedAt      time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt      time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`

	R *groupOrganizationR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L groupOrganizationL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

GroupOrganization is an object representing the database table.

func FindGroupOrganization

func FindGroupOrganization(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*GroupOrganization, error)

FindGroupOrganization retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*GroupOrganization) Delete

Delete deletes a single GroupOrganization record with an executor. Delete will match against the primary key column to find the record to delete.

func (*GroupOrganization) Exists

Exists checks if the GroupOrganization row exists.

func (*GroupOrganization) Group

func (o *GroupOrganization) Group(mods ...qm.QueryMod) groupQuery

Group pointed to by the foreign key.

func (*GroupOrganization) Insert

func (o *GroupOrganization) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*GroupOrganization) Organization

func (o *GroupOrganization) Organization(mods ...qm.QueryMod) organizationQuery

Organization pointed to by the foreign key.

func (*GroupOrganization) Reload

Reload refetches the object from the database using the primary keys with an executor.

func (*GroupOrganization) SetGroup

func (o *GroupOrganization) SetGroup(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Group) error

SetGroup of the groupOrganization to the related item. Sets o.R.Group to related. Adds o to related.R.GroupOrganizations.

func (*GroupOrganization) SetOrganization

func (o *GroupOrganization) SetOrganization(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Organization) error

SetOrganization of the groupOrganization to the related item. Sets o.R.Organization to related. Adds o to related.R.GroupOrganizations.

func (*GroupOrganization) Update

func (o *GroupOrganization) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the GroupOrganization. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*GroupOrganization) Upsert

func (o *GroupOrganization) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type GroupOrganizationHook

type GroupOrganizationHook func(context.Context, boil.ContextExecutor, *GroupOrganization) error

GroupOrganizationHook is the signature for custom GroupOrganization hook methods

type GroupOrganizationSlice

type GroupOrganizationSlice []*GroupOrganization

GroupOrganizationSlice is an alias for a slice of pointers to GroupOrganization. This should almost always be used instead of []GroupOrganization.

func (GroupOrganizationSlice) DeleteAll

DeleteAll deletes all rows in the slice, using an executor.

func (*GroupOrganizationSlice) ReloadAll

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (GroupOrganizationSlice) UpdateAll

func (o GroupOrganizationSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type GroupSlice

type GroupSlice []*Group

GroupSlice is an alias for a slice of pointers to Group. This should almost always be used instead of []Group.

func (GroupSlice) DeleteAll

func (o GroupSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*GroupSlice) ReloadAll

func (o *GroupSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (GroupSlice) UpdateAll

func (o GroupSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type M

type M map[string]interface{}

M type is for providing columns and column values to UpdateAll.

type Organization

type Organization struct {
	ID        string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name      string    `boil:"name" json:"name" toml:"name" yaml:"name"`
	CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	Slug      string    `boil:"slug" json:"slug" toml:"slug" yaml:"slug"`
	DeletedAt null.Time `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`

	R *organizationR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L organizationL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Organization is an object representing the database table.

func FindOrganization

func FindOrganization(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Organization, error)

FindOrganization retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*Organization) AddGroupOrganizations

func (o *Organization) AddGroupOrganizations(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*GroupOrganization) error

AddGroupOrganizations adds the given related objects to the existing relationships of the organization, optionally inserting them as new records. Appends related to o.R.GroupOrganizations. Sets related.R.Organization appropriately.

func (*Organization) AddSubjectOrganizationAuditEvents

func (o *Organization) AddSubjectOrganizationAuditEvents(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*AuditEvent) error

AddSubjectOrganizationAuditEvents adds the given related objects to the existing relationships of the organization, optionally inserting them as new records. Appends related to o.R.SubjectOrganizationAuditEvents. Sets related.R.SubjectOrganization appropriately.

func (*Organization) Delete

func (o *Organization) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

Delete deletes a single Organization record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Organization) Exists

func (o *Organization) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Organization row exists.

func (*Organization) GroupOrganizations

func (o *Organization) GroupOrganizations(mods ...qm.QueryMod) groupOrganizationQuery

GroupOrganizations retrieves all the group_organization's GroupOrganizations with an executor.

func (*Organization) Insert

func (o *Organization) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*Organization) Reload

func (o *Organization) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Organization) RemoveSubjectOrganizationAuditEvents

func (o *Organization) RemoveSubjectOrganizationAuditEvents(ctx context.Context, exec boil.ContextExecutor, related ...*AuditEvent) error

RemoveSubjectOrganizationAuditEvents relationships from objects passed in. Removes related items from R.SubjectOrganizationAuditEvents (uses pointer comparison, removal does not keep order) Sets related.R.SubjectOrganization.

func (*Organization) SetSubjectOrganizationAuditEvents

func (o *Organization) SetSubjectOrganizationAuditEvents(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*AuditEvent) error

SetSubjectOrganizationAuditEvents removes all previously related items of the organization replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.SubjectOrganization's SubjectOrganizationAuditEvents accordingly. Replaces o.R.SubjectOrganizationAuditEvents with related. Sets related.R.SubjectOrganization's SubjectOrganizationAuditEvents accordingly.

func (*Organization) SubjectOrganizationAuditEvents

func (o *Organization) SubjectOrganizationAuditEvents(mods ...qm.QueryMod) auditEventQuery

SubjectOrganizationAuditEvents retrieves all the audit_event's AuditEvents with an executor via subject_organization_id column.

func (*Organization) Update

func (o *Organization) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Organization. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Organization) Upsert

func (o *Organization) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type OrganizationHook

type OrganizationHook func(context.Context, boil.ContextExecutor, *Organization) error

OrganizationHook is the signature for custom Organization hook methods

type OrganizationSlice

type OrganizationSlice []*Organization

OrganizationSlice is an alias for a slice of pointers to Organization. This should almost always be used instead of []Organization.

func (OrganizationSlice) DeleteAll

func (o OrganizationSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*OrganizationSlice) ReloadAll

func (o *OrganizationSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (OrganizationSlice) UpdateAll

func (o OrganizationSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

type User

type User struct {
	ID             string      `boil:"id" json:"id" toml:"id" yaml:"id"`
	ExternalID     null.String `boil:"external_id" json:"external_id,omitempty" toml:"external_id" yaml:"external_id,omitempty"`
	Name           string      `boil:"name" json:"name" toml:"name" yaml:"name"`
	Email          string      `boil:"email" json:"email" toml:"email" yaml:"email"`
	LoginCount     int64       `boil:"login_count" json:"login_count" toml:"login_count" yaml:"login_count"`
	AvatarURL      null.String `boil:"avatar_url" json:"avatar_url,omitempty" toml:"avatar_url" yaml:"avatar_url,omitempty"`
	LastLoginAt    null.Time   `boil:"last_login_at" json:"last_login_at,omitempty" toml:"last_login_at" yaml:"last_login_at,omitempty"`
	CreatedAt      time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt      time.Time   `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"`
	GithubID       null.Int64  `boil:"github_id" json:"github_id,omitempty" toml:"github_id" yaml:"github_id,omitempty"`
	GithubUsername null.String `boil:"github_username" json:"github_username,omitempty" toml:"github_username" yaml:"github_username,omitempty"`
	DeletedAt      null.Time   `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`
	Status         null.String `boil:"status" json:"status,omitempty" toml:"status" yaml:"status,omitempty"`

	R *userR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L userL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

User is an object representing the database table.

func FindUser

func FindUser(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*User, error)

FindUser retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func (*User) ActorAuditEvents

func (o *User) ActorAuditEvents(mods ...qm.QueryMod) auditEventQuery

ActorAuditEvents retrieves all the audit_event's AuditEvents with an executor via actor_id column.

func (*User) AddActorAuditEvents

func (o *User) AddActorAuditEvents(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*AuditEvent) error

AddActorAuditEvents adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.ActorAuditEvents. Sets related.R.Actor appropriately.

func (*User) AddGroupMembershipRequests

func (o *User) AddGroupMembershipRequests(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*GroupMembershipRequest) error

AddGroupMembershipRequests adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.GroupMembershipRequests. Sets related.R.User appropriately.

func (*User) AddGroupMemberships

func (o *User) AddGroupMemberships(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*GroupMembership) error

AddGroupMemberships adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.GroupMemberships. Sets related.R.User appropriately.

func (*User) AddRequesterUserGroupApplicationRequests

func (o *User) AddRequesterUserGroupApplicationRequests(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*GroupApplicationRequest) error

AddRequesterUserGroupApplicationRequests adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.RequesterUserGroupApplicationRequests. Sets related.R.RequesterUser appropriately.

func (*User) AddSubjectUserAuditEvents

func (o *User) AddSubjectUserAuditEvents(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*AuditEvent) error

AddSubjectUserAuditEvents adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.SubjectUserAuditEvents. Sets related.R.SubjectUser appropriately.

func (*User) Delete

func (o *User) Delete(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

Delete deletes a single User record with an executor. Delete will match against the primary key column to find the record to delete.

func (*User) Exists

func (o *User) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the User row exists.

func (*User) GroupMembershipRequests

func (o *User) GroupMembershipRequests(mods ...qm.QueryMod) groupMembershipRequestQuery

GroupMembershipRequests retrieves all the group_membership_request's GroupMembershipRequests with an executor.

func (*User) GroupMemberships

func (o *User) GroupMemberships(mods ...qm.QueryMod) groupMembershipQuery

GroupMemberships retrieves all the group_membership's GroupMemberships with an executor.

func (*User) Insert

func (o *User) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*User) Reload

func (o *User) Reload(ctx context.Context, exec boil.ContextExecutor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*User) RemoveActorAuditEvents

func (o *User) RemoveActorAuditEvents(ctx context.Context, exec boil.ContextExecutor, related ...*AuditEvent) error

RemoveActorAuditEvents relationships from objects passed in. Removes related items from R.ActorAuditEvents (uses pointer comparison, removal does not keep order) Sets related.R.Actor.

func (*User) RemoveSubjectUserAuditEvents

func (o *User) RemoveSubjectUserAuditEvents(ctx context.Context, exec boil.ContextExecutor, related ...*AuditEvent) error

RemoveSubjectUserAuditEvents relationships from objects passed in. Removes related items from R.SubjectUserAuditEvents (uses pointer comparison, removal does not keep order) Sets related.R.SubjectUser.

func (*User) RequesterUserGroupApplicationRequests

func (o *User) RequesterUserGroupApplicationRequests(mods ...qm.QueryMod) groupApplicationRequestQuery

RequesterUserGroupApplicationRequests retrieves all the group_application_request's GroupApplicationRequests with an executor via requester_user_id column.

func (*User) SetActorAuditEvents

func (o *User) SetActorAuditEvents(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*AuditEvent) error

SetActorAuditEvents removes all previously related items of the user replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Actor's ActorAuditEvents accordingly. Replaces o.R.ActorAuditEvents with related. Sets related.R.Actor's ActorAuditEvents accordingly.

func (*User) SetSubjectUserAuditEvents

func (o *User) SetSubjectUserAuditEvents(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*AuditEvent) error

SetSubjectUserAuditEvents removes all previously related items of the user replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.SubjectUser's SubjectUserAuditEvents accordingly. Replaces o.R.SubjectUserAuditEvents with related. Sets related.R.SubjectUser's SubjectUserAuditEvents accordingly.

func (*User) SubjectUserAuditEvents

func (o *User) SubjectUserAuditEvents(mods ...qm.QueryMod) auditEventQuery

SubjectUserAuditEvents retrieves all the audit_event's AuditEvents with an executor via subject_user_id column.

func (*User) Update

func (o *User) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the User. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*User) Upsert

func (o *User) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, updateColumns, insertColumns boil.Columns) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.

type UserHook

type UserHook func(context.Context, boil.ContextExecutor, *User) error

UserHook is the signature for custom User hook methods

type UserSlice

type UserSlice []*User

UserSlice is an alias for a slice of pointers to User. This should almost always be used instead of []User.

func (UserSlice) DeleteAll

func (o UserSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

DeleteAll deletes all rows in the slice, using an executor.

func (*UserSlice) ReloadAll

func (o *UserSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (UserSlice) UpdateAll

func (o UserSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

UpdateAll updates all rows with the specified column values, using an executor.

Jump to

Keyboard shortcuts

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