mirror of
https://github.com/dat515-2025/Group-8.git
synced 2026-03-22 06:57:47 +01:00
10 lines
310 B
Python
10 lines
310 B
Python
from sqlalchemy import Column, Integer, String, Float
|
|
from app.core.db import Base
|
|
|
|
class Transaction(Base):
|
|
__tablename__ = "transaction"
|
|
id = Column(Integer, primary_key=True, autoincrement=True)
|
|
amount = Column(Float, nullable=False)
|
|
description = Column(String(length=255), nullable=True)
|
|
|