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_1_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                    {"groupId", Types.BIGINT},
029                    {"companyId", Types.BIGINT},
030                    {"creatorUserId", Types.BIGINT},
031                    {"classNameId", Types.BIGINT},
032                    {"classPK", Types.BIGINT},
033                    {"parentGroupId", Types.BIGINT},
034                    {"liveGroupId", Types.BIGINT},
035                    {"name", Types.VARCHAR},
036                    {"description", Types.VARCHAR},
037                    {"type_", Types.INTEGER},
038                    {"typeSettings", Types.VARCHAR},
039                    {"friendlyURL", Types.VARCHAR},
040                    {"site", Types.BOOLEAN},
041                    {"active_", Types.BOOLEAN}
042            };
043    
044            public static final String TABLE_SQL_CREATE = "create table Group_ (groupId LONG not null primary key,companyId LONG,creatorUserId LONG,classNameId LONG,classPK LONG,parentGroupId LONG,liveGroupId LONG,name VARCHAR(150) null,description STRING null,type_ INTEGER,typeSettings STRING null,friendlyURL VARCHAR(100) null,site BOOLEAN,active_ BOOLEAN)";
045    
046            public static final String TABLE_SQL_DROP = "drop table Group_";
047    
048            public static final String[] TABLE_SQL_ADD_INDEXES = {
049                    "create index IX_ABA5CEC2 on Group_ (companyId)",
050                    "create unique index IX_D0D5E397 on Group_ (companyId, classNameId, classPK)",
051                    "create unique index IX_5DE0BE11 on Group_ (companyId, classNameId, liveGroupId, name)",
052                    "create unique index IX_5BDDB872 on Group_ (companyId, friendlyURL)",
053                    "create unique index IX_BBCA55B on Group_ (companyId, liveGroupId, name)",
054                    "create unique index IX_5AA68501 on Group_ (companyId, name)",
055                    "create index IX_16218A38 on Group_ (liveGroupId)",
056                    "create index IX_7B590A7A on Group_ (type_, active_)"
057            };
058    
059    }