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

(-)a/Koha/Schema/Result/Aqorder.pm (-20 / +19 lines)
Lines 143-149 __PACKAGE__->table("aqorders"); Link Here
143
143
144
  data_type: 'timestamp'
144
  data_type: 'timestamp'
145
  datetime_undef_if_invalid: 1
145
  datetime_undef_if_invalid: 1
146
  default_value: current_timestamp
146
  default_value: 'current_timestamp()'
147
  is_nullable: 0
147
  is_nullable: 0
148
148
149
=head2 rrp
149
=head2 rrp
Lines 271-288 __PACKAGE__->table("aqorders"); Link Here
271
  data_type: 'tinyint'
271
  data_type: 'tinyint'
272
  is_nullable: 1
272
  is_nullable: 1
273
273
274
=head2 claims_count
275
276
  data_type: 'integer'
277
  default_value: 0
278
  is_nullable: 1
279
280
=head2 claimed_date
281
282
  data_type: 'date'
283
  datetime_undef_if_invalid: 1
284
  is_nullable: 1
285
286
=head2 subscriptionid
274
=head2 subscriptionid
287
275
288
  data_type: 'integer'
276
  data_type: 'integer'
Lines 371-377 __PACKAGE__->add_columns( Link Here
371
  {
359
  {
372
    data_type => "timestamp",
360
    data_type => "timestamp",
373
    datetime_undef_if_invalid => 1,
361
    datetime_undef_if_invalid => 1,
374
    default_value => \"current_timestamp",
362
    default_value => "current_timestamp()",
375
    is_nullable => 0,
363
    is_nullable => 0,
376
  },
364
  },
377
  "rrp",
365
  "rrp",
Lines 416-425 __PACKAGE__->add_columns( Link Here
416
  { data_type => "varchar", is_nullable => 1, size => 10 },
404
  { data_type => "varchar", is_nullable => 1, size => 10 },
417
  "uncertainprice",
405
  "uncertainprice",
418
  { data_type => "tinyint", is_nullable => 1 },
406
  { data_type => "tinyint", is_nullable => 1 },
419
  "claims_count",
420
  { data_type => "integer", default_value => 0, is_nullable => 1 },
421
  "claimed_date",
422
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
423
  "subscriptionid",
407
  "subscriptionid",
424
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
408
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
425
  "parent_ordernumber",
409
  "parent_ordernumber",
Lines 470-475 __PACKAGE__->has_many( Link Here
470
  { cascade_copy => 0, cascade_delete => 0 },
454
  { cascade_copy => 0, cascade_delete => 0 },
471
);
455
);
472
456
457
=head2 aqorders_claims
458
459
Type: has_many
460
461
Related object: L<Koha::Schema::Result::AqordersClaim>
462
463
=cut
464
465
__PACKAGE__->has_many(
466
  "aqorders_claims",
467
  "Koha::Schema::Result::AqordersClaim",
468
  { "foreign.ordernumber" => "self.ordernumber" },
469
  { cascade_copy => 0, cascade_delete => 0 },
470
);
471
473
=head2 aqorders_items
472
=head2 aqorders_items
474
473
475
Type: has_many
474
Type: has_many
Lines 661-668 Composing rels: L</aqorder_users> -> borrowernumber Link Here
661
__PACKAGE__->many_to_many("borrowernumbers", "aqorder_users", "borrowernumber");
660
__PACKAGE__->many_to_many("borrowernumbers", "aqorder_users", "borrowernumber");
662
661
663
662
664
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-08-31 11:51:37
663
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-12-17 14:58:50
665
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GQEXetlivZm7buQohl8m4A
664
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:B/pTQKIu8guDBN3uLBkI6Q
666
665
667
__PACKAGE__->belongs_to(
666
__PACKAGE__->belongs_to(
668
  "basket",
667
  "basket",
(-)a/Koha/Schema/Result/AqordersClaim.pm (-1 / +96 lines)
Line 0 Link Here
0
- 
1
use utf8;
2
package Koha::Schema::Result::AqordersClaim;
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::AqordersClaim
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<aqorders_claims>
19
20
=cut
21
22
__PACKAGE__->table("aqorders_claims");
23
24
=head1 ACCESSORS
25
26
=head2 id
27
28
  data_type: 'integer'
29
  is_auto_increment: 1
30
  is_nullable: 0
31
32
=head2 ordernumber
33
34
  data_type: 'integer'
35
  is_foreign_key: 1
36
  is_nullable: 0
37
38
=head2 claimed_on
39
40
  data_type: 'timestamp'
41
  datetime_undef_if_invalid: 1
42
  default_value: 'current_timestamp()'
43
  is_nullable: 0
44
45
=cut
46
47
__PACKAGE__->add_columns(
48
  "id",
49
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
50
  "ordernumber",
51
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
52
  "claimed_on",
53
  {
54
    data_type => "timestamp",
55
    datetime_undef_if_invalid => 1,
56
    default_value => "current_timestamp()",
57
    is_nullable => 0,
58
  },
59
);
60
61
=head1 PRIMARY KEY
62
63
=over 4
64
65
=item * L</id>
66
67
=back
68
69
=cut
70
71
__PACKAGE__->set_primary_key("id");
72
73
=head1 RELATIONS
74
75
=head2 ordernumber
76
77
Type: belongs_to
78
79
Related object: L<Koha::Schema::Result::Aqorder>
80
81
=cut
82
83
__PACKAGE__->belongs_to(
84
  "ordernumber",
85
  "Koha::Schema::Result::Aqorder",
86
  { ordernumber => "ordernumber" },
87
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
88
);
89
90
91
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-12-16 16:29:06
92
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:m+0w++NPVQBiveXToQB8wQ
93
94
95
# You can replace this text with custom code or comments, and it will be preserved on regeneration
96
1;

Return to bug 24161