Bug 32154: DBIC schema

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Tomás Cohen Arazi 2022-11-16 09:24:09 -03:00
parent 6e36b2c107
commit 689446fda0
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -23,6 +23,14 @@ __PACKAGE__->table("erm_user_roles");
=head1 ACCESSORS
=head2 user_role_id
data_type: 'integer'
is_auto_increment: 1
is_nullable: 0
primary key
=head2 agreement_id
data_type: 'integer'
@ -58,6 +66,8 @@ role of the user
=cut
__PACKAGE__->add_columns(
"user_role_id",
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
"agreement_id",
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
"license_id",
@ -68,6 +78,18 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", is_nullable => 0, size => 80 },
);
=head1 PRIMARY KEY
=over 4
=item * L</user_role_id>
=back
=cut
__PACKAGE__->set_primary_key("user_role_id");
=head1 RELATIONS
=head2 agreement
@ -126,8 +148,8 @@ __PACKAGE__->belongs_to(
);
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-11-01 07:44:13
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RkK5cQWFEmcrDioAfjOVWQ
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-11-16 12:23:11
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HbkogqUuTLQCaUY1VrT6Hw
sub koha_object_class {
'Koha::ERM::UserRole';