<reponame>csgn/Price-Tracker<filename>Source/Backend/core/brand/models.py
from django.db import models


class Brand(models.Model):
    brandid = models.AutoField(primary_key=True)
    name = models.CharField(max_length=255)
    url = models.URLField()

    def __str__(self) -> str:
        return self.name

    class Meta:
        db_table = "brand"

from django.db import models


class Brand(models.Model):
    brandid = models.AutoField(primary_key=True)
    name = models.CharField(max_length=255)
    url = models.URLField()

    def __str__(self) -> str:
        return self.name

    class Meta:
        db_table = "brand"