from password_queries.models import PasswordQuery
queries = [
    # English questions and answers
    {"question": "How do I reset my password?", "answer": "You can reset your password by going to your profile settings."},
    {"question": "I forgot my password, what should I do?", "answer": "You can click on the 'Forgot Password' link on the login page to reset your password."},
    {"question": "How can I change my password?", "answer": "You can change your password by going to your account settings."},
    {"question": "How to generate a new password?", "answer": "You can generate a new password by following the password reset procedure."},
    {"question": "What should I do if my password is not working?", "answer": "If your password is not working, try resetting it using the 'Forgot Password' option."},
    {"question": "How do I make my password more secure?", "answer": "You can make your password more secure by using a combination of letters, numbers, and special characters."},
    {"question": "Can I reuse an old password?", "answer": "It's not recommended to reuse old passwords for security reasons."},
    {"question": "How often should I change my password?", "answer": "It's advisable to change your password every 3 to 6 months for better security."},
    {"question": "Is it safe to save my password in my browser?", "answer": "Saving passwords in your browser can be convenient but may not be safe if others have access to your device."},
    {"question": "What should I do if I suspect someone knows my password?", "answer": "Immediately change your password and enable two-factor authentication if available."},
    {"question": "How do I create a strong password?", "answer": "A strong password should be at least 12 characters long and include a mix of letters, numbers, and special characters."},
    {"question": "Why should I avoid using common words in my password?", "answer": "Common words are easier to guess, making your password less secure."},
    {"question": "Can I use a password manager?", "answer": "Yes, using a password manager is a good way to store and manage your passwords securely."},
    {"question": "What is two-factor authentication?", "answer": "Two-factor authentication adds an extra layer of security by requiring a second form of verification."},
    {"question": "How do I enable two-factor authentication?", "answer": "You can enable two-factor authentication in your account security settings."},
    {"question": "What is a password hint?", "answer": "A password hint is a clue to help you remember your password without revealing it directly."},
    {"question": "Should I share my password with anyone?", "answer": "No, you should never share your password with anyone."},
    {"question": "What is a password recovery email?", "answer": "A password recovery email is an email address used to reset your password if you forget it."},
    {"question": "How can I secure my recovery email?", "answer": "Secure your recovery email by using a strong password and enabling two-factor authentication."},
    {"question": "What is a security question?", "answer": "A security question is an additional verification method used to reset your password."},
    {"question": "What should I do if I forget the answer to my security question?", "answer": "If you forget the answer, you may need to contact support to reset your account."},
    {"question": "Can I use my fingerprint as a password?", "answer": "Yes, many devices and services support biometric authentication such as fingerprints."},
    {"question": "How do I recover my account if I lose access to my email?", "answer": "You may need to contact customer support and provide identity verification to recover your account."},
    {"question": "What is a password expiration policy?", "answer": "A password expiration policy requires users to change their passwords regularly."},
    {"question": "How do I know if my password has been compromised?", "answer": "You can use services like Have I Been Pwned to check if your password has been leaked in a data breach."},
    {"question": "Is it safe to use the same password for multiple accounts?", "answer": "No, using the same password for multiple accounts increases the risk of security breaches."},
    {"question": "What is a passphrase?", "answer": "A passphrase is a longer password made up of a series of words, which is harder to crack."},
    {"question": "How do I update my password after a breach?", "answer": "Go to your account settings and change your password immediately after a breach."},
    {"question": "What are the consequences of using a weak password?", "answer": "A weak password increases the risk of unauthorized access to your accounts."},
    {"question": "Why should I avoid using personal information in my password?", "answer": "Personal information can be easily guessed or found through social engineering."},
    {"question": "How can I remember complex passwords?", "answer": "You can remember complex passwords by using a password manager or creating memorable passphrases."},
    {"question": "What is a brute-force attack?", "answer": "A brute-force attack is a method used by attackers to guess your password by trying many combinations."},
    {"question": "How do I protect my password from being stolen?", "answer": "Use strong passwords, enable two-factor authentication, and avoid phishing scams."},
    {"question": "Can I write down my passwords?", "answer": "While it's better to use a password manager, if you write down passwords, store them in a secure place."},
    {"question": "What is a phishing attack?", "answer": "A phishing attack is a fraudulent attempt to obtain sensitive information by pretending to be a trustworthy entity."},
    {"question": "How do I avoid phishing attacks?", "answer": "Avoid clicking on suspicious links and verify the authenticity of the websites you visit."},
    {"question": "What should I do if I fall victim to a phishing attack?", "answer": "Immediately change your passwords and notify the service provider of the compromised account."},
    {"question": "How can I prevent unauthorized access to my accounts?", "answer": "Use strong passwords, enable two-factor authentication, and monitor account activity regularly."},
    {"question": "What is a CAPTCHA?", "answer": "A CAPTCHA is a test used to differentiate between humans and bots during online transactions."},
    {"question": "How does a CAPTCHA protect my account?", "answer": "CAPTCHAs help prevent automated attacks, like brute-force attacks, by ensuring a human is performing the action."},
    {"question": "Why is it important to log out of public devices?", "answer": "Logging out prevents unauthorized access to your account from public devices."},
    {"question": "How can I secure my mobile device?", "answer": "Secure your mobile device by using a strong passcode, biometric authentication, and keeping the software up to date."},
    {"question": "What is a virtual keyboard?", "answer": "A virtual keyboard is an on-screen keyboard used to prevent keylogging by physically typing on the screen."},
    {"question": "When should I use a virtual keyboard?", "answer": "Use a virtual keyboard when entering sensitive information on a public or unsecured device."},
    {"question": "How do I disable password autofill?", "answer": "You can disable password autofill in your browser or device settings to enhance security."},
    {"question": "Why should I disable password autofill?", "answer": "Disabling password autofill reduces the risk of passwords being auto-filled on malicious websites."},
    {"question": "What is a security token?", "answer": "A security token is a physical or digital device used to provide an additional level of authentication."},
    {"question": "How does a security token work?", "answer": "A security token generates a unique code that you enter along with your password for added security."},
    {"question": "Can I use a security token for all my accounts?", "answer": "Many services support security tokens, but you need to check if your specific service supports them."},
]

for q in queries:
    PasswordQuery.objects.create(question=q['question'], answer=q['answer'])
