mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
48 lines
964 B
Python
48 lines
964 B
Python
|
from sqlalchemy import *
|
||
|
from sqlalchemy.orm import *
|
||
|
from sqlalchemy.ext.declarative import declared_attr
|
||
|
|
||
|
|
||
|
class Cvstats:
|
||
|
__tablename__ = "cvstats"
|
||
|
|
||
|
@declared_attr
|
||
|
def id(self):
|
||
|
return Column(Integer, primary_key=True)
|
||
|
|
||
|
@declared_attr
|
||
|
def timestamp(self):
|
||
|
return Column(DateTime)
|
||
|
|
||
|
@declared_attr
|
||
|
def members_connected(self):
|
||
|
return Column(Integer)
|
||
|
|
||
|
@declared_attr
|
||
|
def users_connected(self):
|
||
|
return Column(Integer)
|
||
|
|
||
|
@declared_attr
|
||
|
def members_online(self):
|
||
|
return Column(Integer)
|
||
|
|
||
|
@declared_attr
|
||
|
def users_online(self):
|
||
|
return Column(Integer)
|
||
|
|
||
|
@declared_attr
|
||
|
def members_playing(self):
|
||
|
return Column(Integer)
|
||
|
|
||
|
@declared_attr
|
||
|
def users_playing(self):
|
||
|
return Column(Integer)
|
||
|
|
||
|
@declared_attr
|
||
|
def members_total(self):
|
||
|
return Column(Integer)
|
||
|
|
||
|
@declared_attr
|
||
|
def users_total(self):
|
||
|
return Column(Integer)
|