<?php namespace App\Models;

use CodeIgniter\Model;

class GitCommitsModel extends Model
{
	protected $table = 'git_commits';
	protected $primaryKey = 'id';
	protected $useAutoIncrement = true;
	protected $returnType = 'array';
	protected $useSoftDeletes = false;
	protected $protectFields = true;
	protected $allowedFields = [
		'repository_id',
		'author_user_id',
		'sha',
		'short_sha',
		'message',
		'author_name',
		'author_email',
		'committed_at',
		'html_url',
	];

	protected $useTimestamps = true;
	protected $dateFormat = 'datetime';
	protected $createdField = 'created_at';
	protected $updatedField = 'updated_at';
}
