// Code generated by BobGen psql v0.42.5. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.

package dbinfo

import "github.com/aarondl/opt/null"

var ArcgisUsers = Table[
	arcgisuserColumns,
	arcgisuserIndexes,
	arcgisuserForeignKeys,
	arcgisuserUniques,
	arcgisuserChecks,
]{
	Schema: "arcgis",
	Name:   "user_",
	Columns: arcgisuserColumns{
		Access: column{
			Name:      "access",
			DBType:    "text",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		Created: column{
			Name:      "created",
			DBType:    "timestamp without time zone",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		Email: column{
			Name:      "email",
			DBType:    "text",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		FullName: column{
			Name:      "full_name",
			DBType:    "text",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		ID: column{
			Name:      "id",
			DBType:    "text",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		Level: column{
			Name:      "level",
			DBType:    "text",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		OrgID: column{
			Name:      "org_id",
			DBType:    "text",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		PublicUserID: column{
			Name:      "public_user_id",
			DBType:    "integer",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		Region: column{
			Name:      "region",
			DBType:    "text",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		Role: column{
			Name:      "role",
			DBType:    "text",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		RoleID: column{
			Name:      "role_id",
			DBType:    "text",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		Username: column{
			Name:      "username",
			DBType:    "text",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		UserLicenseTypeID: column{
			Name:      "user_license_type_id",
			DBType:    "text",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
		UserType: column{
			Name:      "user_type",
			DBType:    "text",
			Default:   "",
			Comment:   "",
			Nullable:  false,
			Generated: false,
			AutoIncr:  false,
		},
	},
	Indexes: arcgisuserIndexes{
		UserPkey: index{
			Type: "btree",
			Name: "user__pkey",
			Columns: []indexColumn{
				{
					Name:         "id",
					Desc:         null.FromCond(false, true),
					IsExpression: false,
				},
			},
			Unique:        true,
			Comment:       "",
			NullsFirst:    []bool{false},
			NullsDistinct: false,
			Where:         "",
			Include:       []string{},
		},
	},
	PrimaryKey: &constraint{
		Name:    "user__pkey",
		Columns: []string{"id"},
		Comment: "",
	},
	ForeignKeys: arcgisuserForeignKeys{
		ArcgisUserUserPublicUserIDFkey: foreignKey{
			constraint: constraint{
				Name:    "arcgis.user_.user__public_user_id_fkey",
				Columns: []string{"public_user_id"},
				Comment: "",
			},
			ForeignTable:   "user_",
			ForeignColumns: []string{"id"},
		},
	},

	Comment: "",
}

type arcgisuserColumns struct {
	Access            column
	Created           column
	Email             column
	FullName          column
	ID                column
	Level             column
	OrgID             column
	PublicUserID      column
	Region            column
	Role              column
	RoleID            column
	Username          column
	UserLicenseTypeID column
	UserType          column
}

func (c arcgisuserColumns) AsSlice() []column {
	return []column{
		c.Access, c.Created, c.Email, c.FullName, c.ID, c.Level, c.OrgID, c.PublicUserID, c.Region, c.Role, c.RoleID, c.Username, c.UserLicenseTypeID, c.UserType,
	}
}

type arcgisuserIndexes struct {
	UserPkey index
}

func (i arcgisuserIndexes) AsSlice() []index {
	return []index{
		i.UserPkey,
	}
}

type arcgisuserForeignKeys struct {
	ArcgisUserUserPublicUserIDFkey foreignKey
}

func (f arcgisuserForeignKeys) AsSlice() []foreignKey {
	return []foreignKey{
		f.ArcgisUserUserPublicUserIDFkey,
	}
}

type arcgisuserUniques struct{}

func (u arcgisuserUniques) AsSlice() []constraint {
	return []constraint{}
}

type arcgisuserChecks struct{}

func (c arcgisuserChecks) AsSlice() []check {
	return []check{}
}
