
#!/usr/bin/perl
# NOTE - THIS FILE GENERATED BY DBIxGenerate.pl.
# To regenerate this file, simply call the script, and it'll dump the DBIx files into the working directory.

=head1 NAME

WWW::Shopify::Model::DBIx::Schema::Result::Model::Order::Fulfillment - Database Object for WWW::Shopify::Model::Order::Fulfillment.

=cut

=head1 NOTICE

This is a generated class, made by WWW::Shopify/Utils/DBIxGenerate.pl. Do not modify.

=cut

use strict;
use warnings;


		package WWW::Shopify::Model::DBIx::Schema::Result::Model::Order::Fulfillment;
		use base qw/DBIx::Class::Core/;
		
		__PACKAGE__->load_components(qw/InflateColumn::DateTime/);
		__PACKAGE__->table('shopify_orderfulfillments');	
		__PACKAGE__->add_columns('line_items', { data_type => 'int', is_nullable => 1 },
			'status', { data_type => 'varchar(255)', is_nullable => 1 },
			'order_id', { data_type => 'int', is_nullable => 1 },
			'service', { data_type => 'varchar(255)', is_nullable => 1 },
			'tracking_number', { data_type => 'varchar(255)', is_nullable => 1 },
			'created_at', { data_type => 'datetime', is_nullable => 1 },
			'updated_at', { data_type => 'datetime', is_nullable => 1 },
			'id', { data_type => 'int',  },
			'tracking_company', { data_type => 'varchar(255)', is_nullable => 1 },
			'shop_id', { data_type => 'int', is_nullable => 1 });
		__PACKAGE__->belongs_to(shop => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Shop', 'shop_id');
		__PACKAGE__->set_primary_key('id');
		__PACKAGE__->belongs_to(order => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Order', 'order_id');
		__PACKAGE__->has_many(fulfillmentsline_items => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::FulfillmentLineItem', 'fulfillment_id');
		__PACKAGE__->many_to_many(line_items => 'fulfillmentsline_items', 'line_item');
		__PACKAGE__->has_one(receipt => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Order::Fulfillment::Receipt', 'parent_id');
		sub represents($) { return 'WWW::Shopify::Model::Order::Fulfillment'; }
		sub parent_variable($) { return 'order_id'; }
	

1;