user

package
v0.0.1-beta.8 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the user type in the database.
	Label = "user"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldEmail holds the string denoting the email field in the database.
	FieldEmail = "email"
	// FieldPasswordHash holds the string denoting the password_hash field in the database.
	FieldPasswordHash = "password_hash"
	// FieldRole holds the string denoting the role field in the database.
	FieldRole = "role"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldMaxConcurrency holds the string denoting the max_concurrency field in the database.
	FieldMaxConcurrency = "max_concurrency"
	// FieldBalance holds the string denoting the balance field in the database.
	FieldBalance = "balance"
	// FieldBalanceWarningThreshold holds the string denoting the balance_warning_threshold field in the database.
	FieldBalanceWarningThreshold = "balance_warning_threshold"
	// FieldTokenVersion holds the string denoting the token_version field in the database.
	FieldTokenVersion = "token_version"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// EdgeKeys holds the string denoting the keys edge name in mutations.
	EdgeKeys = "keys"
	// EdgeManagementKeys holds the string denoting the management_keys edge name in mutations.
	EdgeManagementKeys = "management_keys"
	// EdgeTempBalances holds the string denoting the temp_balances edge name in mutations.
	EdgeTempBalances = "temp_balances"
	// EdgeGroupAssignments holds the string denoting the group_assignments edge name in mutations.
	EdgeGroupAssignments = "group_assignments"
	// Table holds the table name of the user in the database.
	Table = "users"
	// KeysTable is the table that holds the keys relation/edge.
	KeysTable = "keys"
	// KeysInverseTable is the table name for the Key entity.
	// It exists in this package in order to avoid circular dependency with the "key" package.
	KeysInverseTable = "keys"
	// KeysColumn is the table column denoting the keys relation/edge.
	KeysColumn = "user_id"
	// ManagementKeysTable is the table that holds the management_keys relation/edge.
	ManagementKeysTable = "management_keys"
	// ManagementKeysInverseTable is the table name for the ManagementKey entity.
	// It exists in this package in order to avoid circular dependency with the "managementkey" package.
	ManagementKeysInverseTable = "management_keys"
	// ManagementKeysColumn is the table column denoting the management_keys relation/edge.
	ManagementKeysColumn = "user_id"
	// TempBalancesTable is the table that holds the temp_balances relation/edge.
	TempBalancesTable = "temp_balances"
	// TempBalancesInverseTable is the table name for the TempBalance entity.
	// It exists in this package in order to avoid circular dependency with the "tempbalance" package.
	TempBalancesInverseTable = "temp_balances"
	// TempBalancesColumn is the table column denoting the temp_balances relation/edge.
	TempBalancesColumn = "user_id"
	// GroupAssignmentsTable is the table that holds the group_assignments relation/edge.
	GroupAssignmentsTable = "group_assignments"
	// GroupAssignmentsInverseTable is the table name for the GroupAssignment entity.
	// It exists in this package in order to avoid circular dependency with the "groupassignment" package.
	GroupAssignmentsInverseTable = "group_assignments"
	// GroupAssignmentsColumn is the table column denoting the group_assignments relation/edge.
	GroupAssignmentsColumn = "user_id"
)
View Source
const DefaultRole = RoleUser

RoleUser is the default value of the Role enum.

View Source
const DefaultStatus = StatusActive

StatusActive is the default value of the Status enum.

Variables

View Source
var (
	// DefaultMaxConcurrency holds the default value on creation for the "max_concurrency" field.
	DefaultMaxConcurrency int
	// DefaultBalance holds the default value on creation for the "balance" field.
	DefaultBalance int64
	// DefaultBalanceWarningThreshold holds the default value on creation for the "balance_warning_threshold" field.
	DefaultBalanceWarningThreshold int64
	// DefaultTokenVersion holds the default value on creation for the "token_version" field.
	DefaultTokenVersion int64
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
)

Columns holds all SQL columns for user fields.

Functions

func And

