from app import db from marshmallow import Schema, fields, ValidationError, pre_load class Book(db.Model): id = db.Column(db.Integer, primary_key = True) title = db.Column(db.String(255)) author = db.Column(db.String(255)) file = db.Column(db.String(255)) def __init__(self, title, author, file): self.title = title self.author = author self.file = file def __repr__(self): return '