secret.py 399 Bytes
Newer Older
Thomas's avatar
Thomas committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
import strongr.core.gateways as gateways
from sqlalchemy import Column, String

from strongr.core.sqlalchemydatatypes.uuidtype import UUIDType

import uuid

Base = gateways.Gateways.sqlalchemy_base()

class Secret(Base):
    __tablename__ = 'secrets'

    secret_id = Column(UUIDType, default=uuid.uuid4, primary_key=True)
    key = Column(String(512), unique=True)
    value = Column(String(2048))