func And(predicates ...predicate.User) predicate.User

And groups predicates with the AND operator between them.

func Balance

func Balance(v int64) predicate.User

Balance applies equality check predicate on the "balance" field. It's identical to BalanceEQ.

func BalanceEQ

func BalanceEQ(v int64) predicate.User

BalanceEQ applies the EQ predicate on the "balance" field.

func BalanceGT

func BalanceGT(v int64) predicate.User

BalanceGT applies the GT predicate on the "balance" field.

func BalanceGTE

func BalanceGTE(v int64) predicate.User

BalanceGTE applies the GTE predicate on the "balance" field.

func BalanceIn

func BalanceIn(vs ...int64) predicate.User

BalanceIn applies the In predicate on the "balance" field.

func BalanceLT

func BalanceLT(v int64) predicate.User

BalanceLT applies the LT predicate on the "balance" field.

func BalanceLTE

func BalanceLTE(v int64) predicate.User

BalanceLTE applies the LTE predicate on the "balance" field.

func BalanceNEQ

func BalanceNEQ(v int64) predicate.User

BalanceNEQ applies the NEQ predicate on the "balance" field.

func BalanceNotIn

func BalanceNotIn(vs ...int64) predicate.User

BalanceNotIn applies the NotIn predicate on the "balance" field.

func BalanceWarningThreshold

func BalanceWarningThreshold(v int64) predicate.User

BalanceWarningThreshold applies equality check predicate on the "balance_warning_threshold" field. It's identical to BalanceWarningThresholdEQ.

func BalanceWarningThresholdEQ

func BalanceWarningThresholdEQ(v int64) predicate.User

BalanceWarningThresholdEQ applies the EQ predicate on the "balance_warning_threshold" field.

func BalanceWarningThresholdGT

func BalanceWarningThresholdGT(v int64) predicate.User

BalanceWarningThresholdGT applies the GT predicate on the "balance_warning_threshold" field.

func BalanceWarningThresholdGTE

func BalanceWarningThresholdGTE(v int64) predicate.User

BalanceWarningThresholdGTE applies the GTE predicate on the "balance_warning_threshold" field.

func BalanceWarningThresholdIn

func BalanceWarningThresholdIn(vs ...int64) predicate.User

BalanceWarningThresholdIn applies the In predicate on the "balance_warning_threshold" field.

func BalanceWarningThresholdLT

func BalanceWarningThresholdLT(v int64) predicate.User

BalanceWarningThresholdLT applies the LT predicate on the "balance_warning_threshold" field.

func BalanceWarningThresholdLTE

func BalanceWarningThresholdLTE(v int64) predicate.User

BalanceWarningThresholdLTE applies the LTE predicate on the "balance_warning_threshold" field.

func BalanceWarningThresholdNEQ

func BalanceWarningThresholdNEQ(v int64) predicate.User

BalanceWarningThresholdNEQ applies the NEQ predicate on the "balance_warning_threshold" field.

func BalanceWarningThresholdNotIn

func BalanceWarningThresholdNotIn(vs ...int64) predicate.User

BalanceWarningThresholdNotIn applies the NotIn predicate on the "balance_warning_threshold" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.User

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.User

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.User

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.User

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.User

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.User

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.User

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.User

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.User

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func Email

func Email(v string) predicate.User

Email applies equality check predicate on the "email" field. It's identical to EmailEQ.

func EmailContains

func EmailContains(v string) predicate.User

EmailContains applies the Contains predicate on the "email" field.

func EmailContainsFold

func EmailContainsFold(v string) predicate.User

EmailContainsFold applies the ContainsFold predicate on the "email" field.

func EmailEQ

func EmailEQ(v string) predicate.User

EmailEQ applies the EQ predicate on the "email" field.

func EmailEqualFold

func EmailEqualFold(v string) predicate.User

EmailEqualFold applies the EqualFold predicate on the "email" field.

func EmailGT

func EmailGT(v string) predicate.User

