~sircmpwn/names.sr.ht

611e79fef7b71f02cc90c14da319e807c4bf8050 — Drew DeVault 1 year, 9 months ago 101e833
Change table naming scheme for TLD-specific tables
1 files changed, 11 insertions(+), 11 deletions(-)

M names/types/gtld_specific.py
M names/types/gtld_specific.py => names/types/gtld_specific.py +11 -11
@@ 38,7 38,7 @@ class AeroExtraData(Base, ExtraDataMixin):

    [nic.aero]: http://www.nic.aero/registration/manage_your_aero_id/apply
    """
    __tablename__ = "aero_extra_data"
    __tablename__ = "extra_data_aero"
    aero_ens_id = sa.Column(sa.Unicode, nullable=False)
    """Eligibility and Name Selection (ENS) identifier"""
    aero_ens_password = sa.Column(sa.Unicode, nullable=False)


@@ 137,7 137,7 @@ class AuRegistrantIdType(enum.Enum):
    """Australian Business Number (ABN)"""

class AuExtraData(Base, ExtraDataMixin):
    __tablename__ = "au_extra_data"
    __tablename__ = "extra_data_au"
    # optional for .id.au unless egibility type is also specified:
    eligibility_id = sa.Column(sa.Unicode())
    """


@@ 183,7 183,7 @@ class AuExtraData(Base, ExtraDataMixin):

### .cl
class ClExtraData(Base, ExtraDataMixin):
    __tablename__ = "cl_extra_data"
    __tablename__ = "extra_data_cl"

    id_card_number = sa.Column(sa.Unicode) # required if type = individual
    """The number of the individual's identity card."""


@@ 199,7 199,7 @@ class ClExtraData(Base, ExtraDataMixin):
### .com.ar
### .com.pt
class PtExtraData(Base, ExtraDataMixin):
    __tablename__ = "pt_extra_data"
    __tablename__ = "extra_data_pt"

    id_card_number = sa.Column(sa.Unicode) # required if type = individual
    """The number of the individual's identity card."""


@@ 213,7 213,7 @@ class PtExtraData(Base, ExtraDataMixin):

### .com.br
class ComBrExtraData(Base, ExtraDataMixin):
    __tablename__ = "com_br_extra_data"
    __tablename__ = "extra_data_com_br"

    br_register_number = sa.Column(sa.Unicode, nullable=False)
    """


@@ 230,7 230,7 @@ class CoopExtraData(Base, ExtraDataMixin):
    Registration of .COOP domains is restricted to cooperatives and related
    organizations.
    """
    __tablename__ = "coop_extra_data"
    __tablename__ = "extra_data_coop"

    # TODO: We need to figure out how to obtain one of these
    coop_verification_code = sa.Column(sa.Unicode, nullable=False)


@@ 250,7 250,7 @@ class EsExtraData(Base, ExtraDataMixin):
    Registration of a .es domain requires validation by identification number
    (in most cases an NIF or NIF number).
    """
    __tablename__ = "es_extra_data"
    __tablename__ = "extra_data_es"

    es_id_type = sa.Column(sau.ChoiceType(
        EsIdType, impl=sa.Unicode), nullable=False)


@@ 292,7 292,7 @@ class EuCitizenship(enum.Enum):

class EuExtraData(Base, ExtraDataMixin):
    """Registration of .eu domains is limited to EU citizens only."""
    __tablename__ = "eu_extra_data"
    __tablename__ = "extra_data_eu"

    country_of_citizenship = sa.Column(sau.ChoiceType(
        EuCitizenship, impl=sa.Unicode), nullable=False)


@@ 300,7 300,7 @@ class EuExtraData(Base, ExtraDataMixin):

### .de
class DeExtraData(Base, ExtraDataMixin):
    __tablename__ = "de_extra_data"
    __tablename__ = "extra_data_de"

    registrant_type = sa.Column(sau.ChoiceType(
        RegistrantType, impl=sa.Unicode), nullable=False)


@@ 308,7 308,7 @@ class DeExtraData(Base, ExtraDataMixin):

### .dk
class DkExtraData(Base, ExtraDataMixin):
    __tablename__ = "dk_extra_data"
    __tablename__ = "extra_data_dk"

    registrant_type = sa.Column(sau.ChoiceType(
        RegistrantType, impl=sa.Unicode), nullable=False)


@@ 338,7 338,7 @@ class ItEntityType(enum.Enum):
    """

class ItExtraData(Base, ExtraDataMixin):
    __tablename__ = "it_extra_data"
    __tablename__ = "extra_data_it"
    entity_type = sa.Column(sau.ChoiceType(ItEntityType, impl=sa.Integer))
    """The legal entity type of registrant"""