big kahuna
This commit is contained in:
25
lib/CW/Migration/04.pm
Normal file
25
lib/CW/Migration/04.pm
Normal file
@@ -0,0 +1,25 @@
|
||||
package CW::Migration::04;
|
||||
|
||||
use Moo;
|
||||
|
||||
extends 'CW::Migration';
|
||||
|
||||
sub id {
|
||||
return 4;
|
||||
}
|
||||
|
||||
sub sql {
|
||||
return q[CREATE TABLE users (
|
||||
id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
|
||||
name VARCHAR(24),
|
||||
password VARCHAR(62),
|
||||
admin BOOLEAN DEFAULT false,
|
||||
active BOOLEAN DEFAULT false,
|
||||
denied BOOLEAN DEFAULT false,
|
||||
denied_reason TEXT,
|
||||
join_request JSON NOT NULL
|
||||
)
|
||||
]
|
||||
}
|
||||
|
||||
1;
|
||||
Reference in New Issue
Block a user