001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.upgrade.v6_0_0.util;
016    
017    import java.sql.Types;
018    
019    /**
020     * @author        Brian Wing Shun Chan
021     * @generated
022     */
023    public class BlogsEntryTable {
024    
025            public static final String TABLE_NAME = "BlogsEntry";
026    
027            public static final Object[][] TABLE_COLUMNS = {
028                    {"uuid_", Types.VARCHAR},
029                    {"entryId", Types.BIGINT},
030                    {"groupId", Types.BIGINT},
031                    {"companyId", Types.BIGINT},
032                    {"userId", Types.BIGINT},
033                    {"userName", Types.VARCHAR},
034                    {"createDate", Types.TIMESTAMP},
035                    {"modifiedDate", Types.TIMESTAMP},
036                    {"title", Types.VARCHAR},
037                    {"urlTitle", Types.VARCHAR},
038                    {"content", Types.CLOB},
039                    {"displayDate", Types.TIMESTAMP},
040                    {"allowPingbacks", Types.BOOLEAN},
041                    {"allowTrackbacks", Types.BOOLEAN},
042                    {"trackbacks", Types.CLOB},
043                    {"status", Types.INTEGER},
044                    {"statusByUserId", Types.BIGINT},
045                    {"statusByUserName", Types.VARCHAR},
046                    {"statusDate", Types.TIMESTAMP}
047            };
048    
049            public static final String TABLE_SQL_CREATE = "create table BlogsEntry (uuid_ VARCHAR(75) null,entryId LONG not null primary key,groupId LONG,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,title VARCHAR(150) null,urlTitle VARCHAR(150) null,content TEXT null,displayDate DATE null,allowPingbacks BOOLEAN,allowTrackbacks BOOLEAN,trackbacks TEXT null,status INTEGER,statusByUserId LONG,statusByUserName VARCHAR(75) null,statusDate DATE null)";
050    
051            public static final String TABLE_SQL_DROP = "drop table BlogsEntry";
052    
053            public static final String[] TABLE_SQL_ADD_INDEXES = {
054                    "create index IX_72EF6041 on BlogsEntry (companyId)",
055                    "create index IX_430D791F on BlogsEntry (companyId, displayDate)",
056                    "create index IX_BB0C2905 on BlogsEntry (companyId, displayDate, status)",
057                    "create index IX_EB2DCE27 on BlogsEntry (companyId, status)",
058                    "create index IX_8CACE77B on BlogsEntry (companyId, userId)",
059                    "create index IX_A5F57B61 on BlogsEntry (companyId, userId, status)",
060                    "create index IX_81A50303 on BlogsEntry (groupId)",
061                    "create index IX_621E19D on BlogsEntry (groupId, displayDate)",
062                    "create index IX_F0E73383 on BlogsEntry (groupId, displayDate, status)",
063                    "create index IX_1EFD8EE9 on BlogsEntry (groupId, status)",
064                    "create unique index IX_DB780A20 on BlogsEntry (groupId, urlTitle)",
065                    "create index IX_FBDE0AA3 on BlogsEntry (groupId, userId, displayDate)",
066                    "create index IX_DA04F689 on BlogsEntry (groupId, userId, displayDate, status)",
067                    "create index IX_49E15A23 on BlogsEntry (groupId, userId, status)",
068                    "create index IX_69157A4D on BlogsEntry (uuid_)",
069                    "create unique index IX_1B1040FD on BlogsEntry (uuid_, groupId)"
070            };
071    
072    }