Updated auto pre testing

This commit is contained in:
2024-07-24 17:22:14 -04:00
parent 6c3b38341b
commit 8273f063ed
5 changed files with 229 additions and 12 deletions

30
app/models/cards.py Normal file
View File

@@ -0,0 +1,30 @@
from sqlalchemy import (Column, Integer,
DECIMAL, Text, BOOLEAN,
VARCHAR, TIMESTAMP,
Date, INTEGER)
from datetime import datetime, timezone
from database import Base
class Card_Card(Base):
__tablename__ = 'card_card'
__bind_key__ = 'eamco'
__table_args__ = {"schema": "public"}
id = Column(Integer,
primary_key=True,
autoincrement=True,
unique=False)
date_added = Column(TIMESTAMP(), default=datetime.utcnow())
user_id = Column(INTEGER())
card_number = Column(VARCHAR(50))
last_four_digits = Column(INTEGER())
name_on_card = Column(VARCHAR(500))
expiration_month = Column(INTEGER())
expiration_year = Column(INTEGER())
type_of_card = Column(VARCHAR(500))
security_number = Column(INTEGER())
accepted_or_declined = Column(INTEGER())
main_card = Column(BOOLEAN())