<?php
global $runnerDbTableInfo;
$runnerDbTableInfo['subscription_suite'] = array(
	'type' => 0,
	'foreignKeys' => array( 
		array(
			'name' => 'fk_subscription_suite_subscription',
			'refTable' => 'subscription',
			'refSchema' => '',
			'del_rule' => 1,
			'upd_rule' => 1,
			'columns' => array( 
				array(
					'column' => 'subscription_id',
					'ref_column' => 'id' 
				) 
			) 
		),
		array(
			'name' => 'fk_subscription_suite_suite',
			'refTable' => 'suite',
			'refSchema' => '',
			'del_rule' => 4,
			'upd_rule' => 1,
			'columns' => array( 
				array(
					'column' => 'suite_id',
					'ref_column' => 'id' 
				) 
			) 
		) 
	),
	'fields' => array( 
		array(
			'name' => 'id',
			'type' => 20,
			'size' => 0,
			'scale' => 0,
			'typeName' => 'bigint',
			'nullable' => false,
			'autoinc' => true,
			'defaultValueSQL' => null,
			'defaultValue' => '' 
		),
		array(
			'name' => 'subscription_id',
			'type' => 20,
			'size' => 0,
			'scale' => 0,
			'typeName' => 'bigint',
			'nullable' => false,
			'autoinc' => false,
			'defaultValueSQL' => null,
			'defaultValue' => '' 
		),
		array(
			'name' => 'suite_id',
			'type' => 20,
			'size' => 0,
			'scale' => 0,
			'typeName' => 'bigint',
			'nullable' => false,
			'autoinc' => false,
			'defaultValueSQL' => null,
			'defaultValue' => '' 
		),
		array(
			'name' => 'suite_status',
			'type' => 200,
			'size' => 30,
			'scale' => 0,
			'typeName' => 'varchar(30)',
			'nullable' => false,
			'autoinc' => false,
			'defaultValueSQL' => '\'ACTIVE\'',
			'defaultValue' => 'ACTIVE' 
		),
		array(
			'name' => 'quantity',
			'type' => 14,
			'size' => 19,
			'scale' => 6,
			'typeName' => 'decimal(19,6)',
			'nullable' => false,
			'autoinc' => false,
			'defaultValueSQL' => '1.000000',
			'defaultValue' => '1.000000' 
		),
		array(
			'name' => 'unit_price',
			'type' => 14,
			'size' => 19,
			'scale' => 4,
			'typeName' => 'decimal(19,4)',
			'nullable' => false,
			'autoinc' => false,
			'defaultValueSQL' => '0.0000',
			'defaultValue' => '0.0000' 
		),
		array(
			'name' => 'discount_amount',
			'type' => 14,
			'size' => 19,
			'scale' => 4,
			'typeName' => 'decimal(19,4)',
			'nullable' => false,
			'autoinc' => false,
			'defaultValueSQL' => '0.0000',
			'defaultValue' => '0.0000' 
		),
		array(
			'name' => 'activated_at',
			'type' => 135,
			'size' => 6,
			'scale' => 0,
			'typeName' => 'datetime(6)',
			'nullable' => true,
			'autoinc' => false,
			'defaultValueSQL' => null,
			'defaultValue' => '' 
		),
		array(
			'name' => 'deactivates_at',
			'type' => 135,
			'size' => 6,
			'scale' => 0,
			'typeName' => 'datetime(6)',
			'nullable' => true,
			'autoinc' => false,
			'defaultValueSQL' => null,
			'defaultValue' => '' 
		),
		array(
			'name' => 'price_locked_until',
			'type' => 135,
			'size' => 6,
			'scale' => 0,
			'typeName' => 'datetime(6)',
			'nullable' => true,
			'autoinc' => false,
			'defaultValueSQL' => null,
			'defaultValue' => '' 
		),
		array(
			'name' => 'created_at',
			'type' => 135,
			'size' => 6,
			'scale' => 0,
			'typeName' => 'datetime(6)',
			'nullable' => false,
			'autoinc' => false,
			'defaultValueSQL' => 'CURRENT_TIMESTAMP(6)',
			'defaultValue' => '' 
		),
		array(
			'name' => 'updated_at',
			'type' => 135,
			'size' => 6,
			'scale' => 0,
			'typeName' => 'datetime(6)',
			'nullable' => false,
			'autoinc' => false,
			'defaultValueSQL' => 'CURRENT_TIMESTAMP(6)',
			'defaultValue' => '' 
		) 
	),
	'primaryKeys' => array( 
		'id' 
	),
	'uniqueFields' => array( 
		 
	),
	'name' => 'subscription_suite' 
);
?>