Bug 8798: (follow-up) update schema files
[koha.git] / Koha / Schema / Result / AqordersItem.pm
1 package Koha::Schema::Result::AqordersItem;
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::AqordersItem
15
16 =cut
17
18 __PACKAGE__->table("aqorders_items");
19
20 =head1 ACCESSORS
21
22 =head2 ordernumber
23
24   data_type: 'integer'
25   is_foreign_key: 1
26   is_nullable: 0
27
28 =head2 itemnumber
29
30   data_type: 'integer'
31   is_nullable: 0
32
33 =head2 timestamp
34
35   data_type: 'timestamp'
36   default_value: current_timestamp
37   is_nullable: 0
38
39 =cut
40
41 __PACKAGE__->add_columns(
42   "ordernumber",
43   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
44   "itemnumber",
45   { data_type => "integer", is_nullable => 0 },
46   "timestamp",
47   {
48     data_type     => "timestamp",
49     default_value => \"current_timestamp",
50     is_nullable   => 0,
51   },
52 );
53 __PACKAGE__->set_primary_key("itemnumber");
54
55 =head1 RELATIONS
56
57 =head2 ordernumber
58
59 Type: belongs_to
60
61 Related object: L<Koha::Schema::Result::Aqorder>
62
63 =cut
64
65 __PACKAGE__->belongs_to(
66   "ordernumber",
67   "Koha::Schema::Result::Aqorder",
68   { ordernumber => "ordernumber" },
69   { on_delete => "CASCADE", on_update => "CASCADE" },
70 );
71
72
73 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
74 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9KFzTfBzan4H1BxT1suyXA
75
76
77 # You can replace this text with custom content, and it will be preserved on regeneration
78 1;