001
014
015 package com.liferay.portal.upgrade.v4_3_0.util;
016
017 import java.sql.Types;
018
019
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 }