-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmodel.py
44 lines (29 loc) · 866 Bytes
/
model.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
#!/usr/bin/env python
# encoding: utf-8
from peewee import *
database_proxy = DatabaseProxy()
class UnknownField(object):
def __init__(self, *_, **__): pass
class BaseModel(Model):
class Meta:
database = database_proxy
pass
class TblStatInfoDetail30m(BaseModel):
id = BigAutoField()
uname = CharField()
worker = CharField()
totaldiff = DecimalField()
validcount = BigIntegerField()
invalidcount = BigIntegerField()
periodtime = DateTimeField()
class Meta:
table_name = 'tbl_stat_info_detail_30m'
class TblStatInfoTotal30m(BaseModel):
id = BigAutoField()
totaldiff = DecimalField()
hashrate = DecimalField()
validcount = BigIntegerField()
invalidcount = BigIntegerField()
periodtime = DateTimeField()
class Meta:
table_name = 'tbl_stat_info_total_30m'