1 package Koha::Schema::Result::CourseItem;
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 use base 'DBIx::Class::Core';
14 Koha::Schema::Result::CourseItem
18 __PACKAGE__->table("course_items");
63 extra: {list => ["yes","no"]}
68 data_type: 'timestamp'
69 default_value: current_timestamp
74 __PACKAGE__->add_columns(
76 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
78 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
80 { data_type => "varchar", is_nullable => 1, size => 10 },
82 { data_type => "varchar", is_nullable => 1, size => 10 },
84 { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
86 { data_type => "varchar", is_nullable => 1, size => 80 },
90 default_value => "no",
91 extra => { list => ["yes", "no"] },
96 data_type => "timestamp",
97 default_value => \"current_timestamp",
101 __PACKAGE__->set_primary_key("ci_id");
102 __PACKAGE__->add_unique_constraint("itemnumber", ["itemnumber"]);
110 Related object: L<Koha::Schema::Result::Branch>
114 __PACKAGE__->belongs_to(
116 "Koha::Schema::Result::Branch",
117 { branchcode => "holdingbranch" },
118 { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
125 Related object: L<Koha::Schema::Result::Item>
129 __PACKAGE__->belongs_to(
131 "Koha::Schema::Result::Item",
132 { itemnumber => "itemnumber" },
133 { on_delete => "CASCADE", on_update => "CASCADE" },
137 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
138 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BAqW3ImuEzBoIMWAeM12qA
141 # You can replace this text with custom content, and it will be preserved on regeneration