"""Data record"""
from django.db import models
from . import data_set, device


class DataRecord(models.Model):
    """Data record model"""
    value = models.DecimalField(max_digits=10, decimal_places=5)
    datetime = models.DateTimeField()
    data_set = models.ForeignKey(data_set.DataSet, on_delete=models.CASCADE)
    device = models.ForeignKey(device.Device, on_delete=models.CASCADE)

    class Meta:
        ordering = ('datetime',)
        indexes = [
            models.Index(fields=('datetime',))
        ]

494321a43519bc8632aa91f614e86f8d8919e322
<mask token>


class DataRecord(models.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>


    class Meta:
        ordering = 'datetime',
        indexes = [models.Index(fields=('datetime',))]

<mask token>


class DataRecord(models.Model):
    <mask token>
    value = models.DecimalField(max_digits=10, decimal_places=5)
    datetime = models.DateTimeField()
    data_set = models.ForeignKey(data_set.DataSet, on_delete=models.CASCADE)
    device = models.ForeignKey(device.Device, on_delete=models.CASCADE)


    class Meta:
        ordering = 'datetime',
        indexes = [models.Index(fields=('datetime',))]

<mask token>


class DataRecord(models.Model):
    """Data record model"""
    value = models.DecimalField(max_digits=10, decimal_places=5)
    datetime = models.DateTimeField()
    data_set = models.ForeignKey(data_set.DataSet, on_delete=models.CASCADE)
    device = models.ForeignKey(device.Device, on_delete=models.CASCADE)


    class Meta:
        ordering = 'datetime',
        indexes = [models.Index(fields=('datetime',))]

<mask token>
from django.db import models
from . import data_set, device


class DataRecord(models.Model):
    """Data record model"""
    value = models.DecimalField(max_digits=10, decimal_places=5)
    datetime = models.DateTimeField()
    data_set = models.ForeignKey(data_set.DataSet, on_delete=models.CASCADE)
    device = models.ForeignKey(device.Device, on_delete=models.CASCADE)


    class Meta:
        ordering = 'datetime',
        indexes = [models.Index(fields=('datetime',))]

"""Data record"""
from django.db import models
from . import data_set, device


class DataRecord(models.Model):
    """Data record model"""
    value = models.DecimalField(max_digits=10, decimal_places=5)
    datetime = models.DateTimeField()
    data_set = models.ForeignKey(data_set.DataSet, on_delete=models.CASCADE)
    device = models.ForeignKey(device.Device, on_delete=models.CASCADE)

    class Meta:
        ordering = ('datetime',)
        indexes = [
            models.Index(fields=('datetime',))
        ]
