# jetformbuilder/3.6.6/modules/gateways/db-models/payer-shipping-model.php

JetFormBuilder — Dynamic Blocks Form Builder, version 3.6.6. 59 lines.

- Page: https://pluginprobe.com/plugins/jetformbuilder/3.6.6/code/modules/gateways/db-models/payer-shipping-model.php
- Raw: https://pluginprobe.com/plugins/jetformbuilder/3.6.6/raw/modules/gateways/db-models/payer-shipping-model.php
- Modified: 2023-11-20T11:46:54+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/jetformbuilder/3.6.6/code/modules/gateways/db-models/payer-shipping-model.php#L10-L20`.

```php
<?php


namespace JFB_Modules\Gateways\Db_Models;

use Jet_Form_Builder\Db_Queries\Base_Db_Model;
use JFB_Modules\Gateways\Db_Models\Constraints\Payer_Model_Constraint;

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
	die;
}

class Payer_Shipping_Model extends Base_Db_Model {

	/**
	 * @inheritDoc
	 */
	public static function table_name(): string {
		return 'payers_shipping';
	}

	/**
	 * @inheritDoc
	 */
	public static function schema(): array {
		return array(
			'id'             => 'bigint(20) NOT NULL AUTO_INCREMENT',
			'payer_id'       => 'bigint(20)',
			'full_name'      => 'varchar(255)',
			'address_line_1' => 'varchar(255)',
			'address_line_2' => 'varchar(255)',
			'admin_area_2'   => 'varchar(255)',
			'admin_area_1'   => 'varchar(255)',
			'postal_code'    => 'varchar(100)',
			'country_code'   => 'varchar(100)',
			'created_at'     => 'TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP',
			'updated_at'     => 'TIMESTAMP NOT NULL',
		);
	}

	/**
	 * @inheritDoc
	 */
	public static function schema_keys(): array {
		return array(
			'id'       => 'primary key',
			'payer_id' => 'index',
		);
	}

	public function foreign_relations(): array {
		return array(
			new Payer_Model_Constraint(),
		);
	}

}

```
