thebadspace/app/Models/Location.php
ro fdaf90b89f added total actions count to DB, action count fix
Added a new field to the locations table for total actions which will be
used to set the active state of location. this will result in data being
parsed and sorted easier instead of doing those calculations on the back
end, so DB queries will be simpler

also fixed actions counts for csv imports
2024-02-09 21:05:33 -06:00

40 lines
750 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Location extends Model
{
use HasFactory;
use SoftDeletes;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = "location";
protected $primaryKey = 'id';
public $incrementing = true;
protected $fillable = [
"uuid",
"name",
"url",
"description",
"images",
"active",
"rating",
"added_by",
"tags",
"block_count",
"silence_count",
"created_at",
"updated_at",
"actions_count"
];
}