<commit_before><?php

namespace App\Models;

use Eloquent as Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * @SWG\Definition(
 *      definition="UserActivity",
 *      required={""},
 *      @SWG\Property(
 *          property="id",
 *          description="id",
 *          type="integer",
 *          format="int32"
 *      ),
 *      @SWG\Property(
 *          property="order",
 *          description="order",
 *          type="integer",
 *          format="int32"
 *      ),
 *      @SWG\Property(
 *          property="is_registered",
 *          description="is_registered",
 *          type="boolean"
 *      ),
 *      @SWG\Property(
 *          property="registrarion_date",
 *          description="registrarion_date",
 *          type="string",
 *          format="date"
 *      ),
 *      @SWG\Property(
 *          property="registrated_by",
 *          description="registrated_by",
 *          type="string"
 *      ),
 *      @SWG\Property(
 *          property="persona_id",
 *          description="persona_id",
 *          type="integer",
 *          format="int32"
 *      ),
 *      @SWG\Property(
 *          property="activity_id",
 *          description="activity_id",
 *          type="integer",
 *          format="int32"
 *      ),
 *      @SWG\Property(
 *          property="created_at",
 *          description="created_at",
 *          type="string",
 *          format="date-time"
 *      ),
 *      @SWG\Property(
 *          property="updated_at",
 *          description="updated_at",
 *          type="string",
 *          format="date-time"
 *      )
 * )
 */
class UserActivity extends Model
{
    use SoftDeletes;

    public $table = 'user_activities';
    

    protected $dates = ['deleted_at'];


    public $fillable = [
        'order',
        'is_registered',
        'registrarion_date',
        'registrated_by',
        'persona_id',
        'activity_id'
    ];

    /**
     * The attributes that should be casted to native types.
     *
     * @var array
     */
    protected $casts = [
        'order' => 'integer',
        'is_registered' => 'integer',
        'registrarion_date' => 'date',
        'registrated_by' => 'string',
        'persona_id' => 'integer',
        'activity_id' => 'integer'
    ];

    /**
     * Validation rules
     *
     * @var array
     */
    public static $rules = [
        
    ];
   
    public function Activity()
    {
        return $this->hasOne('App\Models\Activity');
    }
    
    public function Persona() {
        return $this->belongsTo('App\Models\Persona');
    }
        
    public function Schedule() {
        return $this->belongsTo('App\Models\ActivitySchedule', 'activity_schedule_id');
    }
}<commit_msg>Correción bug personas<commit_after><?php

namespace App\Models;

use Eloquent as Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * @SWG\Definition(
 *      definition="UserActivity",
 *      required={""},
 *      @SWG\Property(
 *          property="id",
 *          description="id",
 *          type="integer",
 *          format="int32"
 *      ),
 *      @SWG\Property(
 *          property="order",
 *          description="order",
 *          type="integer",
 *          format="int32"
 *      ),
 *      @SWG\Property(
 *          property="is_registered",
 *          description="is_registered",
 *          type="boolean"
 *      ),
 *      @SWG\Property(
 *          property="registrarion_date",
 *          description="registrarion_date",
 *          type="string",
 *          format="date"
 *      ),
 *      @SWG\Property(
 *          property="registrated_by",
 *          description="registrated_by",
 *          type="string"
 *      ),
 *      @SWG\Property(
 *          property="persona_id",
 *          description="persona_id",
 *          type="integer",
 *          format="int32"
 *      ),
 *      @SWG\Property(
 *          property="activity_id",
 *          description="activity_id",
 *          type="integer",
 *          format="int32"
 *      ),
 *      @SWG\Property(
 *          property="created_at",
 *          description="created_at",
 *          type="string",
 *          format="date-time"
 *      ),
 *      @SWG\Property(
 *          property="updated_at",
 *          description="updated_at",
 *          type="string",
 *          format="date-time"
 *      )
 * )
 */
class UserActivity extends Model
{
    use SoftDeletes;

    public $table = 'user_activities';
    

    protected $dates = ['deleted_at'];


    public $fillable = [
        'order',
        'is_registered',
        'registrarion_date',
        'registrated_by',
        'persona_id',
        'activity_id',
        'activity_schedule_id'
    ];

    /**
     * The attributes that should be casted to native types.
     *
     * @var array
     */
    protected $casts = [
        'order' => 'integer',
        'is_registered' => 'integer',
        'registrarion_date' => 'date',
        'registrated_by' => 'string',
        'persona_id' => 'integer',
        'activity_id' => 'integer',
        'activity_schedule_id' => 'integer'
    ];

    /**
     * Validation rules
     *
     * @var array
     */
    public static $rules = [
        
    ];
   
    public function Activity()
    {
        return $this->hasOne('App\Models\Activity');
    }
    
    public function Persona() {
        return $this->belongsTo('App\Models\Persona');
    }
        
    public function Schedule() {
        return $this->belongsTo('App\Models\ActivitySchedule', 'activity_schedule_id');
    }
}
{'fraction_non_alphanumeric': 0.1499460625674218, 'fraction_numerical': 0.002876663070837828, 'mean_word_length': 1.7690393230462917, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 22, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3486538', 'n_tokens_mistral': 1685, 'n_tokens_neox': 1653, 'n_words': 251}