| Current File : //opt/cloudlinux/venv/lib64/python3.11/site-packages/ssa/__pycache__/db.cpython-311.pyc |
�
��e^
� � � d dl Z d dlZd dlZd dlmZmZ d dlmZmZmZm Z m
Z
mZmZm
Z
d dlmZ d dlmZ d dlmZ dZdZ e� � Z G d � d
e� � Zd� Zd� Zd
� Zd� Zd� Zdd�Zej defd�� � ZdS )� N)�datetime� timedelta)�Column�Boolean�DateTime�Integer�String�
create_engine�event�func)�declarative_base)� Inspector)�Sessionz/var/lve/ssa.db� c �� � e Zd ZdZdZ eed�� � Z eedd�� � Z eedd�� � Z
eed�� � Z eed�� � Z ee
d�� � Z ee
d�� � Z eed�� � Z eed�� � Z ee
d�� � Z e ed�� � ej � � � � � Z e ed�� � ej � � ej � � �
� � ZdS )�
RequestResultay
Describes processed request stored in database file.
E.g.
{
"timestamp": "1650008727",
"url": "http://mydomain.com/index.php",
"duration": 162077,
"hitting_limits": false,
"throttled_time": 0,
"io_throttled_time": 0,
"wordpress": true
}
Note: created_at, updated_at is saved in local TZ format
�
scrape_resultT)�primary_keyF)�index�nullable)r )�timezone)�server_default)�onupdater N)�__name__�
__module__�__qualname__�__doc__�
__tablename__r r �idr �domain�path� timestamp�durationr �is_slow_request�hitting_limits�throttled_time�io_throttled_time� wordpressr r �now�
created_at�
updated_at� � �=/opt/cloudlinux/venv/lib64/python3.11/site-packages/ssa/db.pyr r "