thebadspace/app/Models/Source.php
ro 7abd6d44a0 Data collection script overhaul
The script for collection blocklist info was getting a little heavy, so
it's been split in two to make it more accessible and easier to
maintain. The first part collects data from current sources and stores
it for the second part of the script, which compiles all the data and
updated the database.

The Source model was expanded to track votes so block and silence counts
can be easily verified on the backend.
2024-02-17 19:33:35 -06:00

16 lines
348 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Source extends Model
{
use HasFactory;
protected $table = "source";
public $timestamps = false;
protected $fillable = ["url", "type", "active", "format", "token", "list_data", "last_updated"];
}