1 /* 2 # PostgreSQL Database Modeler (pgModeler) 3 # 4 # Copyright 2006-2020 - Raphael Araújo e Silva <raphael@pgmodeler.io> 5 # 6 # This program is free software: you can redistribute it and/or modify 7 # it under the terms of the GNU General Public License as published by 8 # the Free Software Foundation version 3. 9 # 10 # This program is distributed in the hope that it will be useful, 11 # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 # GNU General Public License for more details. 14 # 15 # The complete text of GPLv3 is at LICENSE file on source code root directory. 16 # Also, you can get the complete GNU General Public License at <http://www.gnu.org/licenses/> 17 */ 18 19 /** 20 \ingroup libpgmodeler/pgsqltypes 21 \class DeferralType 22 \brief Implements the operations to manipulate constraints defferal modes/types. 23 **/ 24 25 #ifndef DEFERRAL_TYPE 26 #define DEFERRAL_TYPE 27 28 #include "templatetype.h" 29 30 class DeferralType: public TemplateType<DeferralType>{ 31 public: 32 static constexpr unsigned Immediate = 1, 33 Deferred = 2; 34 35 DeferralType(unsigned type_id); 36 DeferralType(const QString &type_name); 37 DeferralType(); 38 }; 39 40 #endif 41