1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.upgrade.v5_2_3.util;
16  
17  import java.sql.Types;
18  
19  /**
20   * <a href="UserTable.java.html"><b><i>View Source</i></b></a>
21   *
22   * @author    Brian Wing Shun Chan
23   * @generated
24   */
25  public class UserTable {
26  
27      public static final String TABLE_NAME = "User_";
28  
29      public static final Object[][] TABLE_COLUMNS = {
30          {"uuid_", new Integer(Types.VARCHAR)},
31          {"userId", new Integer(Types.BIGINT)},
32          {"companyId", new Integer(Types.BIGINT)},
33          {"createDate", new Integer(Types.TIMESTAMP)},
34          {"modifiedDate", new Integer(Types.TIMESTAMP)},
35          {"defaultUser", new Integer(Types.BOOLEAN)},
36          {"contactId", new Integer(Types.BIGINT)},
37          {"password_", new Integer(Types.VARCHAR)},
38          {"passwordEncrypted", new Integer(Types.BOOLEAN)},
39          {"passwordReset", new Integer(Types.BOOLEAN)},
40          {"passwordModifiedDate", new Integer(Types.TIMESTAMP)},
41          {"reminderQueryQuestion", new Integer(Types.VARCHAR)},
42          {"reminderQueryAnswer", new Integer(Types.VARCHAR)},
43          {"graceLoginCount", new Integer(Types.INTEGER)},
44          {"screenName", new Integer(Types.VARCHAR)},
45          {"emailAddress", new Integer(Types.VARCHAR)},
46          {"openId", new Integer(Types.VARCHAR)},
47          {"portraitId", new Integer(Types.BIGINT)},
48          {"languageId", new Integer(Types.VARCHAR)},
49          {"timeZoneId", new Integer(Types.VARCHAR)},
50          {"greeting", new Integer(Types.VARCHAR)},
51          {"comments", new Integer(Types.VARCHAR)},
52          {"firstName", new Integer(Types.VARCHAR)},
53          {"middleName", new Integer(Types.VARCHAR)},
54          {"lastName", new Integer(Types.VARCHAR)},
55          {"jobTitle", new Integer(Types.VARCHAR)},
56          {"loginDate", new Integer(Types.TIMESTAMP)},
57          {"loginIP", new Integer(Types.VARCHAR)},
58          {"lastLoginDate", new Integer(Types.TIMESTAMP)},
59          {"lastLoginIP", new Integer(Types.VARCHAR)},
60          {"lastFailedLoginDate", new Integer(Types.TIMESTAMP)},
61          {"failedLoginAttempts", new Integer(Types.INTEGER)},
62          {"lockout", new Integer(Types.BOOLEAN)},
63          {"lockoutDate", new Integer(Types.TIMESTAMP)},
64          {"agreedToTermsOfUse", new Integer(Types.BOOLEAN)},
65          {"active_", new Integer(Types.BOOLEAN)}
66      };
67  
68      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)";
69  
70      public static final String TABLE_SQL_DROP = "drop table User_";
71  
72  }