<?php

declare(strict_types=1);

use Illuminate\Support\Facades\Schema;

it('creates the countries table and user country relation column', function (): void {
    expect(Schema::hasTable('countries'))->toBeTrue();
    expect(Schema::hasColumns('countries', [
        'id',
        'iso2',
        'iso3',
        'numeric_code',
        'name_common',
        'name_official',
        'region',
        'subregion',
        'flag_svg_url',
        'flag_png_url',
        'flag_emoji',
        'active',
        'sort_order',
        'is_featured',
        'created_at',
        'updated_at',
    ]))->toBeTrue();
    expect(Schema::hasColumn('users', 'country_id'))->toBeTrue();
});
