Added a way to create custom tokens

This commit is contained in:
xemeds
2020-08-21 12:17:17 +03:00
parent 17838b61ab
commit f02158387e
7 changed files with 86 additions and 19 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ from tiny0 import db
class URL(db.Model):
id = db.Column(db.Integer, primary_key=True)
token = db.Column(db.String(6), index=True, unique=True, nullable=False)
token = db.Column(db.String(16), index=True, unique=True, nullable=False)
url = db.Column(db.String(2000), nullable=False)
def __repr__(self):