# Path: cpa/adapter.py



from sqlalchemy import Column, Integer, String, ForeignKey, Text, Float
from cpa.adapter import Base

    id = Column(Integer, primary_key=True)
    codpart = Column(Integer, unique=True)
    partido =  Column(String(50))
    codprov = Column(String(1), ForeignKey('provincias.codprov'))


class Localidad(Base):
    __tablename__ = 'localidad'

    id = Column(Integer, primary_key=True)
    codloc = Column(Integer, unique=True)
    localidad =  Column(String(50))
    codpostal =  Column(String(50))

    manzana = Column(String(3))
    codprov = Column(String(1), ForeignKey('provincias.codprov'))
    cp = Column(Integer)

    codpart = Column(Integer, ForeignKey('partidos.codpart'))


class Calles(Base):
    __tablename__ = 'calles'

    id = Column(Integer, primary_key=True)
    codcalle = Column(Integer)
    tipocalle =  Column(String(50))
    nombrecalle =  Column(String(50))
    barrio =  Column(String(50))

# Path: cpa/adapter.py



# Path: cpa/models.py
from sqlalchemy import Column, Integer, String, ForeignKey, Text, Float
from cpa.adapter import Base


    id = Column(Integer, primary_key=True)
    codpart = Column(Integer, unique=True)
    partido =  Column(String(50))
    codprov = Column(String(1), ForeignKey('provincias.codprov'))


class Localidad(Base):
    __tablename__ = 'localidad'

    id = Column(Integer, primary_key=True)
    codloc = Column(Integer, unique=True)
    localidad =  Column(String(50))
    codpostal =  Column(String(50))

    manzana = Column(String(3))
    codprov = Column(String(1), ForeignKey('provincias.codprov'))
    cp = Column(Integer)

    codpart = Column(Integer, ForeignKey('partidos.codpart'))


class Calles(Base):
    __tablename__ = 'calles'

    id = Column(Integer, primary_key=True)
    codcalle = Column(Integer)
    tipocalle =  Column(String(50))
    nombrecalle =  Column(String(50))
    barrio =  Column(String(50))

    referencia =  Column(String(50))