Jake Vanderwerf
2026-04-15 c4aa5cdb5e90ad4b420e22772797d16980232a2b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
namespace JVBase\registrar\helpers;
 
if (!defined('ABSPATH')) {
    exit;
}
 
use JVBase\registrar\Registrar;
use JVBase\managers\CustomTable;
class MakeVerification {
    protected CustomTable $table;
    public function __construct()
    {
        $this->defineTables();
    }
 
    protected function defineTables():void
    {
        $types = implode(',', array_map(function($item) { return "`{$item}`"; },Registrar::getFeatured('verify_entry')));
 
        $table = CustomTable::for('verify_entry');
 
        $table->setColumns([
            'id'            => 'bigint(20) unsigned NOT NULL AUTO_INCREMENT',
            'user_id'       => "{$table->getUserIDType()} NOT NULL",
            'content'
        ])
    }
}