001    /**
002     * Copyright (c) 2000-present 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.v7_0_0.util;
016    
017    import java.sql.Types;
018    
019    /**
020     * @author        Brian Wing Shun Chan
021     * @generated
022     */
023    public class DLFolderTable {
024    
025            public static final String TABLE_NAME = "DLFolder";
026    
027            public static final Object[][] TABLE_COLUMNS = {
028                    {"uuid_", Types.VARCHAR},
029                    {"folderId", 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                    {"repositoryId", Types.BIGINT},
037                    {"mountPoint", Types.BOOLEAN},
038                    {"parentFolderId", Types.BIGINT},
039                    {"treePath", Types.VARCHAR},
040                    {"name", Types.VARCHAR},
041                    {"description", Types.VARCHAR},
042                    {"lastPostDate", Types.TIMESTAMP},
043                    {"defaultFileEntryTypeId", Types.BIGINT},
044                    {"hidden_", Types.BOOLEAN},
045                    {"restrictionType", Types.INTEGER},
046                    {"status", Types.INTEGER},
047                    {"statusByUserId", Types.BIGINT},
048                    {"statusByUserName", Types.VARCHAR},
049                    {"statusDate", Types.TIMESTAMP}
050            };
051    
052            public static final String TABLE_SQL_CREATE = "create table DLFolder (uuid_ VARCHAR(75) null,folderId LONG not null primary key,groupId LONG,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,repositoryId LONG,mountPoint BOOLEAN,parentFolderId LONG,treePath STRING null,name VARCHAR(255) null,description STRING null,lastPostDate DATE null,defaultFileEntryTypeId LONG,hidden_ BOOLEAN,restrictionType INTEGER,status INTEGER,statusByUserId LONG,statusByUserName VARCHAR(75) null,statusDate DATE null)";
053    
054            public static final String TABLE_SQL_DROP = "drop table DLFolder";
055    
056            public static final String[] TABLE_SQL_ADD_INDEXES = {
057                    "create index IX_E79BE432 on DLFolder (companyId, status)",
058                    "create index IX_C88430AB on DLFolder (groupId, mountPoint, parentFolderId, hidden_, status)",
059                    "create index IX_CE360BF6 on DLFolder (groupId, parentFolderId, hidden_, status)",
060                    "create unique index IX_902FD874 on DLFolder (groupId, parentFolderId, name)",
061                    "create index IX_51556082 on DLFolder (parentFolderId, name)",
062                    "create index IX_6F63F140 on DLFolder (repositoryId, mountPoint)",
063                    "create index IX_6747B2BC on DLFolder (repositoryId, parentFolderId)",
064                    "create index IX_DA448450 on DLFolder (uuid_, companyId)",
065                    "create unique index IX_3CC1DED2 on DLFolder (uuid_, groupId)"
066            };
067    
068    }