<commit_before><?php

namespace Nails\Admin\Model;

use Nails\Common\Model\Base;

class Note extends Base
{
    public function __construct()
    {
        parent::__construct();
        $this->table             = NAILS_DB_PREFIX . 'admin_note';
        $this->destructiveDelete = false;
    }
}
<commit_msg>Adds expandable field for `created_by`<commit_after><?php

namespace Nails\Admin\Model;

use Nails\Auth\Constants;
use Nails\Common\Model\Base;

class Note extends Base
{
    public function __construct()
    {
        parent::__construct();
        $this->table             = NAILS_DB_PREFIX . 'admin_note';
        $this->destructiveDelete = false;
        $this->addExpandableField([
            'trigger'   => 'created_by',
            'model'     => 'User',
            'provider'  => Constants::MODULE_SLUG,
            'id_column' => 'created_by',
        ]);
    }
}

{'fraction_non_alphanumeric': 0.12797281993204984, 'fraction_numerical': 0.0, 'mean_word_length': 2.3612167300380227, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 12, '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': '7176876', 'n_tokens_mistral': 274, 'n_tokens_neox': 273, 'n_words': 51}