32 if ($this->hasTable(
"users_entity")) {
36 $table = $this->table(
"users_entity", [
38 'primary_key' => [
"guid"],
40 'encoding' =>
"utf8mb4",
41 'collation' =>
"utf8mb4_general_ci",
44 $table->addColumn(
'guid',
'integer', [
46 'limit' => MysqlAdapter::INT_BIG,
51 $table->addColumn(
'name',
'text', [
55 $table->addColumn(
'username',
'string', [
61 $table->addColumn(
'password_hash',
'string', [
67 $table->addColumn(
'email',
'text', [
71 $table->addColumn(
'language',
'string', [
77 $table->addColumn(
'banned',
'enum', [
87 $table->addColumn(
'admin',
'enum', [
97 $table->addColumn(
'last_action',
'integer', [
100 'limit' => MysqlAdapter::INT_REGULAR,
104 $table->addColumn(
'prev_last_action',
'integer', [
107 'limit' => MysqlAdapter::INT_REGULAR,
111 $table->addColumn(
'last_login',
'integer', [
114 'limit' => MysqlAdapter::INT_REGULAR,
118 $table->addColumn(
'prev_last_login',
'integer', [
121 'limit' => MysqlAdapter::INT_REGULAR,
125 $table->addIndex([
'username'], [
126 'name' =>
"username",
130 $table->addIndex([
'email'], [
136 $table->addIndex([
'last_login'], [
137 'name' =>
"last_login",
141 $table->addIndex([
'admin'], [
change()
CREATE TABLE prefix_users_entity ( guid bigint(20) unsigned NOT NULL, name text NOT NULL...