|
|
|
@ -91,11 +91,14 @@ class Stack(db.Model):
|
|
|
|
|
__tablename__ = 'stacks'
|
|
|
|
|
id = db.Column(db.Integer, primary_key = True)
|
|
|
|
|
stack_name = db.Column(db.String(50))
|
|
|
|
|
stack_description = db.Column(db.String(500))
|
|
|
|
|
stack_description = db.Column(db.String(1000))
|
|
|
|
|
stack_author = db.Column(db.String(255))
|
|
|
|
|
|
|
|
|
|
def __init__(self, stack_name, stack_description):
|
|
|
|
|
|
|
|
|
|
def __init__(self, stack_name, stack_description, stack_author):
|
|
|
|
|
self.stack_name = stack_name
|
|
|
|
|
self.stack_description = stack_description
|
|
|
|
|
self.stack_author = stack_author
|
|
|
|
|
|
|
|
|
|
def __repr__(self):
|
|
|
|
|
return '<Stack %r>' % self.stack_name
|
|
|
|
|