from app import db
from sqlalchemy.orm import relationship
from dataclasses import dataclass


@dataclass
class Category(db.Model):
    id: int
    name: str

    id = db.Column(db.Integer, primary_key=True, unique=True)
    name = db.Column(db.String)

    product = db.relationship(
        "Product", backref="Category", passive_deletes=True)

b04b57ca71f338a47ea01ebf08e18b3c20760d0b
<mask token>

<mask token>


@dataclass
class Category(db.Model):
    id: int
    name: str
    <mask token>
    <mask token>
    <mask token>

<mask token>


@dataclass
class Category(db.Model):
    id: int
    name: str
    id = db.Column(db.Integer, primary_key=True, unique=True)
    name = db.Column(db.String)
    product = db.relationship('Product', backref='Category',
        passive_deletes=True)

from app import db
from sqlalchemy.orm import relationship
from dataclasses import dataclass


@dataclass
class Category(db.Model):
    id: int
    name: str
    id = db.Column(db.Integer, primary_key=True, unique=True)
    name = db.Column(db.String)
    product = db.relationship('Product', backref='Category',
        passive_deletes=True)

from app import db
from sqlalchemy.orm import relationship
from dataclasses import dataclass


@dataclass
class Category(db.Model):
    id: int
    name: str

    id = db.Column(db.Integer, primary_key=True, unique=True)
    name = db.Column(db.String)

    product = db.relationship(
        "Product", backref="Category", passive_deletes=True)
