Interchange6::Schema::Result::User
users
data_type: 'integer' is_auto_increment: 1 is_nullable: 0 sequence: 'users_users_id_seq'
data_type: 'varchar' is_nullable: 0 size: 255
The username is automatically converted to lowercase so we make sure that the unique constraint on username works.
data_type: 'varchar' is_nullable: 1 size: 255
nickname is automatically converted to lowercase
data_type: 'varchar' default_value: (empty string) is_nullable: 0 size: 255
data_type: 'varchar' default_value: (empty string) is_nullable: 0 size: 255 encode_column: 1 encode_class: 'Digest' encode_args: { algorithm => 'SHA-512', format => 'hex', salt_length => 10 } encode_check_method: 'check_password'
data_type: 'datetime' is_nullable: 1
data_type: 'datetime' set_on_create: 1 is_nullable: 0
data_type: 'datetime' set_on_create: 1 set_on_update: 1 is_nullable: 0
data_type: 'boolean' default_value: true is_nullable: 0
Add user attribute.
$user->add_attribute('hair_color', 'blond');
Where 'hair_color' is Attribute and 'blond' is AttributeValue
Update user atttibute
$user->update_attribute('hair_color', 'brown');
Delete user attribute
$user->delete_attribute('hair_color', 'purple');
Creates attribute_value and sets current user.
Check both values 'attribute' and 'attribute_value' were correctly input.
Check 'attribute' and 'attribute_value' pair exist for user.
"users_id"
users_username
"username"
users_nickname
"nickname"
Type: has_many
Related object: Interchange6::Schema::Result::Address
Related object: Interchange6::Schema::Result::Cart
Related object: Interchange6::Schema::Result::Order
Related object: Interchange6::Schema::Result::UserAttribute
Related object: Interchange6::Schema::Result::UserRole
Type: many_to_many
Composing rels: "user_roles" -> role
To install Interchange6::Schema, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Interchange6::Schema
CPAN shell
perl -MCPAN -e shell install Interchange6::Schema
For more information on module installation, please visit the detailed CPAN module installation guide.