11 lines
313 B
Python
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)
|