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    import java.util.HashMap;
020    import java.util.Map;
021    
022    /**
023     * @author        Brian Wing Shun Chan
024     * @generated
025     */
026    public class EmailAddressTable {
027    
028            public static final String TABLE_NAME = "EmailAddress";
029    
030            public static final Object[][] TABLE_COLUMNS = {
031                    {"mvccVersion", Types.BIGINT},
032                    {"uuid_", Types.VARCHAR},
033                    {"emailAddressId", Types.BIGINT},
034                    {"companyId", Types.BIGINT},
035                    {"userId", Types.BIGINT},
036                    {"userName", Types.VARCHAR},
037                    {"createDate", Types.TIMESTAMP},
038                    {"modifiedDate", Types.TIMESTAMP},
039                    {"classNameId", Types.BIGINT},
040                    {"classPK", Types.BIGINT},
041                    {"address", Types.VARCHAR},
042                    {"typeId", Types.BIGINT},
043                    {"primary_", Types.BOOLEAN}
044            };
045    
046            public static final Map<String, Integer> TABLE_COLUMNS_MAP = new HashMap<String, Integer>();
047    
048    static {
049    TABLE_COLUMNS_MAP.put("mvccVersion", Types.BIGINT);
050    
051    TABLE_COLUMNS_MAP.put("uuid_", Types.VARCHAR);
052    
053    TABLE_COLUMNS_MAP.put("emailAddressId", Types.BIGINT);
054    
055    TABLE_COLUMNS_MAP.put("companyId", Types.BIGINT);
056    
057    TABLE_COLUMNS_MAP.put("userId", Types.BIGINT);
058    
059    TABLE_COLUMNS_MAP.put("userName", Types.VARCHAR);
060    
061    TABLE_COLUMNS_MAP.put("createDate", Types.TIMESTAMP);
062    
063    TABLE_COLUMNS_MAP.put("modifiedDate", Types.TIMESTAMP);
064    
065    TABLE_COLUMNS_MAP.put("classNameId", Types.BIGINT);
066    
067    TABLE_COLUMNS_MAP.put("classPK", Types.BIGINT);
068    
069    TABLE_COLUMNS_MAP.put("address", Types.VARCHAR);
070    
071    TABLE_COLUMNS_MAP.put("typeId", Types.BIGINT);
072    
073    TABLE_COLUMNS_MAP.put("primary_", Types.BOOLEAN);
074    
075    }
076            public static final String TABLE_SQL_CREATE = "create table EmailAddress (mvccVersion LONG default 0,uuid_ VARCHAR(75) null,emailAddressId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,classNameId LONG,classPK LONG,address VARCHAR(75) null,typeId LONG,primary_ BOOLEAN)";
077    
078            public static final String TABLE_SQL_DROP = "drop table EmailAddress";
079    
080            public static final String[] TABLE_SQL_ADD_INDEXES = {
081                    "create index IX_2A2CB130 on EmailAddress (companyId, classNameId, classPK, primary_)",
082                    "create index IX_7B43CD8 on EmailAddress (userId)",
083                    "create index IX_F74AB912 on EmailAddress (uuid_[$COLUMN_LENGTH:75$], companyId)"
084            };
085    
086    }