-- +--------------------------------------------------------------------+
-- | Copyright CiviCRM LLC. All rights reserved.                        |
-- |                                                                    |
-- | This work is published under the GNU AGPLv3 license with some      |
-- | permitted exceptions and without any warranty. For full license    |
-- | and copyright information, see https://civicrm.org/licensing       |
-- +--------------------------------------------------------------------+
--
-- Generated from schema.tpl
-- DO NOT EDIT.  Generated by CRM_Core_CodeGen
--
-- /*******************************************************
-- *
-- * Clean up the existing tables - this section generated from drop.tpl
-- *
-- *******************************************************/



-- /*******************************************************
-- *
-- * Create new tables
-- *
-- *******************************************************/

-- /*******************************************************
-- *
-- * civicrm_contact_layout
-- *
-- * Layouts for the contact summary page
-- *
-- *******************************************************/
CREATE TABLE `civicrm_contact_layout` (
  `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Unique ContactLayout ID',
  `label` varchar(255) NOT NULL COMMENT 'Name of this layout.',
  `contact_type` varchar(255) COMMENT 'The type of contacts this layout applies to.',
  `contact_sub_type` varchar(255) COMMENT 'The contacts subtypes this layout applies to.',
  `groups` varchar(255) COMMENT 'Show layout to users belonging to these groups.',
  `weight` int DEFAULT 0,
  `blocks` longtext NOT NULL COMMENT 'Contains json encoded layout blocks.',
  `tabs` longtext COMMENT 'Contains json encoded layout tabs.',
  PRIMARY KEY (`id`)
)
ENGINE=InnoDB;
