Skip to content

Commit

Permalink
added datetime for deposit table
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyarolf committed Oct 15, 2024
1 parent b061fad commit aa93d0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/deposit.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from sqlalchemy import Integer, Column, String, ForeignKey, Boolean, BigInteger
from sqlalchemy.orm import relationship, backref
from sqlalchemy import Integer, Column, String, ForeignKey, Boolean, BigInteger, DateTime, func

from models.base import Base

Expand All @@ -14,3 +13,4 @@ class Deposit(Base):
amount = Column(BigInteger, nullable=False)
is_withdrawn = Column(Boolean, default=False)
vout = Column(Integer, nullable=True)
deposit_datetime = Column(DateTime, default=func.now())

0 comments on commit aa93d0e

Please sign in to comment.