<?php
use SabaiApps\Directories\Application;

$tables = array(
	'notification_notification' => array(
		'fields'         => array(
			'notification_event'   => array(
				'type'    => Application::COLUMN_VARCHAR,
				'notnull' => true,
				'length'  => 50,
				'default' => '',
			),
			'notification_system'  => array(
				'type'     => Application::COLUMN_INTEGER,
				'unsigned' => true,
				'notnull'  => true,
				'length'   => 1,
				'default'  => 0,
			),
			'notification_active'  => array(
				'type'     => Application::COLUMN_INTEGER,
				'unsigned' => true,
				'notnull'  => true,
				'length'   => 1,
				'default'  => 0,
			),
			'notification_data'    => array(
				'type'    => Application::COLUMN_TEXT,
				'notnull' => true,
			),
			'notification_id'      => array(
				'autoincrement' => true,
				'type'          => Application::COLUMN_INTEGER,
				'unsigned'      => true,
				'notnull'       => true,
				'length'        => 10,
				'default'       => 0,
			),
			'notification_created' => array(
				'type'     => Application::COLUMN_INTEGER,
				'unsigned' => true,
				'notnull'  => true,
				'length'   => 10,
				'default'  => 0,
			),
			'notification_updated' => array(
				'type'     => Application::COLUMN_INTEGER,
				'unsigned' => true,
				'notnull'  => true,
				'length'   => 10,
				'default'  => 0,
			),
		),
		'indexes'        => array(
			'notification_id'     => array(
				'primary' => true,
				'fields'  => array(
					'notification_id' => array( 'sorting' => 'ascending' ),
				),
			),
			'notification_event'  => array(
				'fields' => array(
					'notification_event' => array(),
				),
			),
			'notification_system' => array(
				'fields' => array(
					'notification_system' => array(),
				),
			),
			'notification_active' => array(
				'fields' => array(
					'notification_active' => array(),
				),
			),
		),
		'initialization' => array(
			'insert' => array(),
		),
	),
);
return array(
	'charset'     => '',
	'description' => '',
	'tables'      => $tables,
);
