K6hdZddlmZmZddlmZddlmZddlm Z m Z m Z m Z m Z mZGdde ZGdd e ZGd d e Zed d dee dedefdZd 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 ) ExitStackcontextmanager)NamedTemporaryFile)List) BooleanField CharFieldForeignKeyField IntegerFieldModelSqliteDatabaseceZdZGddZeZedZedZedZe dZ e dZ dS)UserceZdZdZdS) User.MetausersN__name__ __module__ __qualname__db_tableH/opt/imunify360/venv/lib/python3.11/site-packages/imav/patchman/model.pyMetar%rr)defaultFrN) rrrrrnameparentemaillanguager suspendedr levelrrrrr$s 9;;D Yr " " "F Ib ! ! !Ey$$$H U+++I L # # #EEErrcVeZdZGddZeZeedZdS)DomainceZdZdZdS) Domain.MetadomainsNrrrrrr'1srrr(backrefN) rrrrrrr ruserrrrr%r%0sW 9;;D ?4 3 3 3DDDrr%cVeZdZGddZeZeedZdS)PathceZdZdZdS) Path.MetapathsNrrrrrr/9rrrr0r)N) rrrrrrr r%domainrrrr-r-8sW 9;;D _VW 5 5 5FFFrr-N)prefixmodels target_dirr2c#jKtd|rd|dznd|d}t|j}t}||||||5|||VddddS#1swxYwYdS)Nz.db patchman__rF)suffixr2dirdelete)rr rr enter_contextbind_ctx create_tables)r3r4r2tmp_filedbstacks r patchman_dbrA@s!-3;{\\\))  H  & &B KKE   F++,,,     sB((B,/B,)__doc__ contextlibrrtempfilertypingrpeeweerrr r r r rr%r-strrArrrrHsk*10000000'''''' $ $ $ $ $5 $ $ $44444U444666665666GKU Cr