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 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    }