from django.db import models

class Property(models.Model):
    title = models.CharField(max_length=255)
    location = models.CharField(max_length=255)
    price_per_night = models.DecimalField(max_digits=8, decimal_places=2)
    image_url = models.URLField(max_length=1024, blank=True, null=True)

    def __str__(self):
        return self.title