Manage ASL magazines and their articles.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
asl-articles/asl_articles/models.py

16 lines
452 B

""" Define the database models. """
from asl_articles import db
#pylint: disable=no-member
# ---------------------------------------------------------------------
class Publisher( db.Model ):
"""Define the Publisher model."""
publ_id = db.Column( db.Integer, primary_key=True )
publ_name = db.Column( db.String(100), nullable=False )
def __repr__( self ):
return "<Publisher:{}|{}>".format( self.publ_id, self.publ_name )