use utf8; package Koha::Schema::Result::Currency; # Created by DBIx::Class::Schema::Loader # DO NOT MODIFY THE FIRST PART OF THIS FILE =head1 NAME Koha::Schema::Result::Currency =cut use strict; use warnings; use base 'DBIx::Class::Core'; =head1 TABLE: C =cut __PACKAGE__->table("currency"); =head1 ACCESSORS =head2 currency data_type: 'varchar' default_value: (empty string) is_nullable: 0 size: 10 =head2 symbol data_type: 'varchar' is_nullable: 1 size: 5 =head2 isocode data_type: 'varchar' is_nullable: 1 size: 5 =head2 timestamp data_type: 'timestamp' datetime_undef_if_invalid: 1 default_value: current_timestamp is_nullable: 0 =head2 rate data_type: 'float' is_nullable: 1 size: [15,5] =head2 active data_type: 'tinyint' is_nullable: 1 =head2 archived data_type: 'tinyint' default_value: 0 is_nullable: 1 =head2 p_sep_by_space data_type: 'tinyint' default_value: 0 is_nullable: 1 =cut __PACKAGE__->add_columns( "currency", { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, "symbol", { data_type => "varchar", is_nullable => 1, size => 5 }, "isocode", { data_type => "varchar", is_nullable => 1, size => 5 }, "timestamp", { data_type => "timestamp", datetime_undef_if_invalid => 1, default_value => \"current_timestamp", is_nullable => 0, }, "rate", { data_type => "float", is_nullable => 1, size => [15, 5] }, "active", { data_type => "tinyint", is_nullable => 1 }, "archived", { data_type => "tinyint", default_value => 0, is_nullable => 1 }, "p_sep_by_space", { data_type => "tinyint", default_value => 0, is_nullable => 1 }, ); =head1 PRIMARY KEY =over 4 =item * L =back =cut __PACKAGE__->set_primary_key("currency"); =head1 RELATIONS =head2 aqbooksellers_invoiceprices Type: has_many Related object: L =cut __PACKAGE__->has_many( "aqbooksellers_invoiceprices", "Koha::Schema::Result::Aqbookseller", { "foreign.invoiceprice" => "self.currency" }, { cascade_copy => 0, cascade_delete => 0 }, ); =head2 aqbooksellers_listprices Type: has_many Related object: L =cut __PACKAGE__->has_many( "aqbooksellers_listprices", "Koha::Schema::Result::Aqbookseller", { "foreign.listprice" => "self.currency" }, { cascade_copy => 0, cascade_delete => 0 }, ); =head2 aqorders Type: has_many Related object: L =cut __PACKAGE__->has_many( "aqorders", "Koha::Schema::Result::Aqorder", { "foreign.currency" => "self.currency" }, { cascade_copy => 0, cascade_delete => 0 }, ); =head2 aqorders_invoice_currencies Type: has_many Related object: L =cut __PACKAGE__->has_many( "aqorders_invoice_currencies", "Koha::Schema::Result::Aqorder", { "foreign.invoice_currency" => "self.currency" }, { cascade_copy => 0, cascade_delete => 0 }, ); # Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-03-06 16:45:06 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FmTABTXRmT/kwlkKkO/0pw sub koha_object_class { 'Koha::Acquisition::Currency'; } sub koha_objects_class { 'Koha::Acquisition::Currencies'; } 1;