Skip to content
Snippets Groups Projects
Commit f67d6e67 authored by Bjarke Madsen's avatar Bjarke Madsen
Browse files

set active=True as default again

parent 97b9d321
No related branches found
No related tags found
No related merge requests found
...@@ -28,7 +28,7 @@ class ROLES(Enum): ...@@ -28,7 +28,7 @@ class ROLES(Enum):
uuid_pk = Annotated[UUID, mapped_column(primary_key=True, default=lambda _: uuid4())] uuid_pk = Annotated[UUID, mapped_column(primary_key=True, default=lambda _: uuid4())]
int_pk_fkNREN = Annotated[int, mapped_column(ForeignKey("nren.id"), primary_key=True)] int_pk_fkNREN = Annotated[int, mapped_column(ForeignKey("nren.id"), primary_key=True)]
active = Annotated[bool, mapped_column(db.Boolean, default=False)] active = Annotated[bool, mapped_column(db.Boolean, default=True)]
roles = Annotated[ROLES, mapped_column(db.Enum(ROLES), default=ROLES.user)] roles = Annotated[ROLES, mapped_column(db.Enum(ROLES), default=ROLES.user)]
# annotations for many-to-many relationships # annotations for many-to-many relationships
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment