Bug 14279: Remove CGI::scrolling_list from issues_avg_stats.pl
[koha.git] / Koha / Schema / Result / ClassSource.pm
blobc6de4c48be84f64bbd39b8f006e44d733d56dddf
1 use utf8;
2 package Koha::Schema::Result::ClassSource;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::ClassSource
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<class_sources>
20 =cut
22 __PACKAGE__->table("class_sources");
24 =head1 ACCESSORS
26 =head2 cn_source
28 data_type: 'varchar'
29 default_value: (empty string)
30 is_nullable: 0
31 size: 10
33 =head2 description
35 data_type: 'mediumtext'
36 is_nullable: 1
38 =head2 used
40 data_type: 'tinyint'
41 default_value: 0
42 is_nullable: 0
44 =head2 class_sort_rule
46 data_type: 'varchar'
47 default_value: (empty string)
48 is_foreign_key: 1
49 is_nullable: 0
50 size: 10
52 =cut
54 __PACKAGE__->add_columns(
55 "cn_source",
56 { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
57 "description",
58 { data_type => "mediumtext", is_nullable => 1 },
59 "used",
60 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
61 "class_sort_rule",
63 data_type => "varchar",
64 default_value => "",
65 is_foreign_key => 1,
66 is_nullable => 0,
67 size => 10,
71 =head1 PRIMARY KEY
73 =over 4
75 =item * L</cn_source>
77 =back
79 =cut
81 __PACKAGE__->set_primary_key("cn_source");
83 =head1 RELATIONS
85 =head2 class_sort_rule
87 Type: belongs_to
89 Related object: L<Koha::Schema::Result::ClassSortRule>
91 =cut
93 __PACKAGE__->belongs_to(
94 "class_sort_rule",
95 "Koha::Schema::Result::ClassSortRule",
96 { class_sort_rule => "class_sort_rule" },
97 { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
101 # Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55
102 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2O58Q7wdbfAl6xmiW02PAA
105 # You can replace this text with custom content, and it will be preserved on regeneration