# app/notes/model.py
from sqlalchemy import Column, Integer, String, ForeignKey

from app.database import Base

class Notes(Base):
    __tablename__ = "notes"

    id_note = Column(Integer, primary_key=True)
    note_title = Column(String(255), nullable=False)
    note_text = Column(String, nullable=False)
    note_category = Column(ForeignKey("notes_category.id_cat_notes"), nullable=False)