django-clickhouse/tests/clickhouse_models.py

16 lines
393 B
Python
Raw Normal View History

from django_clickhouse.clickhouse_models import ClickHouseModel
from django_clickhouse.engines import MergeTree
from infi.clickhouse_orm import fields
from tests.models import TestModel
class TestClickHouseModel(ClickHouseModel):
django_model = TestModel
sync_delay = 5
created_date = fields.DateField()
value = fields.UInt32Field()
engine = MergeTree('created_Date')