EmailGT applies the GT predicate on the "email" field.

func EmailGTE

func EmailGTE(v string) predicate.User

EmailGTE applies the GTE predicate on the "email" field.

func EmailHasPrefix

func EmailHasPrefix(v string) predicate.User

EmailHasPrefix applies the HasPrefix predicate on the "email" field.

func EmailHasSuffix

func EmailHasSuffix(v string) predicate.User

EmailHasSuffix applies the HasSuffix predicate on the "email" field.

func EmailIn

func EmailIn(vs ...string) predicate.User

EmailIn applies the In predicate on the "email" field.

func EmailLT

func EmailLT(v string) predicate.User

EmailLT applies the LT predicate on the "email" field.

func EmailLTE

func EmailLTE(v string) predicate.User

EmailLTE applies the LTE predicate on the "email" field.

func EmailNEQ

func EmailNEQ(v string) predicate.User

EmailNEQ applies the NEQ predicate on the "email" field.

func EmailNotIn

func EmailNotIn(vs ...string) predicate.User

EmailNotIn applies the NotIn predicate on the "email" field.

func HasGroupAssignments

func HasGroupAssignments() predicate.User

HasGroupAssignments applies the HasEdge predicate on the "group_assignments" edge.

func HasGroupAssignmentsWith

func HasGroupAssignmentsWith(preds ...predicate.GroupAssignment) predicate.User

HasGroupAssignmentsWith applies the HasEdge predicate on the "group_assignments" edge with a given conditions (other predicates).

func HasKeys

func HasKeys() predicate.User

HasKeys applies the HasEdge predicate on the "keys" edge.

func HasKeysWith

func HasKeysWith(preds ...predicate.Key) predicate.User

HasKeysWith applies the HasEdge predicate on the "keys" edge with a given conditions (other predicates).

func HasManagementKeys

func HasManagementKeys() predicate.User

HasManagementKeys applies the HasEdge predicate on the "management_keys" edge.

func HasManagementKeysWith

func HasManagementKeysWith(preds ...predicate.ManagementKey) predicate.User

HasManagementKeysWith applies the HasEdge predicate on the "management_keys" edge with a given conditions (other predicates).

func HasTempBalances

func HasTempBalances() predicate.User

HasTempBalances applies the HasEdge predicate on the "temp_balances" edge.

func HasTempBalancesWith

func HasTempBalancesWith(preds ...predicate.TempBalance) predicate.User

HasTempBalancesWith applies the HasEdge predicate on the "temp_balances" edge with a given conditions (other predicates).

func ID

func ID(id int64) predicate.User

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.User

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.User

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.User

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int64) predicate.User

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.User

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.User

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.User

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int64) predicate.User

IDNotIn applies the NotIn predicate on the ID field.

func MaxConcurrency

func MaxConcurrency(v int) predicate.User

MaxConcurrency applies equality check predicate on the "max_concurrency" field. It's identical to MaxConcurrencyEQ.

func MaxConcurrencyEQ

func MaxConcurrencyEQ(v int) predicate.User

MaxConcurrencyEQ applies the EQ predicate on the "max_concurrency" field.

func MaxConcurrencyGT

func MaxConcurrencyGT(v int) predicate.User

MaxConcurrencyGT applies the GT predicate on the "max_concurrency" field.

func MaxConcurrencyGTE

func MaxConcurrencyGTE(v int) predicate.User

MaxConcurrencyGTE applies the GTE predicate on the "max_concurrency" field.

func MaxConcurrencyIn

func MaxConcurrencyIn(vs ...int) predicate.User

MaxConcurrencyIn applies the In predicate on the "max_concurrency" field.

func MaxConcurrencyLT

func MaxConcurrencyLT(v int) predicate.User

MaxConcurrencyLT applies the LT predicate on the "max_concurrency" field.

func MaxConcurrencyLTE

func MaxConcurrencyLTE(v int) predicate.User

MaxConcurrencyLTE applies the LTE predicate on the "max_concurrency" field.

