Added a way to create custom tokens
This commit is contained in:
+1
-1
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user