pavanprakash21 / fantastic-disco

0 stars 0 forks source link

Create User Documents #4

Closed pavanprakash21 closed 6 years ago

pavanprakash21 commented 6 years ago

Allow user to upload documents. Major reasons to create a separate model

  1. Not to pollute the base user model with unnecessary data that will not be used often.
  2. Easily create a multi step signup process rather than making the signup process long and complicated.
  3. Any extra files/data needed in the future can be easily implemented by extending this model.

Attributes:

  1. Passport Number
  2. Passport File
  3. Aadhar Number
  4. Aadhar File
  5. PAN
  6. PAN File

For now, passport will be optional. Pan and Aadhar will be compulsory and unique.

pavanprakash21 commented 6 years ago

PAN Number - Unique, Format - /[a-zA-z]{5}\d{4}[a-zA-Z]{1}/, Lenght - 10 Aadhar Number - Unique, Format - /\d{12}/, Length - 12 Passport Number - Unique, Format - /[a-pr-wyA-PR-WY][1-9]\d\s?\d{4}[1-9]/, Length - 8