Skip to content

Commit

Permalink
Merge pull request #166 from mekanix/fullname
Browse files Browse the repository at this point in the history
Add user fullname
  • Loading branch information
mekanix authored Jan 27, 2025
2 parents 23086e2 + 3de0622 commit c71f924
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""initial
Revision ID: a754f05fd8e5
Revision ID: baf1dd67f3ed
Revises:
Create Date: 2025-01-25 19:46:28.006950
Create Date: 2025-01-27 17:11:10.217492
"""

Expand All @@ -11,7 +11,7 @@


# revision identifiers, used by Alembic.
revision = "a754f05fd8e5"
revision = "baf1dd67f3ed"
down_revision = None
branch_labels = None
depends_on = None
Expand Down Expand Up @@ -52,6 +52,7 @@ def upgrade():
sa.Column("id", sa.Integer(), nullable=False),
sa.Column("email", sa.Text(), nullable=False),
sa.Column("password", sa.Text(), nullable=True),
sa.Column("fullname", sa.Text(), nullable=True),
sa.Column("active", sa.Boolean(), nullable=True),
sa.Column("admin", sa.Boolean(), nullable=True),
sa.PrimaryKeyConstraint("id"),
Expand Down
1 change: 1 addition & 0 deletions freenit/models/sql/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class OrmarUserMixin:
id: int = ormar.Integer(primary_key=True)
email: pydantic.EmailStr = ormar.Text(unique=True)
password: str = ormar.Text(nullable=True)
fullname: str = ormar.Text(nullable=True)
active: bool = ormar.Boolean(default=False)
admin: bool = ormar.Boolean(default=False)

Expand Down

0 comments on commit c71f924

Please sign in to comment.