from sqlalchemy.dialects.postgresql import JSONB
from sqlalchemy.sql.expression import text

from application.extensions import db


class KV(db.Model):
    "A keyvalue store"

    __tablename__ = 'kv'

    id = db.Column('id', db.Integer(), primary_key=True)
    key = db.Column('key', db.Text(), nullable=False)
    value = db.Column('value', JSONB, nullable=False)
    created_ts = db.Column(db.DateTime(timezone=True), server_default=text('NOW()'))

0a601f877d8dd371a5758d968a601a42d074d01d
<mask token>


class KV(db.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


class KV(db.Model):
    <mask token>
    __tablename__ = 'kv'
    id = db.Column('id', db.Integer(), primary_key=True)
    key = db.Column('key', db.Text(), nullable=False)
    value = db.Column('value', JSONB, nullable=False)
    created_ts = db.Column(db.DateTime(timezone=True), server_default=text(
        'NOW()'))

<mask token>


class KV(db.Model):
    """A keyvalue store"""
    __tablename__ = 'kv'
    id = db.Column('id', db.Integer(), primary_key=True)
    key = db.Column('key', db.Text(), nullable=False)
    value = db.Column('value', JSONB, nullable=False)
    created_ts = db.Column(db.DateTime(timezone=True), server_default=text(
        'NOW()'))

from sqlalchemy.dialects.postgresql import JSONB
from sqlalchemy.sql.expression import text
from application.extensions import db


class KV(db.Model):
    """A keyvalue store"""
    __tablename__ = 'kv'
    id = db.Column('id', db.Integer(), primary_key=True)
    key = db.Column('key', db.Text(), nullable=False)
    value = db.Column('value', JSONB, nullable=False)
    created_ts = db.Column(db.DateTime(timezone=True), server_default=text(
        'NOW()'))

from sqlalchemy.dialects.postgresql import JSONB
from sqlalchemy.sql.expression import text

from application.extensions import db


class KV(db.Model):
    "A keyvalue store"

    __tablename__ = 'kv'

    id = db.Column('id', db.Integer(), primary_key=True)
    key = db.Column('key', db.Text(), nullable=False)
    value = db.Column('value', JSONB, nullable=False)
    created_ts = db.Column(db.DateTime(timezone=True), server_default=text('NOW()'))
