001    /**
002     * Copyright (c) 2000-2010 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.v4_3_0.util;
016    
017    import java.sql.Types;
018    
019    /**
020     * @author        Brian Wing Shun Chan
021     * @generated
022     */
023    public class ContactTable {
024    
025            public static String TABLE_NAME = "Contact_";
026    
027            public static Object[][] TABLE_COLUMNS = {
028                    {"contactId", new Integer(Types.BIGINT)},
029                    {"companyId", new Integer(Types.BIGINT)},
030                    {"userId", new Integer(Types.BIGINT)},
031                    {"userName", new Integer(Types.VARCHAR)},
032                    {"createDate", new Integer(Types.TIMESTAMP)},
033                    {"modifiedDate", new Integer(Types.TIMESTAMP)},
034                    {"accountId", new Integer(Types.BIGINT)},
035                    {"parentContactId", new Integer(Types.BIGINT)},
036                    {"firstName", new Integer(Types.VARCHAR)},
037                    {"middleName", new Integer(Types.VARCHAR)},
038                    {"lastName", new Integer(Types.VARCHAR)},
039                    {"prefixId", new Integer(Types.INTEGER)},
040                    {"suffixId", new Integer(Types.INTEGER)},
041                    {"male", new Integer(Types.BOOLEAN)},
042                    {"birthday", new Integer(Types.TIMESTAMP)},
043                    {"smsSn", new Integer(Types.VARCHAR)},
044                    {"aimSn", new Integer(Types.VARCHAR)},
045                    {"icqSn", new Integer(Types.VARCHAR)},
046                    {"jabberSn", new Integer(Types.VARCHAR)},
047                    {"msnSn", new Integer(Types.VARCHAR)},
048                    {"skypeSn", new Integer(Types.VARCHAR)},
049                    {"ymSn", new Integer(Types.VARCHAR)},
050                    {"employeeStatusId", new Integer(Types.VARCHAR)},
051                    {"employeeNumber", new Integer(Types.VARCHAR)},
052                    {"jobTitle", new Integer(Types.VARCHAR)},
053                    {"jobClass", new Integer(Types.VARCHAR)},
054                    {"hoursOfOperation", new Integer(Types.VARCHAR)}
055            };
056    
057            public static String TABLE_SQL_CREATE = "create table Contact_ (contactId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,accountId LONG,parentContactId LONG,firstName VARCHAR(75) null,middleName VARCHAR(75) null,lastName VARCHAR(75) null,prefixId INTEGER,suffixId INTEGER,male BOOLEAN,birthday DATE null,smsSn VARCHAR(75) null,aimSn VARCHAR(75) null,icqSn VARCHAR(75) null,jabberSn VARCHAR(75) null,msnSn VARCHAR(75) null,skypeSn VARCHAR(75) null,ymSn VARCHAR(75) null,employeeStatusId VARCHAR(75) null,employeeNumber VARCHAR(75) null,jobTitle VARCHAR(100) null,jobClass VARCHAR(75) null,hoursOfOperation VARCHAR(75) null)";
058    
059            public static String TABLE_SQL_DROP = "drop table Contact_";
060    
061    }