You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
323 B
10 lines
323 B
from app import db
|
|
import datetime
|
|
|
|
class Captcha(db.Model):
|
|
id = db.Column(db.Integer, primary_key=True)
|
|
captcha_text = db.Column(db.String(10), nullable=False)
|
|
timestamp = db.Column(db.DateTime, default=datetime.datetime.utcnow)
|
|
|
|
def __init__(self, captcha_text):
|
|
self.captcha_text = captcha_text
|
|
|