First Local Commit - After Clean up.
Signed-off-by: Rick Hays <rhays@haysgang.com>
This commit is contained in:
34
app/Models/LogModel.php
Normal file
34
app/Models/LogModel.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php namespace App\Models;
|
||||
/******************************************************************************************************************
|
||||
* RPSLS - Rock, Paper, Scissors, Lizard, Spock Game
|
||||
*
|
||||
* @file app/models/LogModel.php
|
||||
* @package App\Models
|
||||
* @description
|
||||
* Model for the Log Table.
|
||||
* @author Rick Hays
|
||||
* @date 11/15/2019
|
||||
* @license MIT
|
||||
* @copyright Copyright © 2019 - Rick Hays, All Rights Reserved.
|
||||
*
|
||||
* Revisions:
|
||||
* YYYY-MM-DD XX Description
|
||||
******************************************************************************************************************/
|
||||
use CodeIgniter\Model;
|
||||
|
||||
class LogModel extends Model
|
||||
{
|
||||
protected $DBGroup = 'default';
|
||||
protected $table = 'Log';
|
||||
protected $primaryKey = 'id';
|
||||
protected $returnType = 'array';
|
||||
protected $allowedFields = ['IP', 'City', 'State', 'Country'];
|
||||
protected $useTimestamps = TRUE;
|
||||
protected $createdField = 'DateTime';
|
||||
protected $updatedField = '';
|
||||
protected $deletedField = '';
|
||||
// protected $useSoftDeletes = true;
|
||||
// protected $validationRules = [];
|
||||
// protected $validationMessages = [];
|
||||
// protected $skipValidation = false;
|
||||
}
|
||||
Reference in New Issue
Block a user