# Database definition file for 'glinks_Category' table
# Last updated: Sun Jun 10 22:17:08 2012
# Created by GT::SQL::Table $Revision: 1.274 $
{
	'ai' => 'ID',
	'cols' => {
		'ID' => {
			'form_display' => 'ID',
			'form_size' => '10',
			'form_type' => 'TEXT',
			'not_null' => '1',
			'pos' => '1',
			'type' => 'INT',
			'unsigned' => '1'
		},
		'Name' => {
			'form_display' => 'Name',
			'form_size' => '20',
			'form_type' => 'TEXT',
			'not_null' => '1',
			'pos' => '2',
			'regex' => '^[^/]+$',
			'size' => '255',
			'type' => 'VARCHAR',
			'weight' => '3'
		},
		'FatherID' => {
			'default' => '0',
			'form_display' => 'Parent Category ID',
			'form_size' => '1',
			'form_type' => 'TEXT',
			'not_null' => '1',
			'pos' => '3',
			'type' => 'INT',
			'unsigned' => '1'
		},
		'CatRoot' => {
			'default' => '0',
			'form_size' => '10',
			'form_type' => 'hidden',
			'not_null' => '1',
			'pos' => '4',
			'type' => 'INT',
			'unsigned' => '1'
		},
		'CatDepth' => {
			'default' => '0',
			'form_size' => '10',
			'form_type' => 'hidden',
			'not_null' => '1',
			'pos' => '5',
			'type' => 'INT',
			'unsigned' => '1'
		},
		'Full_Name' => {
			'form_display' => 'Full Name',
			'form_size' => '20',
			'form_type' => 'TEXT',
			'not_null' => '1',
			'pos' => '6',
			'size' => '255',
			'type' => 'VARCHAR'
		},
		'Description' => {
			'form_display' => 'Description',
			'form_size' => '30',
			'form_type' => 'TEXTAREA',
			'pos' => '7',
			'type' => 'LONGTEXT',
			'weight' => '1'
		},
		'Meta_Description' => {
			'form_display' => 'Meta Description',
			'form_size' => '30',
			'form_type' => 'TEXTAREA',
			'pos' => '8',
			'type' => 'LONGTEXT'
		},
		'Meta_Keywords' => {
			'form_display' => 'Meta Keywords',
			'form_size' => '30',
			'form_type' => 'TEXTAREA',
			'pos' => '9',
			'type' => 'LONGTEXT'
		},
		'Header' => {
			'form_display' => 'Header',
			'form_size' => '30',
			'form_type' => 'TEXTAREA',
			'pos' => '10',
			'type' => 'LONGTEXT'
		},
		'Footer' => {
			'form_display' => 'Footer',
			'form_size' => '30',
			'form_type' => 'TEXTAREA',
			'pos' => '11',
			'type' => 'LONGTEXT'
		},
		'Category_Template' => {
			'form_display' => 'Category Template',
			'form_size' => '20',
			'form_type' => 'TEXT',
			'pos' => '12',
			'size' => '20',
			'type' => 'VARCHAR'
		},
		'Number_of_Links' => {
			'default' => '0',
			'form_display' => 'Number of Links',
			'form_size' => '10',
			'form_type' => 'TEXT',
			'not_null' => '1',
			'pos' => '13',
			'type' => 'INT'
		},
		'Direct_Links' => {
			'default' => '0',
			'form_display' => 'Links (without subcats)',
			'form_size' => '10',
			'form_type' => 'TEXT',
			'not_null' => '1',
			'pos' => '14',
			'type' => 'INT'
		},
		'Has_New_Links' => {
			'default' => 'No',
			'form_display' => 'Has New Links',
			'form_type' => 'SELECT',
			'not_null' => '1',
			'pos' => '15',
			'type' => 'ENUM',
			'values' => [
				'No',
				'Yes'
			]
		},
		'Has_Changed_Links' => {
			'default' => 'No',
			'form_display' => 'Has Changed Links',
			'form_type' => 'SELECT',
			'not_null' => '1',
			'pos' => '16',
			'type' => 'ENUM',
			'values' => [
				'No',
				'Yes'
			]
		},
		'Newest_Link' => {
			'form_display' => 'Newest Link',
			'form_size' => '20',
			'form_type' => 'DATE',
			'pos' => '17',
			'type' => 'DATE'
		},
		'Timestmp' => {
			'default' => 'CURRENT_TIMESTAMP',
			'form_display' => 'Timestamp',
			'form_size' => '20',
			'form_type' => 'DATE',
			'pos' => '18',
			'time_check' => '1',
			'type' => 'TIMESTAMP'
		},
		'Payment_Mode' => {
			'default' => '0',
			'form_display' => 'Payment Mode',
			'form_names' => [
				'0',
				'1',
				'2',
				'3'
			],
			'form_size' => '1',
			'form_type' => 'SELECT',
			'form_values' => [
				'Use global settings',
				'Not accepted',
				'Optional',
				'Required'
			],
			'not_null' => '1',
			'pos' => '19',
			'type' => 'TINYINT'
		},
		'Payment_Description' => {
			'form_display' => 'Payment Description',
			'form_size' => '30',
			'form_type' => 'TEXTAREA',
			'pos' => '20',
			'type' => 'LONGTEXT'
		},
		'Cat_Pos' => {
			'pos' => '21',
			'type' => 'INT'
		},
		'Featured_Links' => {
			'file_max_size' => '',
			'file_save_in' => '',
			'file_save_scheme' => 'HASHED',
			'file_save_url' => '',
			'form_display' => 'Featured Links',
			'form_size' => [
				'50',
				'6'
			],
			'form_type' => 'TEXTAREA',
			'not_null' => '0',
			'pos' => '22',
			'regex' => '',
			'size' => '255',
			'type' => 'VARCHAR',
			'weight' => ''
		}
	},
	'fk' => {
		'glinks_Category' => {
			'FatherID' => 'ID'
		}
	},
	'fk_tables' => [
		'glinks_Category_tree',
		'glinks_Category',
		'glinks_CatPrice',
		'glinks_CatLinks',
		'glinks_CatRelations',
		'glinks_Editors',
		'glinks_NewsletterSubscription'
	],
	'index' => {
		'c_p' => [
			'Payment_Mode'
		],
		'catndx' => [
			'Name'
		],
		'fthrindex' => [
			'FatherID'
		],
		'namndx' => [
			'Full_Name'
		],
		'rootndx' => [
			'CatRoot'
		]
	},
	'pk' => [
		'ID'
	],
	'subclass' => {
		'html' => {
			'glinks_Category' => 'Links::HTML::Category'
		},
		'relation' => {},
		'table' => {
			'glinks_Category' => 'Links::Table::Category'
		}
	},
	'tree' => '1',
	'unique' => {}
};

# vim:syn=perl:ts=4:noet
