From 2eb6de9df07e16e50cc0279453c7c9c4af37e2e8 Mon Sep 17 00:00:00 2001 From: Gabriel De Los Rios Date: Mon, 4 Nov 2024 23:27:33 -0300 Subject: [PATCH] fix: updates user model password max length --- app/models/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/user.py b/app/models/user.py index f78da58..49bab71 100644 --- a/app/models/user.py +++ b/app/models/user.py @@ -6,7 +6,7 @@ class User(db.Model): id = mapped_column(db.Integer, primary_key=True) username = mapped_column(db.String(255), nullable=False) email = mapped_column(db.String(255), nullable=False) - password = mapped_column(db.Text, nullable=False) + password = mapped_column(db.String(255), nullable=False) name = mapped_column(db.String(255), nullable=False) lastname = mapped_column(db.String(255), nullable=False) birth_date = mapped_column(db.Date, nullable=False)