@@ -12,30 +12,50 @@ class Client(NamedModel):
1212 verbose_name = gettext_lazy ("master user" ),
1313 on_delete = models .CASCADE ,
1414 )
15- first_name = models .CharField (
16- max_length = 255 ,
15+ first_name = models .TextField (
1716 blank = True ,
1817 null = True ,
1918 help_text = "First name of client" ,
2019 )
21- last_name = models .CharField (
22- max_length = 255 ,
20+ first_name_hash = models .CharField (
21+ max_length = 64 ,
22+ blank = True ,
23+ null = True ,
24+ help_text = "SHA-256 hash of the first name" ,
25+ )
26+ last_name = models .TextField (
2327 blank = True ,
2428 null = True ,
2529 help_text = "Last name of client" ,
2630 )
27- telephone = models .CharField (
28- max_length = 255 ,
31+ last_name_hash = models .CharField (
32+ max_length = 64 ,
33+ blank = True ,
34+ null = True ,
35+ help_text = "SHA-256 hash of the last name" ,
36+ )
37+ telephone = models .TextField (
2938 blank = True ,
3039 null = True ,
3140 help_text = "Telephone number of client" ,
3241 )
33- email = models .EmailField (
34- max_length = 255 ,
42+ telephone_hash = models .CharField (
43+ max_length = 64 ,
44+ blank = True ,
45+ null = True ,
46+ help_text = "SHA-256 hash of the telephone number" ,
47+ )
48+ email = models .TextField (
3549 blank = True ,
3650 null = True ,
3751 help_text = "Email address of client" ,
3852 )
53+ email_hash = models .CharField (
54+ max_length = 64 ,
55+ blank = True ,
56+ null = True ,
57+ help_text = "SHA-256 hash of the email address" ,
58+ )
3959
4060 class Meta (NamedModel .Meta ):
4161 verbose_name = gettext_lazy ("client" )
0 commit comments