import pytest
from app.models import Contact

def test_contact_model_columns():
    """Test that Contact model has required columns."""
    contact = Contact(
        name="Test User",
        email="test@example.com",
        subject="Test Subject",
        message="Test message"
    )
    assert contact.name == "Test User"
    assert contact.email == "test@example.com"
    assert contact.subject == "Test Subject"
    assert contact.message == "Test message"
    assert contact.submitted_at is None  # default not set yet
