Bug 8798: DBIx::Class base classes for all Koha tables
[koha_fer] / Koha / Schema / Result / MatchpointComponentNorm.pm
1 package Koha::Schema::Result::MatchpointComponentNorm;
2
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
5
6 use strict;
7 use warnings;
8
9 use base 'DBIx::Class::Core';
10
11
12 =head1 NAME
13
14 Koha::Schema::Result::MatchpointComponentNorm
15
16 =cut
17
18 __PACKAGE__->table("matchpoint_component_norms");
19
20 =head1 ACCESSORS
21
22 =head2 matchpoint_component_id
23
24   data_type: 'integer'
25   is_foreign_key: 1
26   is_nullable: 0
27
28 =head2 sequence
29
30   accessor: undef
31   data_type: 'integer'
32   default_value: 0
33   is_nullable: 0
34
35 =head2 norm_routine
36
37   data_type: 'varchar'
38   default_value: (empty string)
39   is_nullable: 0
40   size: 50
41
42 =cut
43
44 __PACKAGE__->add_columns(
45   "matchpoint_component_id",
46   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
47   "sequence",
48   {
49     accessor      => undef,
50     data_type     => "integer",
51     default_value => 0,
52     is_nullable   => 0,
53   },
54   "norm_routine",
55   { data_type => "varchar", default_value => "", is_nullable => 0, size => 50 },
56 );
57
58 =head1 RELATIONS
59
60 =head2 matchpoint_component
61
62 Type: belongs_to
63
64 Related object: L<Koha::Schema::Result::MatchpointComponent>
65
66 =cut
67
68 __PACKAGE__->belongs_to(
69   "matchpoint_component",
70   "Koha::Schema::Result::MatchpointComponent",
71   { matchpoint_component_id => "matchpoint_component_id" },
72   { on_delete => "CASCADE", on_update => "CASCADE" },
73 );
74
75
76 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
77 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bfVMJiFqfjhc8fSKXNEtBA
78
79
80 # You can replace this text with custom content, and it will be preserved on regeneration
81 1;