-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodels.py
66 lines (43 loc) · 3.11 KB
/
models.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
from django.db import models
from django.db import *
class Cow_Traffic(models.models):
Animal Number(models.IntegerField(max_lenght= 5, blank= False, unique=True)
Group Name(models.CharField(max_lenght= 6, blank=False, null=False)
Date Time(models.DateTimeField(auto_now=True, auto_now_add=True, blank=False)
Previous Area(models.CharField(max_lenght= 50, unique=False)
Time Area(models.TimeField(auto_now=True, auto_now_add=True)
Device Name(models.CharField(max_length = 100, unique=True)
Resutls (models.Results = models.CharField(max_length = 150, unique=True)
Gate Decision(models.Gate Decision = models.CharField(max_length = 100, unique=False)
Milking Interval (models.Milking Interval = models.IntegerField(max_length=10)
Incompletely Milked Teats (models.Incompletely Milked Teats = models.CharField(max_length = 20, blank=True)
)
class FeedDPIDayCow1(models.Model):
Animal Id(models.Animal Id = models.IntegerField(max_lenght=5, blank=False, null=False, unique=True)
Observation day(models.Observation day = models.DateField(auto_now=True, auto_now_add=True, blank=True, null=True)
Feed quantity (models. Feed quantity = models.quantity(max_lenght=10, null=False)
Feed number (models.Feed number = models.IntegerField(max_length=5, null=True)
Equipment (models. Equipment = models.CharField(max_length = 20, null=False)
)
class Event List(models.Model):
Djurnr (models.Djurnr = models.IntegerField(max_lenght=10, null=False, unique=True)
Grupp (models.Grupp = models.CharField(max_length = 150, blank=False, unique=False)
Händelsedatum (models.Händelsedatum = models.DateField(auto_now=True, auto_now_add=True)
Typ (models.Typ = models.CharField(max_length = 30, blank=False)
Beskrivning (models.Beskrivning = models.CharField(max_length = 100, blank=False)
Utgångsdatum (models.Utgångsdatum = models.DateField(auto_now=True, auto_now_add=True)
)
class GIGACOW_activity_v1_20201102 01(models.Model):
Official Reg. No (models.Official Reg. No = models.CharField(max_length = 30, unique=True)
Average Activity Last 24h (models.Average Activity Last 24h = models.IntegerField()
(max_length = 10, unique=False, null=False)
Relative Activity (models.Relative Activity = models.fieldName = models.DecimalField(max_digits=3, decimal_places=2)
(max_length = 100, unique=False)
Gate Decision(models.Gate Decision = models.CharField(max_length = 100, unique=False)
Gate Decision(models.Gate Decision = models.CharField(max_length = 100, unique=False)
Gate Decision(models.Gate Decision = models.CharField(max_length = 100, unique=False)
Gate Decision(models.Gate Decision = models.CharField(max_length = 100, unique=False)
Gate Decision(models.Gate Decision = models.CharField(max_length = 100, unique=False)
Gate Decision(models.Gate Decision = models.CharField(max_length = 100, unique=False)
Gate Decision(models.Gate Decision = models.CharField(max_length = 100, unique=False)
)