Bug 22521: DBRev 18.12.00.055
[koha.git] / Koha / Schema / Result / BiblioFramework.pm
1 use utf8;
2 package Koha::Schema::Result::BiblioFramework;
3
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7 =head1 NAME
8
9 Koha::Schema::Result::BiblioFramework
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<biblio_framework>
19
20 =cut
21
22 __PACKAGE__->table("biblio_framework");
23
24 =head1 ACCESSORS
25
26 =head2 frameworkcode
27
28   data_type: 'varchar'
29   default_value: (empty string)
30   is_nullable: 0
31   size: 4
32
33 =head2 frameworktext
34
35   data_type: 'varchar'
36   default_value: (empty string)
37   is_nullable: 0
38   size: 255
39
40 =cut
41
42 __PACKAGE__->add_columns(
43   "frameworkcode",
44   { data_type => "varchar", default_value => "", is_nullable => 0, size => 4 },
45   "frameworktext",
46   { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
47 );
48
49 =head1 PRIMARY KEY
50
51 =over 4
52
53 =item * L</frameworkcode>
54
55 =back
56
57 =cut
58
59 __PACKAGE__->set_primary_key("frameworkcode");
60
61
62 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
63 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KY1w7J/5cBsz9VV7QEBKPw
64
65 # FIXME This should not be needed, we need to add the FK at DB level
66 # It cannot be done now because the default framework (frameworkcode=='')
67 # does not exist in DB
68 __PACKAGE__->has_many(
69     "marc_tag_structure",
70     "Koha::Schema::Result::MarcTagStructure",
71     { "foreign.frameworkcode" => "self.frameworkcode"},
72     { cascade_copy => 0, cascade_delete => 0 },
73 );
74
75 # You can replace this text with custom content, and it will be preserved on regeneration
76 1;