forked from projects/thebadspace
ro
7abd6d44a0
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.
16 lines
348 B
PHP
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"];
|
|
}
|