'Varchar(255)', 'Status' => "Enum('Success,Failure')", 'IP' => 'Varchar(255)', ); private static $has_one = array( 'Member' => Member::class, // only linked if the member actually exists ); private static $table_name = "LoginAttempt"; /** * @skipUpgrade * @param bool $includerelations Indicate if the labels returned include relation fields * @return array */ public function fieldLabels($includerelations = true) { $labels = parent::fieldLabels($includerelations); $labels['Email'] = _t(__CLASS__.'.LoginAttempt.Email', 'Email Address'); $labels['Status'] = _t(__CLASS__.'.Status', 'Status'); $labels['IP'] = _t(__CLASS__.'.IP', 'IP Address'); return $labels; } }