1
0
Fork 0

Update Profile model to use snowflake ids

This commit is contained in:
Daniel Supernault 2019-07-11 22:46:32 -06:00
parent 3f98cda504
commit 62dbf81a5b
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 9 additions and 1 deletions

View File

@ -4,12 +4,20 @@ namespace App;
use Auth, Cache, Storage;
use App\Util\Lexer\PrettyNumber;
use Pixelfed\Snowflake\HasSnowflakePrimary;
use Illuminate\Database\Eloquent\{Model, SoftDeletes};
class Profile extends Model
{
use SoftDeletes;
use HasSnowflakePrimary, SoftDeletes;
/**
* Indicates if the IDs are auto-incrementing.
*
* @var bool
*/
public $incrementing = false;
protected $dates = ['deleted_at'];
protected $hidden = ['private_key'];
protected $visible = ['id', 'user_id', 'username', 'name'];