2011-12-05 13:29:29 +00:00
|
|
|
use utf8;
|
2008-11-26 19:48:04 +00:00
|
|
|
package Hydra::Schema::Users;
|
|
|
|
|
2009-10-23 15:05:16 +00:00
|
|
|
# Created by DBIx::Class::Schema::Loader
|
|
|
|
# DO NOT MODIFY THE FIRST PART OF THIS FILE
|
|
|
|
|
2011-12-05 13:29:29 +00:00
|
|
|
=head1 NAME
|
|
|
|
|
|
|
|
Hydra::Schema::Users
|
|
|
|
|
|
|
|
=cut
|
|
|
|
|
2008-11-26 19:48:04 +00:00
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
|
2010-02-25 09:50:04 +00:00
|
|
|
use base 'DBIx::Class::Core';
|
|
|
|
|
2013-06-17 16:34:21 +00:00
|
|
|
=head1 COMPONENTS LOADED
|
|
|
|
|
|
|
|
=over 4
|
|
|
|
|
|
|
|
=item * L<Hydra::Component::ToJSON>
|
|
|
|
|
|
|
|
=back
|
|
|
|
|
|
|
|
=cut
|
|
|
|
|
|
|
|
__PACKAGE__->load_components("+Hydra::Component::ToJSON");
|
|
|
|
|
2020-02-06 17:23:47 +00:00
|
|
|
=head1 TABLE: C<users>
|
2010-02-25 09:50:04 +00:00
|
|
|
|
|
|
|
=cut
|
2008-11-26 19:48:04 +00:00
|
|
|
|
2020-02-06 17:23:47 +00:00
|
|
|
__PACKAGE__->table("users");
|
2010-02-25 09:50:04 +00:00
|
|
|
|
|
|
|
=head1 ACCESSORS
|
|
|
|
|
|
|
|
=head2 username
|
|
|
|
|
2011-12-05 13:29:29 +00:00
|
|
|
data_type: 'text'
|
2010-02-25 09:50:04 +00:00
|
|
|
is_nullable: 0
|
|
|
|
|
|
|
|
=head2 fullname
|
|
|
|
|
2011-12-05 13:29:29 +00:00
|
|
|
data_type: 'text'
|
2010-02-25 09:50:04 +00:00
|
|
|
is_nullable: 1
|
|
|
|
|
|
|
|
=head2 emailaddress
|
|
|
|
|
2011-12-05 13:29:29 +00:00
|
|
|
data_type: 'text'
|
2010-02-25 09:50:04 +00:00
|
|
|
is_nullable: 0
|
|
|
|
|
|
|
|
=head2 password
|
|
|
|
|
2011-12-05 13:29:29 +00:00
|
|
|
data_type: 'text'
|
2010-02-25 09:50:04 +00:00
|
|
|
is_nullable: 0
|
|
|
|
|
|
|
|
=head2 emailonerror
|
|
|
|
|
2011-12-05 13:29:29 +00:00
|
|
|
data_type: 'integer'
|
2010-02-25 09:50:04 +00:00
|
|
|
default_value: 0
|
|
|
|
is_nullable: 0
|
|
|
|
|
2013-11-05 10:46:05 +00:00
|
|
|
=head2 type
|
|
|
|
|
|
|
|
data_type: 'text'
|
|
|
|
default_value: 'hydra'
|
|
|
|
is_nullable: 0
|
|
|
|
|
2016-05-27 10:00:20 +00:00
|
|
|
=head2 publicdashboard
|
|
|
|
|
|
|
|
data_type: 'boolean'
|
|
|
|
default_value: false
|
|
|
|
is_nullable: 0
|
|
|
|
|
2010-02-25 09:50:04 +00:00
|
|
|
=cut
|
|
|
|
|
2008-11-26 19:48:04 +00:00
|
|
|
__PACKAGE__->add_columns(
|
|
|
|
"username",
|
2011-12-05 13:29:29 +00:00
|
|
|
{ data_type => "text", is_nullable => 0 },
|
2008-11-26 19:48:04 +00:00
|
|
|
"fullname",
|
2011-12-05 13:29:29 +00:00
|
|
|
{ data_type => "text", is_nullable => 1 },
|
2008-11-26 19:48:04 +00:00
|
|
|
"emailaddress",
|
2011-12-05 13:29:29 +00:00
|
|
|
{ data_type => "text", is_nullable => 0 },
|
2008-11-26 19:48:04 +00:00
|
|
|
"password",
|
2011-12-05 13:29:29 +00:00
|
|
|
{ data_type => "text", is_nullable => 0 },
|
2009-12-18 12:07:45 +00:00
|
|
|
"emailonerror",
|
2011-12-05 13:29:29 +00:00
|
|
|
{ data_type => "integer", default_value => 0, is_nullable => 0 },
|
2013-11-05 10:46:05 +00:00
|
|
|
"type",
|
|
|
|
{ data_type => "text", default_value => "hydra", is_nullable => 0 },
|
2016-05-27 10:00:20 +00:00
|
|
|
"publicdashboard",
|
|
|
|
{ data_type => "boolean", default_value => \"false", is_nullable => 0 },
|
2008-11-26 19:48:04 +00:00
|
|
|
);
|
2010-02-25 09:50:04 +00:00
|
|
|
|
2011-12-05 13:29:29 +00:00
|
|
|
=head1 PRIMARY KEY
|
2010-02-25 09:50:04 +00:00
|
|
|
|
2011-12-05 13:29:29 +00:00
|
|
|
=over 4
|
2010-02-25 09:50:04 +00:00
|
|
|
|
2011-12-05 13:29:29 +00:00
|
|
|
=item * L</username>
|
2010-02-25 09:50:04 +00:00
|
|
|
|
2011-12-05 13:29:29 +00:00
|
|
|
=back
|
2010-02-25 09:50:04 +00:00
|
|
|
|
|
|
|
=cut
|
|
|
|
|
2011-12-05 13:29:29 +00:00
|
|
|
__PACKAGE__->set_primary_key("username");
|
2010-02-25 09:50:04 +00:00
|
|
|
|
2011-12-05 13:29:29 +00:00
|
|
|
=head1 RELATIONS
|
|
|
|
|
|
|
|
=head2 newsitems
|
2010-02-25 09:50:04 +00:00
|
|
|
|
|
|
|
Type: has_many
|
|
|
|
|
2011-12-05 13:29:29 +00:00
|
|
|
Related object: L<Hydra::Schema::NewsItems>
|
2010-02-25 09:50:04 +00:00
|
|
|
|
|
|
|
=cut
|
|
|
|
|
2009-10-21 12:25:43 +00:00
|
|
|
__PACKAGE__->has_many(
|
2011-12-05 13:29:29 +00:00
|
|
|
"newsitems",
|
|
|
|
"Hydra::Schema::NewsItems",
|
|
|
|
{ "foreign.author" => "self.username" },
|
2013-01-22 21:48:02 +00:00
|
|
|
undef,
|
2009-10-21 12:25:43 +00:00
|
|
|
);
|
2008-11-26 19:48:04 +00:00
|
|
|
|
2010-04-27 13:29:08 +00:00
|
|
|
=head2 projectmembers
|
|
|
|
|
|
|
|
Type: has_many
|
|
|
|
|
|
|
|
Related object: L<Hydra::Schema::ProjectMembers>
|
|
|
|
|
|
|
|
=cut
|
|
|
|
|
|
|
|
__PACKAGE__->has_many(
|
|
|
|
"projectmembers",
|
|
|
|
"Hydra::Schema::ProjectMembers",
|
|
|
|
{ "foreign.username" => "self.username" },
|
2013-01-22 21:48:02 +00:00
|
|
|
undef,
|
2010-04-27 13:29:08 +00:00
|
|
|
);
|
|
|
|
|
2013-01-22 21:48:02 +00:00
|
|
|
=head2 projects_2s
|
2010-04-27 13:29:08 +00:00
|
|
|
|
|
|
|
Type: has_many
|
|
|
|
|
2011-12-05 13:29:29 +00:00
|
|
|
Related object: L<Hydra::Schema::Projects>
|
2010-04-27 13:29:08 +00:00
|
|
|
|
|
|
|
=cut
|
|
|
|
|
|
|
|
__PACKAGE__->has_many(
|
2013-01-22 21:48:02 +00:00
|
|
|
"projects_2s",
|
2011-12-05 13:29:29 +00:00
|
|
|
"Hydra::Schema::Projects",
|
|
|
|
{ "foreign.owner" => "self.username" },
|
2013-01-22 21:48:02 +00:00
|
|
|
undef,
|
2011-12-05 13:29:29 +00:00
|
|
|
);
|
|
|
|
|
2013-10-14 18:07:26 +00:00
|
|
|
=head2 starredjobs
|
|
|
|
|
|
|
|
Type: has_many
|
|
|
|
|
|
|
|
Related object: L<Hydra::Schema::StarredJobs>
|
|
|
|
|
|
|
|
=cut
|
|
|
|
|
|
|
|
__PACKAGE__->has_many(
|
|
|
|
"starredjobs",
|
|
|
|
"Hydra::Schema::StarredJobs",
|
|
|
|
{ "foreign.username" => "self.username" },
|
|
|
|
undef,
|
|
|
|
);
|
|
|
|
|
2011-12-05 13:29:29 +00:00
|
|
|
=head2 userroles
|
|
|
|
|
|
|
|
Type: has_many
|
|
|
|
|
|
|
|
Related object: L<Hydra::Schema::UserRoles>
|
|
|
|
|
|
|
|
=cut
|
|
|
|
|
|
|
|
__PACKAGE__->has_many(
|
|
|
|
"userroles",
|
|
|
|
"Hydra::Schema::UserRoles",
|
|
|
|
{ "foreign.username" => "self.username" },
|
2013-01-22 21:48:02 +00:00
|
|
|
undef,
|
2010-04-27 13:29:08 +00:00
|
|
|
);
|
|
|
|
|
2013-01-22 21:48:02 +00:00
|
|
|
=head2 projects
|
|
|
|
|
|
|
|
Type: many_to_many
|
|
|
|
|
|
|
|
Composing rels: L</projectmembers> -> project
|
|
|
|
|
|
|
|
=cut
|
|
|
|
|
|
|
|
__PACKAGE__->many_to_many("projects", "projectmembers", "project");
|
|
|
|
|
2010-04-27 13:29:08 +00:00
|
|
|
|
2020-02-06 17:23:47 +00:00
|
|
|
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2020-02-06 12:22:36
|
|
|
|
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4/WZ95asbnGmK+nEHb4sLQ
|
2013-10-16 20:48:03 +00:00
|
|
|
|
|
|
|
my %hint = (
|
|
|
|
columns => [
|
|
|
|
"fullname",
|
|
|
|
"emailaddress",
|
|
|
|
"username"
|
|
|
|
],
|
|
|
|
relations => {
|
|
|
|
userroles => "role"
|
|
|
|
}
|
|
|
|
);
|
|
|
|
|
|
|
|
sub json_hint {
|
|
|
|
return \%hint;
|
|
|
|
}
|
2010-04-27 13:29:08 +00:00
|
|
|
|
|
|
|
1;
|