| Current Path : /var/www/html/drsa/backend/modules/emailLog/models/ |
| Current File : /var/www/html/drsa/backend/modules/emailLog/models/EmailLog.php |
<?php
namespace backend\modules\emailLog\models;
use Yii;
/**
* This is the model class for table "email_log".
*
* @property int $id
* @property string $created_at
* @property string $created_by
* @property string $email_address
* @property string $subject
* @property string $content
*/
class EmailLog extends \yii\db\ActiveRecord {
/**
* {@inheritdoc}
*/
public static function tableName() {
return 'email_log';
}
/**
* {@inheritdoc}
*/
public function rules() {
return [
[['created_at', 'created_by',], 'safe'],
[['subject', 'content', 'email_address'], 'required'],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels() {
return [
'id' => 'ID',
'created_at' => 'Created At',
'created_by' => 'Created By',
'email_address' => 'Email Address',
'subject' => 'Subject',
'content' => 'Content',
];
}
}