# Path: OGRgeoConverter/tools/ogrinfo.py
# def get_version_based_format_re():
# def get_supported_formats():


from collections import namedtuple
from django.db import models
from OGRgeoConverter.tools import ogrinfo
        return ConversionJobFolder.objects.filter(
            conversion_job=conversion_job,
            folder_path=folder_path)


class ConversionJobFileMatch(models.Model):
    conversion_job_folder = models.ForeignKey(ConversionJobFolder)

    identified_format_name = models.CharField(max_length=50)
    is_archive = models.BooleanField()
    is_valid = models.BooleanField()
    in_process_id = models.CharField(max_length=50)

    class Meta:
        db_table = 'ogrgeoconverter_conversion_job_file_matches'


class ConversionJobFile(models.Model):
    conversion_job = models.ForeignKey(ConversionJob)
    file_match = models.ForeignKey(ConversionJobFileMatch)

    file_id = models.CharField(max_length=50)
    file_name = models.CharField(max_length=1024)
    matched_file_name = models.CharField(max_length=1024)
    is_uploaded = models.BooleanField()
    is_processed = models.BooleanField()
    is_removed = models.BooleanField()

    class Meta:
        db_table = 'ogrgeoconverter_conversion_job_files'

# Path: OGRgeoConverter/tools/ogrinfo.py
# def get_version_based_format_re():
# def get_supported_formats():


# Path: OGRgeoConverter/models.py
from collections import namedtuple
from django.db import models
from OGRgeoConverter.tools import ogrinfo

        return ConversionJobFolder.objects.filter(
            conversion_job=conversion_job,
            folder_path=folder_path)


class ConversionJobFileMatch(models.Model):
    conversion_job_folder = models.ForeignKey(ConversionJobFolder)

    identified_format_name = models.CharField(max_length=50)
    is_archive = models.BooleanField()
    is_valid = models.BooleanField()
    in_process_id = models.CharField(max_length=50)

    class Meta:
        db_table = 'ogrgeoconverter_conversion_job_file_matches'


class ConversionJobFile(models.Model):
    conversion_job = models.ForeignKey(ConversionJob)
    file_match = models.ForeignKey(ConversionJobFileMatch)

    file_id = models.CharField(max_length=50)
    file_name = models.CharField(max_length=1024)
    matched_file_name = models.CharField(max_length=1024)
    is_uploaded = models.BooleanField()
    is_processed = models.BooleanField()
    is_removed = models.BooleanField()

    class Meta:
        db_table = 'ogrgeoconverter_conversion_job_files'

        unique_together = (('conversion_job', 'file_id'),)