22 lines
484 B
PHP
22 lines
484 B
PHP
<?php
|
|
|
|
namespace WoWPress\Database;
|
|
|
|
class CreateComplaintTable extends CreateTable
|
|
{
|
|
|
|
|
|
public static $table_name = "complaints";
|
|
public static $fields = [
|
|
'user_id' => 'mediumint',
|
|
'anonymous' => 'boolean',
|
|
'complaint' => 'text NOT NULL',
|
|
'user_comment' => 'text',
|
|
'admin_comment' => 'text',
|
|
'created_at' => 'timestamp NOT NULL',
|
|
'updated_at' => 'timestamp NOT NULL',
|
|
'deleted_at' => 'timestamp',
|
|
];
|
|
|
|
}
|