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_0_0.util;
016    
017    import java.sql.Types;
018    
019    /**
020     * @author        Brian Wing Shun Chan
021     * @generated
022     */
023    public class JournalArticleTable {
024    
025            public static final String TABLE_NAME = "JournalArticle";
026    
027            public static final Object[][] TABLE_COLUMNS = {
028                    {"uuid_", Types.VARCHAR},
029                    {"id_", Types.BIGINT},
030                    {"resourcePrimKey", Types.BIGINT},
031                    {"groupId", Types.BIGINT},
032                    {"companyId", Types.BIGINT},
033                    {"userId", Types.BIGINT},
034                    {"userName", Types.VARCHAR},
035                    {"createDate", Types.TIMESTAMP},
036                    {"modifiedDate", Types.TIMESTAMP},
037                    {"articleId", Types.VARCHAR},
038                    {"version", Types.DOUBLE},
039                    {"title", Types.VARCHAR},
040                    {"urlTitle", Types.VARCHAR},
041                    {"description", Types.VARCHAR},
042                    {"content", Types.CLOB},
043                    {"type_", Types.VARCHAR},
044                    {"structureId", Types.VARCHAR},
045                    {"templateId", Types.VARCHAR},
046                    {"displayDate", Types.TIMESTAMP},
047                    {"status", Types.INTEGER},
048                    {"statusByUserId", Types.BIGINT},
049                    {"statusByUserName", Types.VARCHAR},
050                    {"statusDate", Types.TIMESTAMP},
051                    {"expirationDate", Types.TIMESTAMP},
052                    {"reviewDate", Types.TIMESTAMP},
053                    {"indexable", Types.BOOLEAN},
054                    {"smallImage", Types.BOOLEAN},
055                    {"smallImageId", Types.BIGINT},
056                    {"smallImageURL", Types.VARCHAR}
057            };
058    
059            public static final String TABLE_SQL_CREATE = "create table JournalArticle (uuid_ VARCHAR(75) null,id_ LONG not null primary key,resourcePrimKey LONG,groupId LONG,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,articleId VARCHAR(75) null,version DOUBLE,title VARCHAR(100) null,urlTitle VARCHAR(150) null,description STRING null,content TEXT null,type_ VARCHAR(75) null,structureId VARCHAR(75) null,templateId VARCHAR(75) null,displayDate DATE null,status INTEGER,statusByUserId LONG,statusByUserName VARCHAR(75) null,statusDate DATE null,expirationDate DATE null,reviewDate DATE null,indexable BOOLEAN,smallImage BOOLEAN,smallImageId LONG,smallImageURL STRING null)";
060    
061            public static final String TABLE_SQL_DROP = "drop table JournalArticle";
062    
063            public static final String[] TABLE_SQL_ADD_INDEXES = {
064                    "create index IX_DFF98523 on JournalArticle (companyId)",
065                    "create index IX_323DF109 on JournalArticle (companyId, status)",
066                    "create index IX_9356F865 on JournalArticle (groupId)",
067                    "create index IX_68C0F69C on JournalArticle (groupId, articleId)",
068                    "create index IX_4D5CD982 on JournalArticle (groupId, articleId, status)",
069                    "create unique index IX_85C52EEC on JournalArticle (groupId, articleId, version)",
070                    "create index IX_2E207659 on JournalArticle (groupId, structureId)",
071                    "create index IX_8DEAE14E on JournalArticle (groupId, templateId)",
072                    "create index IX_22882D02 on JournalArticle (groupId, urlTitle)",
073                    "create index IX_D2D249E8 on JournalArticle (groupId, urlTitle, status)",
074                    "create index IX_3E2765FC on JournalArticle (resourcePrimKey, status)",
075                    "create index IX_EF9B7028 on JournalArticle (smallImageId)",
076                    "create index IX_F029602F on JournalArticle (uuid_)",
077                    "create unique index IX_3463D95B on JournalArticle (uuid_, groupId)"
078            };
079    
080    }