001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.upgrade.v7_0_0.util;
016    
017    import java.sql.Types;
018    
019    /**
020     * @author        Brian Wing Shun Chan
021     * @generated
022     */
023    public class GroupTable {
024    
025            public static final String TABLE_NAME = "Group_";
026    
027            public static final Object[][] TABLE_COLUMNS = {
028                    {"mvccVersion", Types.BIGINT},
029                    {"uuid_", Types.VARCHAR},
030                    {"groupId", Types.BIGINT},
031                    {"companyId", Types.BIGINT},
032                    {"creatorUserId", Types.BIGINT},
033                    {"classNameId", Types.BIGINT},
034                    {"classPK", Types.BIGINT},
035                    {"parentGroupId", Types.BIGINT},
036                    {"liveGroupId", Types.BIGINT},
037                    {"treePath", Types.VARCHAR},
038                    {"groupKey", Types.VARCHAR},
039                    {"name", Types.VARCHAR},
040                    {"description", Types.VARCHAR},
041                    {"type_", Types.INTEGER},
042                    {"typeSettings", Types.CLOB},
043                    {"manualMembership", Types.BOOLEAN},
044                    {"membershipRestriction", Types.INTEGER},
045                    {"friendlyURL", Types.VARCHAR},
046                    {"site", Types.BOOLEAN},
047                    {"remoteStagingGroupCount", Types.INTEGER},
048                    {"inheritContent", Types.BOOLEAN},
049                    {"active_", Types.BOOLEAN}
050            };
051    
052            public static final String TABLE_SQL_CREATE = "create table Group_ (mvccVersion LONG default 0,uuid_ VARCHAR(75) null,groupId LONG not null primary key,companyId LONG,creatorUserId LONG,classNameId LONG,classPK LONG,parentGroupId LONG,liveGroupId LONG,treePath STRING null,groupKey VARCHAR(150) null,name STRING null,description STRING null,type_ INTEGER,typeSettings TEXT null,manualMembership BOOLEAN,membershipRestriction INTEGER,friendlyURL VARCHAR(255) null,site BOOLEAN,remoteStagingGroupCount INTEGER,inheritContent BOOLEAN,active_ BOOLEAN)";
053    
054            public static final String TABLE_SQL_DROP = "drop table Group_";
055    
056            public static final String[] TABLE_SQL_ADD_INDEXES = {
057                    "create unique index IX_D0D5E397 on Group_ (companyId, classNameId, classPK)",
058                    "create unique index IX_A729E3A6 on Group_ (companyId, classNameId, liveGroupId, groupKey)",
059                    "create index IX_ABE2D54 on Group_ (companyId, classNameId, parentGroupId)",
060                    "create unique index IX_5BDDB872 on Group_ (companyId, friendlyURL)",
061                    "create unique index IX_ACD2B296 on Group_ (companyId, groupKey)",
062                    "create unique index IX_AACD15F0 on Group_ (companyId, liveGroupId, groupKey)",
063                    "create index IX_D4BFF38B on Group_ (companyId, parentGroupId, site, inheritContent)",
064                    "create index IX_63A2AABD on Group_ (companyId, site)",
065                    "create index IX_16218A38 on Group_ (liveGroupId)",
066                    "create index IX_7B590A7A on Group_ (type_, active_)",
067                    "create index IX_26CC761A on Group_ (uuid_, companyId)",
068                    "create unique index IX_754FBB1C on Group_ (uuid_, groupId)"
069            };
070    
071    }