Premier jet acces BDD

This commit is contained in:
Kepka Ludovic
2025-08-09 01:56:38 +02:00
parent 1b708bb10a
commit a23d906cc4
7 changed files with 34 additions and 10 deletions

8
webapp/models.py Normal file
View File

@@ -0,0 +1,8 @@
from webapp 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)