<?php
declare(strict_types=1);

return [
    'up' => "
ALTER TABLE coaches
    ADD COLUMN password_hash VARCHAR(255) NULL AFTER phone,
    ADD COLUMN otp_code VARCHAR(6) NULL AFTER password_hash,
    ADD COLUMN otp_expires_at DATETIME NULL AFTER otp_code,
    ADD COLUMN last_login_at DATETIME NULL AFTER otp_expires_at",
    'down' => "
ALTER TABLE coaches
    DROP COLUMN last_login_at,
    DROP COLUMN otp_expires_at,
    DROP COLUMN otp_code,
    DROP COLUMN password_hash",
];
