1
14
15 package com.liferay.portal.upgrade.v4_3_0.util;
16
17 import java.sql.Types;
18
19
25 public class UserTable {
26
27 public static String TABLE_NAME = "User_";
28
29 public static Object[][] TABLE_COLUMNS = {
30 {"userId", new Integer(Types.BIGINT)},
31 {"companyId", new Integer(Types.BIGINT)},
32 {"createDate", new Integer(Types.TIMESTAMP)},
33 {"modifiedDate", new Integer(Types.TIMESTAMP)},
34 {"defaultUser", new Integer(Types.BOOLEAN)},
35 {"contactId", new Integer(Types.BIGINT)},
36 {"password_", new Integer(Types.VARCHAR)},
37 {"passwordEncrypted", new Integer(Types.BOOLEAN)},
38 {"passwordReset", new Integer(Types.BOOLEAN)},
39 {"passwordModifiedDate", new Integer(Types.TIMESTAMP)},
40 {"graceLoginCount", new Integer(Types.INTEGER)},
41 {"screenName", new Integer(Types.VARCHAR)},
42 {"emailAddress", new Integer(Types.VARCHAR)},
43 {"portraitId", new Integer(Types.BIGINT)},
44 {"languageId", new Integer(Types.VARCHAR)},
45 {"timeZoneId", new Integer(Types.VARCHAR)},
46 {"greeting", new Integer(Types.VARCHAR)},
47 {"comments", new Integer(Types.VARCHAR)},
48 {"loginDate", new Integer(Types.TIMESTAMP)},
49 {"loginIP", new Integer(Types.VARCHAR)},
50 {"lastLoginDate", new Integer(Types.TIMESTAMP)},
51 {"lastLoginIP", new Integer(Types.VARCHAR)},
52 {"lastFailedLoginDate", new Integer(Types.TIMESTAMP)},
53 {"failedLoginAttempts", new Integer(Types.INTEGER)},
54 {"lockout", new Integer(Types.BOOLEAN)},
55 {"lockoutDate", new Integer(Types.TIMESTAMP)},
56 {"agreedToTermsOfUse", new Integer(Types.BOOLEAN)},
57 {"active_", new Integer(Types.BOOLEAN)}
58 };
59
60 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)";
61
62 public static String TABLE_SQL_DROP = "drop table User_";
63
64 }