<?php

namespace {
/*
 * This file is part of con4gis,
 * the gis-kit for Contao CMS.
 *
 * @package    con4gis
 * @version    6
 * @author     con4gis contributors (see "authors.txt")
 * @license    LGPL-3.0-or-later
 * @copyright  Küstenschmiede GmbH Software & Design
 * @link       https://www.con4gis.org
 */
$GLOBALS['TL_DCA']['tl_c4g_activationkey'] = array(
    //___CONFIG________________________________________________________________________________________________________________________________
    'config' => array('dataContainer' => 'Table', 'closed' => \true, 'notEditable' => \true, 'sql' => array('keys' => array('id' => 'primary'))),
    //___LISTS________________________________________________________________________________________________________________________________
    'list' => array('sorting' => array('mode' => 2, 'fields' => array('tstamp DESC', 'id DESC'), 'panelLayout' => 'filter;sort,search,limit'), 'label' => array('fields' => array('tstamp', 'text'), 'format' => '<span style="color:#b3b3b3;padding-right:3px">[%s]</span> %s', 'maxCharacters' => 96), 'global_operations' => array(), 'operations' => array()),
    //___FIELDS________________________________________________________________________________________________________________________________
    'fields' => array('id' => array('sql' => "int(10) unsigned NOT NULL auto_increment"), 'tstamp' => array('sql' => "int(10) unsigned NOT NULL default '0'"), 'activationkey' => array('sql' => "varchar(255) NOT NULL default ''"), 'expiration_date' => array('sql' => "int(10) NOT NULL default '0'"), 'key_action' => array('sql' => "varchar(255) NOT NULL default '0'"), 'used_by' => array('sql' => "int(255) NOT NULL default '0'")),
);
}
