Skip to content
Snippets Groups Projects
Commit 6459bcdc authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] Adding Mail Model& Table

parent c5b54ac9
No related branches found
No related tags found
1 merge request!1Feature sg mail
<?php
namespace SGalinski\SgMail\Model;
use TYPO3\CMS\Extbase\DomainObject\AbstractEntity;
/***************************************************************
* Copyright notice
*
* (c) sgalinski Internet Services (https://www.sgalinski.de)
*
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This script is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
/**
* Mail
*/
class Mail extends AbstractEntity {
/**
* @var $mailContent
*/
protected $mailContent = null;
/**
* @var $mailContent
*/
protected $toAddress = null;
/**
* @var $mailContent
*/
protected $fromAddress = null;
/**
* @var $mailContent
*/
protected $isSent = null;
/**
* @var $mailContent
*/
protected $scheduledTime = null;
}
<?php
namespace SGalinski\SgMail\Repository;
use TYPO3\CMS\Extbase\Persistence\Repository;
/***************************************************************
* Copyright notice
*
* (c) sgalinski Internet Services (https://www.sgalinski.de)
*
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This script is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
/**
* MailRepository
*/
class MailRepository extends Repository {
}
#
# Table structure for table 'sg_mail_domain_model_mail'
#
CREATE TABLE sg_mail_domain_model_mail (
uid int(11) NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
mail_content varchar(255) DEFAULT '' NOT NULL,
to_address varchar(255) DEFAULT '' NOT NULL,
from_address varchar(255) DEFAULT '' NOT NULL,
is_sent boolean DEFAULT FALSE NOT NULL,
scheduled_time int(11) unsigned DEFAULT '0' NOT NULL,
tstamp int(11) unsigned DEFAULT '0' NOT NULL,
crdate int(11) unsigned DEFAULT '0' NOT NULL,
cruser_id int(11) unsigned DEFAULT '0' NOT NULL,
deleted tinyint(4) unsigned DEFAULT '0' NOT NULL,
hidden tinyint(4) unsigned DEFAULT '0' NOT NULL,
starttime int(11) unsigned DEFAULT '0' NOT NULL,
endtime int(11) unsigned DEFAULT '0' NOT NULL,
t3ver_oid int(11) DEFAULT '0' NOT NULL,
t3ver_id int(11) DEFAULT '0' NOT NULL,
t3ver_wsid int(11) DEFAULT '0' NOT NULL,
t3ver_label varchar(255) DEFAULT '' NOT NULL,
t3ver_state tinyint(4) DEFAULT '0' NOT NULL,
t3ver_stage int(11) DEFAULT '0' NOT NULL,
t3ver_count int(11) DEFAULT '0' NOT NULL,
t3ver_tstamp int(11) DEFAULT '0' NOT NULL,
t3ver_move_id int(11) DEFAULT '0' NOT NULL,
sys_language_uid int(11) DEFAULT '0' NOT NULL,
l10n_parent int(11) DEFAULT '0' NOT NULL,
l10n_diffsource mediumblob,
PRIMARY KEY (uid),
KEY parent (pid),
KEY t3ver_oid (t3ver_oid,t3ver_wsid),
KEY language (l10n_parent,sys_language_uid)
);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment