EditionPN/app/models.py
2021-05-06 10:26:28 +02:00

11 lines
313 B
Python

from app import db
class PN(db.Model):
code = db.Column(db.String(3), primary_key = True)
nom = db.Column(db.String(255))
diminutif = db.Column(db.String(30))
description = db.Column(db.Text())
type = db.Column(db.Integer())
def __repr__(self):
return "<PN {}>".format(self.code)