View | Details | Raw Unified | Return to bug 11401
Collapse All | Expand All

(-)a/Koha/Schema/Result/Borrower.pm (-1 / +15 lines)
Lines 726-731 __PACKAGE__->has_many( Link Here
726
  { cascade_copy => 0, cascade_delete => 0 },
726
  { cascade_copy => 0, cascade_delete => 0 },
727
);
727
);
728
728
729
=head2 borrower_syncs
730
731
Type: has_many
732
733
Related object: L<Koha::Schema::Result::BorrowerSync>
734
735
=cut
736
737
__PACKAGE__->has_many(
738
  "borrower_syncs",
739
  "Koha::Schema::Result::BorrowerSync",
740
  { "foreign.borrowernumber" => "self.borrowernumber" },
741
  { cascade_copy => 0, cascade_delete => 0 },
742
);
743
729
=head2 branchcode
744
=head2 branchcode
730
745
731
Type: belongs_to
746
Type: belongs_to
Lines 1105-1110 __PACKAGE__->many_to_many("courses", "course_instructors", "course"); Link Here
1105
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-08-18 13:01:05
1120
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-08-18 13:01:05
1106
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZzZiKYN4b/LuEARX4rawhA
1121
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZzZiKYN4b/LuEARX4rawhA
1107
1122
1108
1109
# You can replace this text with custom content, and it will be preserved on regeneration
1123
# You can replace this text with custom content, and it will be preserved on regeneration
1110
1;
1124
1;
(-)a/Koha/Schema/Result/BorrowerSync.pm (-1 / +122 lines)
Line 0 Link Here
0
- 
1
use utf8;
2
package Koha::Schema::Result::BorrowerSync;
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::BorrowerSync
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<borrower_sync>
19
20
=cut
21
22
__PACKAGE__->table("borrower_sync");
23
24
=head1 ACCESSORS
25
26
=head2 borrowersyncid
27
28
  data_type: 'integer'
29
  is_auto_increment: 1
30
  is_nullable: 0
31
32
=head2 borrowernumber
33
34
  data_type: 'integer'
35
  is_foreign_key: 1
36
  is_nullable: 0
37
38
=head2 synctype
39
40
  data_type: 'varchar'
41
  is_nullable: 0
42
  size: 32
43
44
=head2 sync
45
46
  data_type: 'tinyint'
47
  default_value: 0
48
  is_nullable: 0
49
50
=head2 syncstatus
51
52
  data_type: 'varchar'
53
  is_nullable: 1
54
  size: 10
55
56
=head2 lastsync
57
58
  data_type: 'varchar'
59
  is_nullable: 1
60
  size: 50
61
62
=head2 hashed_pin
63
64
  data_type: 'varchar'
65
  is_nullable: 1
66
  size: 64
67
68
=cut
69
70
__PACKAGE__->add_columns(
71
  "borrowersyncid",
72
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
73
  "borrowernumber",
74
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
75
  "synctype",
76
  { data_type => "varchar", is_nullable => 0, size => 32 },
77
  "sync",
78
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
79
  "syncstatus",
80
  { data_type => "varchar", is_nullable => 1, size => 10 },
81
  "lastsync",
82
  { data_type => "varchar", is_nullable => 1, size => 50 },
83
  "hashed_pin",
84
  { data_type => "varchar", is_nullable => 1, size => 64 },
85
);
86
87
=head1 PRIMARY KEY
88
89
=over 4
90
91
=item * L</borrowersyncid>
92
93
=back
94
95
=cut
96
97
__PACKAGE__->set_primary_key("borrowersyncid");
98
99
=head1 RELATIONS
100
101
=head2 borrowernumber
102
103
Type: belongs_to
104
105
Related object: L<Koha::Schema::Result::Borrower>
106
107
=cut
108
109
__PACKAGE__->belongs_to(
110
  "borrowernumber",
111
  "Koha::Schema::Result::Borrower",
112
  { borrowernumber => "borrowernumber" },
113
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
114
);
115
116
117
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-06-04 14:43:23
118
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7kXC+RmwDYY6S/uVpIfiJg
119
120
121
# You can replace this text with custom code or comments, and it will be preserved on regeneration
122
1;

Return to bug 11401