# Path: restapi/modules/base.py
# class BaseModel(db.Model):


from restapi.modules.base import BaseModel, db
from marshmallow import Serializer, fields
__author__ = 'haukurk'



class Cake(BaseModel):
    """
    Cake class that defines how cake object are kept in the database.
    """
    id = db.Column(db.Integer, primary_key=True)

# Path: restapi/modules/base.py
# class BaseModel(db.Model):


# Path: restapi/modules/cakes/models.py
from restapi.modules.base import BaseModel, db
from marshmallow import Serializer, fields

__author__ = 'haukurk'



class Cake(BaseModel):
    """
    Cake class that defines how cake object are kept in the database.
    """
    id = db.Column(db.Integer, primary_key=True)

    cakename = db.Column(db.String(80), unique=True)