func MaxConcurrencyNEQ

func MaxConcurrencyNEQ(v int) predicate.User

MaxConcurrencyNEQ applies the NEQ predicate on the "max_concurrency" field.

func MaxConcurrencyNotIn

func MaxConcurrencyNotIn(vs ...int) predicate.User

MaxConcurrencyNotIn applies the NotIn predicate on the "max_concurrency" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.User) predicate.User

Or groups predicates with the OR operator between them.

func PasswordHash

func PasswordHash(v string) predicate.User

PasswordHash applies equality check predicate on the "password_hash" field. It's identical to PasswordHashEQ.

func PasswordHashContains

func PasswordHashContains(v string) predicate.User

PasswordHashContains applies the Contains predicate on the "password_hash" field.

func PasswordHashContainsFold

func PasswordHashContainsFold(v string) predicate.User

PasswordHashContainsFold applies the ContainsFold predicate on the "password_hash" field.

func PasswordHashEQ

func PasswordHashEQ(v string) predicate.User

PasswordHashEQ applies the EQ predicate on the "password_hash" field.

func PasswordHashEqualFold

func PasswordHashEqualFold(v string) predicate.User

PasswordHashEqualFold applies the EqualFold predicate on the "password_hash" field.

func PasswordHashGT

func PasswordHashGT(v string) predicate.User

PasswordHashGT applies the GT predicate on the "password_hash" field.

func PasswordHashGTE

func PasswordHashGTE(v string) predicate.User

PasswordHashGTE applies the GTE predicate on the "password_hash" field.

func PasswordHashHasPrefix

func PasswordHashHasPrefix(v string) predicate.User

PasswordHashHasPrefix applies the HasPrefix predicate on the "password_hash" field.

func PasswordHashHasSuffix

func PasswordHashHasSuffix(v string) predicate.User

PasswordHashHasSuffix applies the HasSuffix predicate on the "password_hash" field.

func PasswordHashIn

func PasswordHashIn(vs ...string) predicate.User

PasswordHashIn applies the In predicate on the "password_hash" field.

func PasswordHashLT

func PasswordHashLT(v string) predicate.User

PasswordHashLT applies the LT predicate on the "password_hash" field.

func PasswordHashLTE

func PasswordHashLTE(v string) predicate.User

PasswordHashLTE applies the LTE predicate on the "password_hash" field.

func PasswordHashNEQ

func PasswordHashNEQ(v string) predicate.User

PasswordHashNEQ applies the NEQ predicate on the "password_hash" field.

func PasswordHashNotIn

func PasswordHashNotIn(vs ...string) predicate.User

PasswordHashNotIn applies the NotIn predicate on the "password_hash" field.

func RoleEQ

func RoleEQ(v Role) predicate.User

RoleEQ applies the EQ predicate on the "role" field.

func RoleIn

func RoleIn(vs ...Role) predicate.User

RoleIn applies the In predicate on the "role" field.

func RoleNEQ

func RoleNEQ(v Role) predicate.User

RoleNEQ applies the NEQ predicate on the "role" field.

func RoleNotIn

func RoleNotIn(vs ...Role) predicate.User

RoleNotIn applies the NotIn predicate on the "role" field.

func RoleValidator

func RoleValidator(r Role) error

RoleValidator is a validator for the "role" field enum values. It is called by the builders before save.

func StatusEQ

func StatusEQ(v Status) predicate.User

StatusEQ applies the EQ predicate on the "status" field.

func StatusIn

func StatusIn(vs ...Status) predicate.User

StatusIn applies the In predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v Status) predicate.User

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...Status) predicate.User

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusValidator

func StatusValidator(s Status) error

StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.

func TokenVersion

func TokenVersion(v int64) predicate.User

TokenVersion applies equality check predicate on the "token_version" field. It's identical to TokenVersionEQ.

func TokenVersionEQ

func TokenVersionEQ(v int64) predicate.User

