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 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                    {"description", Types.VARCHAR},
039                    {"content", Types.CLOB},
040                    {"displayDate", Types.TIMESTAMP},
041                    {"allowPingbacks", Types.BOOLEAN},
042                    {"allowTrackbacks", Types.BOOLEAN},
043                    {"trackbacks", Types.CLOB},
044                    {"smallImage", Types.BOOLEAN},
045                    {"smallImageId", Types.BIGINT},
046                    {"smallImageURL", Types.VARCHAR},
047                    {"status", Types.INTEGER},
048                    {"statusByUserId", Types.BIGINT},
049                    {"statusByUserName", Types.VARCHAR},
050                    {"statusDate", Types.TIMESTAMP}
051            };
052    
053            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,description VARCHAR(75) null,content TEXT null,displayDate DATE null,allowPingbacks BOOLEAN,allowTrackbacks BOOLEAN,trackbacks TEXT null,smallImage BOOLEAN,smallImageId LONG,smallImageURL STRING null,status INTEGER,statusByUserId LONG,statusByUserName VARCHAR(75) null,statusDate DATE null)";
054    
055            public static final String TABLE_SQL_DROP = "drop table BlogsEntry";
056    
057            public static final String[] TABLE_SQL_ADD_INDEXES = {
058                    "create index IX_72EF6041 on BlogsEntry (companyId)",
059                    "create index IX_430D791F on BlogsEntry (companyId, displayDate)",
060                    "create index IX_BB0C2905 on BlogsEntry (companyId, displayDate, status)",
061                    "create index IX_EB2DCE27 on BlogsEntry (companyId, status)",
062                    "create index IX_8CACE77B on BlogsEntry (companyId, userId)",
063                    "create index IX_A5F57B61 on BlogsEntry (companyId, userId, status)",
064                    "create index IX_81A50303 on BlogsEntry (groupId)",
065                    "create index IX_621E19D on BlogsEntry (groupId, displayDate)",
066                    "create index IX_F0E73383 on BlogsEntry (groupId, displayDate, status)",
067                    "create index IX_1EFD8EE9 on BlogsEntry (groupId, status)",
068                    "create unique index IX_DB780A20 on BlogsEntry (groupId, urlTitle)",
069                    "create index IX_FBDE0AA3 on BlogsEntry (groupId, userId, displayDate)",
070                    "create index IX_DA04F689 on BlogsEntry (groupId, userId, displayDate, status)",
071                    "create index IX_49E15A23 on BlogsEntry (groupId, userId, status)",
072                    "create index IX_69157A4D on BlogsEntry (uuid_)",
073                    "create unique index IX_1B1040FD on BlogsEntry (uuid_, groupId)"
074            };
075    
076    }