forked from lix-project/hydra
cec3201720
releases as a dynamic view on the database was misguided, since doing thing like adding a new job to a release set will invalidate all old releases. So we rename release sets to views, and we'll reintroduce releases as separate, static entities in the database.
58 lines
1.1 KiB
Perl
58 lines
1.1 KiB
Perl
package Hydra::Schema::Users;
|
|
|
|
use strict;
|
|
use warnings;
|
|
|
|
use base 'DBIx::Class';
|
|
|
|
__PACKAGE__->load_components("Core");
|
|
__PACKAGE__->table("Users");
|
|
__PACKAGE__->add_columns(
|
|
"username",
|
|
{
|
|
data_type => "text",
|
|
default_value => undef,
|
|
is_nullable => 0,
|
|
size => undef,
|
|
},
|
|
"fullname",
|
|
{
|
|
data_type => "text",
|
|
default_value => undef,
|
|
is_nullable => 1,
|
|
size => undef,
|
|
},
|
|
"emailaddress",
|
|
{
|
|
data_type => "text",
|
|
default_value => undef,
|
|
is_nullable => 0,
|
|
size => undef,
|
|
},
|
|
"password",
|
|
{
|
|
data_type => "text",
|
|
default_value => undef,
|
|
is_nullable => 0,
|
|
size => undef,
|
|
},
|
|
);
|
|
__PACKAGE__->set_primary_key("username");
|
|
__PACKAGE__->has_many(
|
|
"projects",
|
|
"Hydra::Schema::Projects",
|
|
{ "foreign.owner" => "self.username" },
|
|
);
|
|
__PACKAGE__->has_many(
|
|
"userroles",
|
|
"Hydra::Schema::UserRoles",
|
|
{ "foreign.username" => "self.username" },
|
|
);
|
|
|
|
|
|
# Created by DBIx::Class::Schema::Loader v0.04999_06 @ 2009-10-15 23:14:39
|
|
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qH+qBI3xxQgTNf3v7E3sDw
|
|
|
|
|
|
# You can replace this text with custom content, and it will be preserved on regeneration
|
|
1;
|