TokenVersionEQ applies the EQ predicate on the "token_version" field.

func TokenVersionGT

func TokenVersionGT(v int64) predicate.User

TokenVersionGT applies the GT predicate on the "token_version" field.

func TokenVersionGTE

func TokenVersionGTE(v int64) predicate.User

TokenVersionGTE applies the GTE predicate on the "token_version" field.

func TokenVersionIn

func TokenVersionIn(vs ...int64) predicate.User

TokenVersionIn applies the In predicate on the "token_version" field.

func TokenVersionLT

func TokenVersionLT(v int64) predicate.User

TokenVersionLT applies the LT predicate on the "token_version" field.

func TokenVersionLTE

func TokenVersionLTE(v int64) predicate.User

TokenVersionLTE applies the LTE predicate on the "token_version" field.

func TokenVersionNEQ

func TokenVersionNEQ(v int64) predicate.User

TokenVersionNEQ applies the NEQ predicate on the "token_version" field.

func TokenVersionNotIn

func TokenVersionNotIn(vs ...int64) predicate.User

TokenVersionNotIn applies the NotIn predicate on the "token_version" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.User

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.User

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.User

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.User

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.User

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.User

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.User

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.User

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.User

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the User queries.

func ByBalance

func ByBalance(opts ...sql.OrderTermOption) OrderOption

ByBalance orders the results by the balance field.

func ByBalanceWarningThreshold

func ByBalanceWarningThreshold(opts ...sql.OrderTermOption) OrderOption

ByBalanceWarningThreshold orders the results by the balance_warning_threshold field.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByEmail

func ByEmail(opts ...sql.OrderTermOption) OrderOption

ByEmail orders the results by the email field.

func ByGroupAssignments

func ByGroupAssignments(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByGroupAssignments orders the results by group_assignments terms.

func ByGroupAssignmentsCount

func ByGroupAssignmentsCount(opts ...sql.OrderTermOption) OrderOption

ByGroupAssignmentsCount orders the results by group_assignments count.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByKeys

func ByKeys(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByKeys orders the results by keys terms.

func ByKeysCount

func ByKeysCount(opts ...sql.OrderTermOption) OrderOption

ByKeysCount orders the results by keys count.

func ByManagementKeys

func ByManagementKeys(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByManagementKeys orders the results by management_keys terms.

func ByManagementKeysCount

func ByManagementKeysCount(opts ...sql.OrderTermOption) OrderOption

ByManagementKeysCount orders the results by management_keys count.

func ByMaxConcurrency

func ByMaxConcurrency(opts ...sql.OrderTermOption) OrderOption

ByMaxConcurrency orders the results by the max_concurrency field.

func ByPasswordHash

func ByPasswordHash(opts ...sql.OrderTermOption) OrderOption

ByPasswordHash orders the results by the password_hash field.

func ByRole

func ByRole(opts ...sql.OrderTermOption) OrderOption

ByRole orders the results by the role field.

func ByStatus

func ByStatus(opts ...sql.OrderTermOption) OrderOption

ByStatus orders the results by the status field.

func ByTempBalances

func ByTempBalances(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByTempBalances orders the results by temp_balances terms.

func ByTempBalancesCount

func ByTempBalancesCount(opts ...sql.OrderTermOption) OrderOption

ByTempBalancesCount orders the results by temp_balances count.

func ByTokenVersion

func ByTokenVersion(opts ...sql.OrderTermOption) OrderOption

ByTokenVersion orders the results by the token_version field.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

type Role

type Role string

Role defines the type for the "role" enum field.

const (
	RolePlatformAdmin Role = "platform_admin"
	RoleUser          Role = "user"
	RoleSupplier      Role = "supplier"
)

Role values.

func (Role) String

func (r Role) String() string

type Status

type Status string

Status defines the type for the "status" enum field.

const (
	StatusActive   Status = "active"
	StatusDisabled Status = "disabled"
)

Status values.

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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