File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11
22run = "python3 main.py"
3- modules = ["python-3.12"]
3+ modules = ["python-3.12", "postgresql-16" ]
44
55[nix]
66channel = "stable-22_11"
Original file line number Diff line number Diff line change @@ -18,9 +18,9 @@ class User(UserMixin, db.Model):
1818 id = db .Column (db .Integer , primary_key = True )
1919 username = db .Column (db .String (80 ), unique = True , nullable = False )
2020 email = db .Column (db .String (120 ), unique = True , nullable = False )
21- password_hash = db .Column (db .String (128 ), nullable = False )
22- first_name = db .Column (db .String (50 ), nullable = False )
23- last_name = db .Column (db .String (50 ), nullable = False )
21+ password_hash = db .Column (db .String (256 ), nullable = False )
22+ first_name = db .Column (db .String (50 ), nullable = True )
23+ last_name = db .Column (db .String (50 ), nullable = True )
2424 role = db .Column (db .String (50 ), nullable = False , default = "user" )
2525 department_id = db .Column (db .Integer , db .ForeignKey ("departments.id" ))
2626 is_active = db .Column (db .Boolean , default = True )
You can’t perform that action at this time.
0 commit comments