from django.core.management import call_command

from django.core.management.base import BaseCommand





SEED_COMMANDS = [

    'seed_companies',

    'seed_job_categories',

    'seed_jobs',

    'seed_seekers',

    'seed_blog',

    'seed_podcast',

    'seed_plans',

    'seed_testimonials',

]





class Command(BaseCommand):

    help = 'Run all PEZAJOB seed commands in dependency order'



    def handle(self, *args, **options):

        for command in SEED_COMMANDS:

            self.stdout.write(self.style.MIGRATE_HEADING(f'Running {command}...'))

            call_command(command)



        self.stdout.write(self.style.SUCCESS('All seed commands completed successfully.'))

