# Path: dnsforever/config.py



from sqlalchemy import create_engine
from sqlalchemy import Column, Integer, String, Unicode, Boolean, DateTime, \
    UnicodeText
from sqlalchemy import ForeignKey
from sqlalchemy.orm import sessionmaker, validates, relationship
from sqlalchemy.sql import functions
from sqlalchemy.ext.declarative import declarative_base
from dnsforever.config import database_url, webforwarding_domain
import re
import unittest
import string
import random

    memo = Column(UnicodeText, default=u'')


class RecordWebParking(Record):
    __tablename__ = 'record_webparking'

    __mapper_args__ = {
        'polymorphic_identity': 'webparking',
    }

    def __init__(self, domain, name, ttl=3600):
        self.domain = domain
        self.name = name
        self.rdata = webforwarding_domain
        self.ttl = ttl
        self.cls = 0
        self.type = u'CNAME'
        self.parking_type = 'default'
        self.parking_data = u''


    id = Column(Integer, ForeignKey('record.id'), primary_key=True)

    parking_type = Column(String(32), nullable=False, default='default')
    parking_data = Column(UnicodeText, default=u'')

    memo = Column(UnicodeText, default=u'')



# Path: dnsforever/config.py



# Path: dnsforever/models.py
from sqlalchemy import create_engine
from sqlalchemy import Column, Integer, String, Unicode, Boolean, DateTime, \
    UnicodeText
from sqlalchemy import ForeignKey
from sqlalchemy.orm import sessionmaker, validates, relationship
from sqlalchemy.sql import functions
from sqlalchemy.ext.declarative import declarative_base
from dnsforever.config import database_url, webforwarding_domain
import re
import unittest
import string
import random


    memo = Column(UnicodeText, default=u'')


class RecordWebParking(Record):
    __tablename__ = 'record_webparking'

    __mapper_args__ = {
        'polymorphic_identity': 'webparking',
    }

    def __init__(self, domain, name, ttl=3600):
        self.domain = domain
        self.name = name
        self.rdata = webforwarding_domain
        self.ttl = ttl
        self.cls = 0
        self.type = u'CNAME'
        self.parking_type = 'default'
        self.parking_data = u''


    id = Column(Integer, ForeignKey('record.id'), primary_key=True)

    parking_type = Column(String(32), nullable=False, default='default')
    parking_data = Column(UnicodeText, default=u'')

    memo = Column(UnicodeText, default=u'')



engine = create_engine(database_url, pool_recycle=300)