from sqlalchemy import Boolean
from sqlalchemy import Column
from sqlalchemy import ForeignKey
from sqlalchemy import Integer
from sqlalchemy import String

# relative
from . import Base


class NodeRoute(Base):
    __tablename__ = "node_route"

    id = Column(Integer(), primary_key=True, autoincrement=True)
    node_id = Column(Integer, ForeignKey("node.id"))
    host_or_ip = Column(String(255))
    is_vpn = Column(Boolean(), default=False)

from sqlalchemy import Boolean
from sqlalchemy import Column
from sqlalchemy import ForeignKey
from sqlalchemy import Integer
from sqlalchemy import String

# relative
from . import Base


class NodeRoute(Base):
    __tablename__ = "node_route"

    id = Column(Integer(), primary_key=True, autoincrement=True)
    node_id = Column(Integer, ForeignKey("node.id"))
    host_or_ip = Column(String(255), default="")
    is_vpn = Column(Boolean(), default=False)
    vpn_endpoint = Column(String(255), default="")
    vpn_key = Column(String(255), default="")

ADD vpn_endpoint and vpn_key columns
ADD vpn_endpoint and vpn_key columns

  from sqlalchemy import Boolean
  from sqlalchemy import Column
  from sqlalchemy import ForeignKey
  from sqlalchemy import Integer
  from sqlalchemy import String
  
  # relative
  from . import Base
  
  
  class NodeRoute(Base):
      __tablename__ = "node_route"
  
      id = Column(Integer(), primary_key=True, autoincrement=True)
      node_id = Column(Integer, ForeignKey("node.id"))
-     host_or_ip = Column(String(255))
+     host_or_ip = Column(String(255), default="")
      is_vpn = Column(Boolean(), default=False)
+     vpn_endpoint = Column(String(255), default="")
+     vpn_key = Column(String(255), default="")
  
ADD vpn_endpoint and vpn_key columns
## Code Before:
from sqlalchemy import Boolean
from sqlalchemy import Column
from sqlalchemy import ForeignKey
from sqlalchemy import Integer
from sqlalchemy import String

# relative
from . import Base


class NodeRoute(Base):
    __tablename__ = "node_route"

    id = Column(Integer(), primary_key=True, autoincrement=True)
    node_id = Column(Integer, ForeignKey("node.id"))
    host_or_ip = Column(String(255))
    is_vpn = Column(Boolean(), default=False)

## Instruction:
ADD vpn_endpoint and vpn_key columns
## Code After:
from sqlalchemy import Boolean
from sqlalchemy import Column
from sqlalchemy import ForeignKey
from sqlalchemy import Integer
from sqlalchemy import String

# relative
from . import Base


class NodeRoute(Base):
    __tablename__ = "node_route"

    id = Column(Integer(), primary_key=True, autoincrement=True)
    node_id = Column(Integer, ForeignKey("node.id"))
    host_or_ip = Column(String(255), default="")
    is_vpn = Column(Boolean(), default=False)
    vpn_endpoint = Column(String(255), default="")
    vpn_key = Column(String(255), default="")
