first commit
This commit is contained in:
11
app/models.py
Normal file
11
app/models.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from flask_sqlalchemy import SQLAlchemy
|
||||
|
||||
db = SQLAlchemy()
|
||||
|
||||
class Email(db.Model):
|
||||
id = db.Column(db.Integer, primary_key=True)
|
||||
subject = db.Column(db.String(255))
|
||||
sender = db.Column(db.String(255))
|
||||
recipient = db.Column(db.String(255))
|
||||
body = db.Column(db.Text)
|
||||
timestamp = db.Column(db.DateTime, server_default=db.func.now())
|
||||
Reference in New Issue
Block a user