001    /**
002     * Copyright (c) 2000-2013 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.v6_2_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                    {"uuid_", Types.VARCHAR},
029                    {"groupId", Types.BIGINT},
030                    {"companyId", Types.BIGINT},
031                    {"creatorUserId", Types.BIGINT},
032                    {"classNameId", Types.BIGINT},
033                    {"classPK", Types.BIGINT},
034                    {"parentGroupId", Types.BIGINT},
035                    {"liveGroupId", Types.BIGINT},
036                    {"treePath", Types.VARCHAR},
037                    {"name", Types.VARCHAR},
038                    {"description", Types.VARCHAR},
039                    {"type_", Types.INTEGER},
040                    {"typeSettings", Types.CLOB},
041                    {"manualMembership", Types.BOOLEAN},
042                    {"membershipRestriction", Types.INTEGER},
043                    {"friendlyURL", Types.VARCHAR},
044                    {"site", Types.BOOLEAN},
045                    {"remoteStagingGroupCount", Types.INTEGER},
046                    {"active_", Types.BOOLEAN}
047            };
048    
049            public static final String TABLE_SQL_CREATE = "create table Group_ (uuid_ VARCHAR(75) null,groupId LONG not null primary key,companyId LONG,creatorUserId LONG,classNameId LONG,classPK LONG,parentGroupId LONG,liveGroupId LONG,treePath VARCHAR(75) null,name VARCHAR(150) null,description STRING null,type_ INTEGER,typeSettings TEXT null,manualMembership BOOLEAN,membershipRestriction INTEGER,friendlyURL VARCHAR(255) null,site BOOLEAN,remoteStagingGroupCount INTEGER,active_ BOOLEAN)";
050    
051            public static final String TABLE_SQL_DROP = "drop table Group_";
052    
053            public static final String[] TABLE_SQL_ADD_INDEXES = {
054                    "create index IX_ABA5CEC2 on Group_ (companyId)",
055                    "create unique index IX_D0D5E397 on Group_ (companyId, classNameId, classPK)",
056                    "create unique index IX_5DE0BE11 on Group_ (companyId, classNameId, liveGroupId, name)",
057                    "create index IX_ABE2D54 on Group_ (companyId, classNameId, parentGroupId)",
058                    "create unique index IX_5BDDB872 on Group_ (companyId, friendlyURL)",
059                    "create unique index IX_BBCA55B on Group_ (companyId, liveGroupId, name)",
060                    "create unique index IX_5AA68501 on Group_ (companyId, name)",
061                    "create index IX_5D75499E on Group_ (companyId, parentGroupId)",
062                    "create index IX_6C499099 on Group_ (companyId, parentGroupId, site)",
063                    "create index IX_63A2AABD on Group_ (companyId, site)",
064                    "create index IX_16218A38 on Group_ (liveGroupId)",
065                    "create index IX_7B590A7A on Group_ (type_, active_)",
066                    "create index IX_F981514E on Group_ (uuid_)",
067                    "create index IX_26CC761A on Group_ (uuid_, companyId)",
068                    "create unique index IX_754FBB1C on Group_ (uuid_, groupId)"
069            };
070    
071    }