extraction du modul database et creation de page vide

This commit is contained in:
Kepka Ludovic
2025-08-09 08:10:18 +02:00
parent fb836288fd
commit 21b5cf8669
13 changed files with 66 additions and 20 deletions

9
database/message.py Normal file
View File

@@ -0,0 +1,9 @@
# from webapp import db
from database import db
class Message(db.Model):
id = db.Column(db.Integer, primary_key=True)
enable = db.Column(db.Boolean, default=False)
text = db.Column(db.String(200))
# en seconde
periodicity = db.Column(db.Integer)