Release
This commit is contained in:
45
contao/dca/tl_timed_download.php
Normal file
45
contao/dca/tl_timed_download.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use Contao\DC_Table;
|
||||
|
||||
$GLOBALS['TL_DCA']['tl_timed_download'] = [
|
||||
'config' => [
|
||||
'dataContainer' => DC_Table::class,
|
||||
'sql' => [
|
||||
'keys' => [
|
||||
'id' => 'primary',
|
||||
'token' => 'unique',
|
||||
'expires_at' => 'index',
|
||||
'form_id' => 'index',
|
||||
],
|
||||
],
|
||||
],
|
||||
'fields' => [
|
||||
'id' => [
|
||||
'sql' => 'int(10) unsigned NOT NULL auto_increment',
|
||||
],
|
||||
'tstamp' => [
|
||||
'sql' => 'int(10) unsigned NOT NULL default 0',
|
||||
],
|
||||
'token' => [
|
||||
'sql' => "varchar(64) NOT NULL default ''",
|
||||
],
|
||||
'file_uuid' => [
|
||||
'sql' => 'binary(16) NOT NULL',
|
||||
],
|
||||
'expires_at' => [
|
||||
'sql' => 'int(10) unsigned NOT NULL default 0',
|
||||
],
|
||||
'form_id' => [
|
||||
'sql' => 'int(10) unsigned NOT NULL default 0',
|
||||
],
|
||||
'last_download_at' => [
|
||||
'sql' => 'int(10) unsigned NOT NULL default 0',
|
||||
],
|
||||
'download_count' => [
|
||||
'sql' => 'int(10) unsigned NOT NULL default 0',
|
||||
],
|
||||
],
|
||||
];
|
||||
Reference in New Issue
Block a user