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.v5_2_3.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.DOUBLE},
043                    {"size_", Types.INTEGER},
044                    {"readCount", Types.INTEGER},
045                    {"extraSettings", Types.CLOB}
046            };
047    
048            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 DOUBLE,size_ INTEGER,readCount INTEGER,extraSettings TEXT null)";
049    
050            public static final String TABLE_SQL_DROP = "drop table DLFileEntry";
051    
052            public static final String[] TABLE_SQL_ADD_INDEXES = {
053                    "create index IX_4CB1B2B4 on DLFileEntry (companyId)",
054                    "create index IX_24A846D1 on DLFileEntry (folderId)",
055                    "create unique index IX_8F6C75D0 on DLFileEntry (folderId, name)",
056                    "create index IX_A9951F17 on DLFileEntry (folderId, title)",
057                    "create index IX_F4AF5636 on DLFileEntry (groupId)",
058                    "create index IX_43261870 on DLFileEntry (groupId, userId)",
059                    "create index IX_64F0FE40 on DLFileEntry (uuid_)",
060                    "create unique index IX_BC2E7E6A on DLFileEntry (uuid_, groupId)"
061            };
062    
063    }