The Insurance Management Database is designed to manage and store information related to insurance policies, customers, claims, and premium payments. This database provides a structured way to handle various insurance-related data, enabling efficient management of customer policies and claims processing.
The database includes the following tables:
customers: Stores customer details.
customer_id
: Unique identifier for each customer.first_name
: Customer's first name.last_name
: Customer's last name.phone_no
: Customer's phone number.dob
: Date of birth.address
: Residential address.policy: Records details of insurance policies.
policy_id
: Unique identifier for each policy.customer_id
: Foreign key linking to the customers
table.policy_type_id
: Foreign key linking to the policy_type
table.start_date
: Policy start date.end_date
: Policy end date.coverage_amt
: Coverage amount.status
: Status of the policy (Active, Inactive, Expired).policy_type: Defines different types of insurance policies.
policy_type_id
: Unique identifier for each policy type.name
: Name of the policy type (e.g., Health Insurance, Life Insurance).description
: Description of the policy type.claims: Records insurance claims.
claim_id
: Unique identifier for each claim.policy_id
: Foreign key linking to the policy
table.claim_date
: Date of the claim.description
: Description of the claim.amount
: Amount of the claim.status
: Status of the claim (Pending, Approved, Denied).customer_id
: Foreign key linking to the customers
table.premium_payment: Manages premium payment details.
payment_id
: Unique identifier for each payment.policy_id
: Foreign key linking to the policy
table.payment_date
: Date of the payment.amount
: Amount paid.reference_number
: Reference number for the payment.health_insurance: Stores specific details for health insurance policies.
policy_id
: Foreign key linking to the policy
table.policy_holder_name
: Name of the policyholder.age
: Age of the policyholder.gender
: Gender of the policyholder.customer_id
: Foreign key linking to the customers
table.policy_type_id
: Foreign key linking to the policy_type
table.life_insurance: Stores specific details for life insurance policies.
policy_id
: Foreign key linking to the policy
table.insured_name
: Name of the insured individual.beneficiary_name
: Name of the beneficiary.sum_assured
: Sum assured amount.customer_id
: Foreign key linking to the customers
table.policy_type_id
: Foreign key linking to the policy_type
table.vehicle_insurance: Stores specific details for vehicle insurance policies.
policy_id
: Foreign key linking to the policy
table.vehicle_make
: Make of the vehicle.model
: Model of the vehicle.vehicle_no
: Vehicle registration number.customer_id
: Foreign key linking to the customers
table.policy_type_id
: Foreign key linking to the policy_type
table.Clone the repository:
git clone https://github.com/yourusername/insurancemanagementdb.git
cd insurancemanagementdb
Create the database:
schema.sql
file to create the database and tables.Populate the database:
schema.sql
file includes sample data for initial testing.You can execute SQL queries on the database to retrieve or manipulate data. Use the views for quick access to combined information about customers and their policies.