CREATE TABLE users (
    id INT AUTO_INCREMENT PRIMARY KEY,
    account VARCHAR(255) UNIQUE NOT NULL,
    name VARCHAR(255) NOT NULL,
    birth DATE,
    email VARCHAR(255),
    password VARCHAR(255) NOT NULL,
    phone VARCHAR(20),
    status ENUM(
        'active',
        'inactive',
        'suspended',
        'deleted',
        'locked',
        'pending verfication'
    ) DEFAULT 'active',
    created_time DATETIME DEFAULT CURRENT_TIMESTAMP,
    updated_time DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
);

INSERT INTO
    test_server.users (id, account, name, birth, password)
VALUES
    (0, '123', 'hyh', '2000-0-03', '1');

INSERT INTO
    test_server.users (account, name, password)
VALUES
    ('123', 'hyh', '1');