mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-12-23 19:11:14 +01:00
12 lines
392 B
Python
12 lines
392 B
Python
|
from peewee import *
|
||
|
from playhouse.sqlite_ext import *
|
||
|
|
||
|
class Event(Model):
|
||
|
id = CharField(null=False, primary_key=True, max_length=30)
|
||
|
label = CharField(index=True, max_length=20)
|
||
|
camera = CharField(index=True, max_length=20)
|
||
|
start_time = DateTimeField()
|
||
|
end_time = DateTimeField()
|
||
|
top_score = FloatField()
|
||
|
false_positive = BooleanField()
|
||
|
zones = JSONField()
|