Lerndatenbank/models.py

7 lines
296 B
Python
Raw Normal View History

2024-08-05 16:36:41 +02:00
from app import db
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(80), unique=True, nullable=False)
password = db.Column(db.String(120), unique=True, nullable=False)
email = db.Column(db.String(120), unique=True, nullable=False)