001    /**
002     * Copyright (c) 2000-2010 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 UserTable {
024    
025            public static final String TABLE_NAME = "User_";
026    
027            public static final Object[][] TABLE_COLUMNS = {
028                    {"uuid_", new Integer(Types.VARCHAR)},
029                    {"userId", new Integer(Types.BIGINT)},
030                    {"companyId", new Integer(Types.BIGINT)},
031                    {"createDate", new Integer(Types.TIMESTAMP)},
032                    {"modifiedDate", new Integer(Types.TIMESTAMP)},
033                    {"defaultUser", new Integer(Types.BOOLEAN)},
034                    {"contactId", new Integer(Types.BIGINT)},
035                    {"password_", new Integer(Types.VARCHAR)},
036                    {"passwordEncrypted", new Integer(Types.BOOLEAN)},
037                    {"passwordReset", new Integer(Types.BOOLEAN)},
038                    {"passwordModifiedDate", new Integer(Types.TIMESTAMP)},
039                    {"reminderQueryQuestion", new Integer(Types.VARCHAR)},
040                    {"reminderQueryAnswer", new Integer(Types.VARCHAR)},
041                    {"graceLoginCount", new Integer(Types.INTEGER)},
042                    {"screenName", new Integer(Types.VARCHAR)},
043                    {"emailAddress", new Integer(Types.VARCHAR)},
044                    {"openId", new Integer(Types.VARCHAR)},
045                    {"portraitId", new Integer(Types.BIGINT)},
046                    {"languageId", new Integer(Types.VARCHAR)},
047                    {"timeZoneId", new Integer(Types.VARCHAR)},
048                    {"greeting", new Integer(Types.VARCHAR)},
049                    {"comments", new Integer(Types.VARCHAR)},
050                    {"firstName", new Integer(Types.VARCHAR)},
051                    {"middleName", new Integer(Types.VARCHAR)},
052                    {"lastName", new Integer(Types.VARCHAR)},
053                    {"jobTitle", new Integer(Types.VARCHAR)},
054                    {"loginDate", new Integer(Types.TIMESTAMP)},
055                    {"loginIP", new Integer(Types.VARCHAR)},
056                    {"lastLoginDate", new Integer(Types.TIMESTAMP)},
057                    {"lastLoginIP", new Integer(Types.VARCHAR)},
058                    {"lastFailedLoginDate", new Integer(Types.TIMESTAMP)},
059                    {"failedLoginAttempts", new Integer(Types.INTEGER)},
060                    {"lockout", new Integer(Types.BOOLEAN)},
061                    {"lockoutDate", new Integer(Types.TIMESTAMP)},
062                    {"agreedToTermsOfUse", new Integer(Types.BOOLEAN)},
063                    {"active_", new Integer(Types.BOOLEAN)}
064            };
065    
066            public static final String TABLE_SQL_CREATE = "create table User_ (uuid_ VARCHAR(75) null,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,reminderQueryQuestion VARCHAR(75) null,reminderQueryAnswer VARCHAR(75) null,graceLoginCount INTEGER,screenName VARCHAR(75) null,emailAddress VARCHAR(75) null,openId VARCHAR(1024) null,portraitId LONG,languageId VARCHAR(75) null,timeZoneId VARCHAR(75) null,greeting VARCHAR(255) null,comments STRING null,firstName VARCHAR(75) null,middleName VARCHAR(75) null,lastName VARCHAR(75) null,jobTitle VARCHAR(75) 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)";
067    
068            public static final String TABLE_SQL_DROP = "drop table User_";
069    
070    }