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 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                    {"classNameId", Types.BIGINT},
038                    {"classPK", Types.BIGINT},
039                    {"articleId", Types.VARCHAR},
040                    {"version", Types.DOUBLE},
041                    {"title", Types.VARCHAR},
042                    {"urlTitle", Types.VARCHAR},
043                    {"description", Types.VARCHAR},
044                    {"content", Types.CLOB},
045                    {"type_", Types.VARCHAR},
046                    {"structureId", Types.VARCHAR},
047                    {"templateId", Types.VARCHAR},
048                    {"layoutUuid", Types.VARCHAR},
049                    {"displayDate", Types.TIMESTAMP},
050                    {"expirationDate", Types.TIMESTAMP},
051                    {"reviewDate", Types.TIMESTAMP},
052                    {"indexable", Types.BOOLEAN},
053                    {"smallImage", Types.BOOLEAN},
054                    {"smallImageId", Types.BIGINT},
055                    {"smallImageURL", Types.VARCHAR},
056                    {"status", Types.INTEGER},
057                    {"statusByUserId", Types.BIGINT},
058                    {"statusByUserName", Types.VARCHAR},
059                    {"statusDate", Types.TIMESTAMP}
060            };
061    
062            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,classNameId LONG,classPK LONG,articleId VARCHAR(75) null,version DOUBLE,title STRING null,urlTitle VARCHAR(150) null,description STRING null,content TEXT null,type_ VARCHAR(75) null,structureId VARCHAR(75) null,templateId VARCHAR(75) null,layoutUuid VARCHAR(75) null,displayDate DATE null,expirationDate DATE null,reviewDate DATE null,indexable BOOLEAN,smallImage BOOLEAN,smallImageId LONG,smallImageURL STRING null,status INTEGER,statusByUserId LONG,statusByUserName VARCHAR(75) null,statusDate DATE null)";
063    
064            public static final String TABLE_SQL_DROP = "drop table JournalArticle";
065    
066            public static final String[] TABLE_SQL_ADD_INDEXES = {
067                    "create index IX_DFF98523 on JournalArticle (companyId)",
068                    "create index IX_323DF109 on JournalArticle (companyId, status)",
069                    "create index IX_3D070845 on JournalArticle (companyId, version)",
070                    "create index IX_E82F322B on JournalArticle (companyId, version, status)",
071                    "create index IX_9356F865 on JournalArticle (groupId)",
072                    "create index IX_68C0F69C on JournalArticle (groupId, articleId)",
073                    "create index IX_4D5CD982 on JournalArticle (groupId, articleId, status)",
074                    "create unique index IX_85C52EEC on JournalArticle (groupId, articleId, version)",
075                    "create index IX_9CE6E0FA on JournalArticle (groupId, classNameId, classPK)",
076                    "create index IX_A2534AC2 on JournalArticle (groupId, classNameId, layoutUuid)",
077                    "create index IX_91E78C35 on JournalArticle (groupId, classNameId, structureId)",
078                    "create index IX_F43B9FF2 on JournalArticle (groupId, classNameId, templateId)",
079                    "create index IX_3C028C1E on JournalArticle (groupId, layoutUuid)",
080                    "create index IX_301D024B on JournalArticle (groupId, status)",
081                    "create index IX_2E207659 on JournalArticle (groupId, structureId)",
082                    "create index IX_8DEAE14E on JournalArticle (groupId, templateId)",
083                    "create index IX_22882D02 on JournalArticle (groupId, urlTitle)",
084                    "create index IX_D2D249E8 on JournalArticle (groupId, urlTitle, status)",
085                    "create index IX_F0A26B29 on JournalArticle (groupId, version, status)",
086                    "create index IX_33F49D16 on JournalArticle (resourcePrimKey)",
087                    "create index IX_3E2765FC on JournalArticle (resourcePrimKey, status)",
088                    "create index IX_EF9B7028 on JournalArticle (smallImageId)",
089                    "create index IX_F029602F on JournalArticle (uuid_)",
090                    "create unique index IX_3463D95B on JournalArticle (uuid_, groupId)"
091            };
092    
093    }