Skip to content

Commit

Permalink
feat: add AD username column to user (#2499)
Browse files Browse the repository at this point in the history
  • Loading branch information
rikuke authored Nov 22, 2023
1 parent a6d4323 commit acc1147
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions backend/benefit/users/migrations/0002_user_ad_username.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.18 on 2023-11-20 12:34

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('users', '0001_initial'),
]

operations = [
migrations.AddField(
model_name='user',
name='ad_username',
field=models.CharField(blank=True, max_length=255, null=True),
),
]
1 change: 1 addition & 0 deletions backend/benefit/users/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def format_date(date: datetime) -> Optional[str]:

class User(AbstractUser, SerializableMixin):
id = models.UUIDField(primary_key=True, default=uuid4, editable=False)
ad_username = models.CharField(max_length=255, null=True, blank=True)

class Meta:
db_table = "bf_users_user"
Expand Down

0 comments on commit acc1147

Please sign in to comment.