hk ~dZddlmZddlmZddlmZmZmZddl m Z m Z GddeZ Gdd e Z d S) u  This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program.  If not, see . Copyright © 2019 Cloud Linux Software Inc. This software is also available under ImunifyAV commercial license, see ) annotations) NamedTuple) CharField IntegerFieldTimestampField)instanceModelcheZdZUded<ded<ded<dZded<edd Zdd Zd ZdZ dS)WPSitestrdocrootdomainintuid1.0.0versionsite WordpressSitereturncH||j|j|j|jS)z7Create a WPSite instance from a WordpressSite instance.r rrrr)clsrs I/opt/imunify360/venv/lib/python3.11/site-packages/imav/model/wordpress.pyfrom_wordpress_sitezWPSite.from_wordpress_site#s1sL;L     cFt|j|j|j|S)z5Create a new WPSite instance with an updated version.r)r r rr)selfrs rbuild_with_versionzWPSite.build_with_version-s+L;     rct|tstS|j|j|jf|j|j|jfkSN) isinstancer NotImplementedr rr)rothers r__eq__z WPSite.__eq__6sH%(( "! ! dk484 M L I9   rcDt|j|j|jfSr )hashr rr)rs r__hash__zWPSite.__hash__@sT\4;9:::rN)rrrr )rr rr ) __name__ __module__ __qualname____annotations__r classmethodrrr$r'rrr r sLLLKKK HHHG   [        ;;;;;rr ceZdZGddZeddZedZedZe ddZ ed dZ dS) rc eZdZejZdZdS)WordpressSite.Metawordpress_siteN)r(r)r*rdbdatabasedb_tabler-rrMetar0Es;#rr5TF) primary_keynull)r7N)defaultr7r) r(r)r*r5rr rrrrmanually_deleted_atrr-rrrrDs$$$$$$$$iDu555G YE " " "F ,E " " "C(.DAAAie444GGGrrN)__doc__ __future__rtypingrpeeweerrrdefence360agent.modelrr r rr-rrr?s*#"""""::::::::::11111111$;$;$;$;$;Z$;$;$;N 5 5 5 5 5E 5 5 5 5 5r