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 DLFileEntryTable {
024    
025            public static final String TABLE_NAME = "DLFileEntry";
026    
027            public static final Object[][] TABLE_COLUMNS = {
028                    {"uuid_", Types.VARCHAR},
029                    {"fileEntryId", Types.BIGINT},
030                    {"groupId", Types.BIGINT},
031                    {"companyId", Types.BIGINT},
032                    {"userId", Types.BIGINT},
033                    {"userName", Types.VARCHAR},
034                    {"versionUserId", Types.BIGINT},
035                    {"versionUserName", Types.VARCHAR},
036                    {"createDate", Types.TIMESTAMP},
037                    {"modifiedDate", Types.TIMESTAMP},
038                    {"folderId", Types.BIGINT},
039                    {"name", Types.VARCHAR},
040                    {"title", Types.VARCHAR},
041                    {"description", Types.VARCHAR},
042                    {"version", Types.VARCHAR},
043                    {"pendingVersion", Types.VARCHAR},
044                    {"size_", Types.INTEGER},
045                    {"readCount", Types.INTEGER},
046                    {"extraSettings", Types.CLOB}
047            };
048    
049            public static final String TABLE_SQL_CREATE = "create table DLFileEntry (uuid_ VARCHAR(75) null,fileEntryId LONG not null primary key,groupId LONG,companyId LONG,userId LONG,userName VARCHAR(75) null,versionUserId LONG,versionUserName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,folderId LONG,name VARCHAR(255) null,title VARCHAR(255) null,description STRING null,version VARCHAR(75) null,pendingVersion VARCHAR(75) null,size_ INTEGER,readCount INTEGER,extraSettings TEXT null)";
050    
051            public static final String TABLE_SQL_DROP = "drop table DLFileEntry";
052    
053            public static final String[] TABLE_SQL_ADD_INDEXES = {
054                    "create index IX_4CB1B2B4 on DLFileEntry (companyId)",
055                    "create index IX_F4AF5636 on DLFileEntry (groupId)",
056                    "create index IX_93CF8193 on DLFileEntry (groupId, folderId)",
057                    "create unique index IX_5391712 on DLFileEntry (groupId, folderId, name)",
058                    "create unique index IX_ED5CA615 on DLFileEntry (groupId, folderId, title)",
059                    "create index IX_43261870 on DLFileEntry (groupId, userId)",
060                    "create index IX_64F0FE40 on DLFileEntry (uuid_)",
061                    "create unique index IX_BC2E7E6A on DLFileEntry (uuid_, groupId)"
062            };
063    
064    }