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 UserTable {
024    
025            public static String TABLE_NAME = "User_";
026    
027            public static Object[][] TABLE_COLUMNS = {
028                    {"userId", new Integer(Types.BIGINT)},
029                    {"companyId", new Integer(Types.BIGINT)},
030                    {"createDate", new Integer(Types.TIMESTAMP)},
031                    {"modifiedDate", new Integer(Types.TIMESTAMP)},
032                    {"defaultUser", new Integer(Types.BOOLEAN)},
033                    {"contactId", new Integer(Types.BIGINT)},
034                    {"password_", new Integer(Types.VARCHAR)},
035                    {"passwordEncrypted", new Integer(Types.BOOLEAN)},
036                    {"passwordReset", new Integer(Types.BOOLEAN)},
037                    {"passwordModifiedDate", new Integer(Types.TIMESTAMP)},
038                    {"graceLoginCount", new Integer(Types.INTEGER)},
039                    {"screenName", new Integer(Types.VARCHAR)},
040                    {"emailAddress", new Integer(Types.VARCHAR)},
041                    {"portraitId", new Integer(Types.BIGINT)},
042                    {"languageId", new Integer(Types.VARCHAR)},
043                    {"timeZoneId", new Integer(Types.VARCHAR)},
044                    {"greeting", new Integer(Types.VARCHAR)},
045                    {"comments", new Integer(Types.VARCHAR)},
046                    {"loginDate", new Integer(Types.TIMESTAMP)},
047                    {"loginIP", new Integer(Types.VARCHAR)},
048                    {"lastLoginDate", new Integer(Types.TIMESTAMP)},
049                    {"lastLoginIP", new Integer(Types.VARCHAR)},
050                    {"lastFailedLoginDate", new Integer(Types.TIMESTAMP)},
051                    {"failedLoginAttempts", new Integer(Types.INTEGER)},
052                    {"lockout", new Integer(Types.BOOLEAN)},
053                    {"lockoutDate", new Integer(Types.TIMESTAMP)},
054                    {"agreedToTermsOfUse", new Integer(Types.BOOLEAN)},
055                    {"active_", new Integer(Types.BOOLEAN)}
056            };
057    
058            public static String TABLE_SQL_CREATE = "create table User_ (userId LONG not null primary key,companyId LONG,createDate DATE null,modifiedDate DATE null,defaultUser BOOLEAN,contactId LONG,password_ VARCHAR(75) null,passwordEncrypted BOOLEAN,passwordReset BOOLEAN,passwordModifiedDate DATE null,graceLoginCount INTEGER,screenName VARCHAR(75) null,emailAddress VARCHAR(75) null,portraitId LONG,languageId VARCHAR(75) null,timeZoneId VARCHAR(75) null,greeting VARCHAR(75) null,comments STRING null,loginDate DATE null,loginIP VARCHAR(75) null,lastLoginDate DATE null,lastLoginIP VARCHAR(75) null,lastFailedLoginDate DATE null,failedLoginAttempts INTEGER,lockout BOOLEAN,lockoutDate DATE null,agreedToTermsOfUse BOOLEAN,active_ BOOLEAN)";
059    
060            public static String TABLE_SQL_DROP = "drop table User_";
061    
062    }