Updated auto pre testing
This commit is contained in:
30
app/models/cards.py
Normal file
30
app/models/cards.py
Normal 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())
|
||||
|
||||
Reference in New Issue
Block a user