001    /**
002     * Copyright (c) 2000-present 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.v7_0_0.util;
016    
017    import java.sql.Types;
018    
019    import java.util.HashMap;
020    import java.util.Map;
021    
022    /**
023     * @author        Brian Wing Shun Chan
024     * @generated
025     */
026    public class MembershipRequestTable {
027    
028            public static final String TABLE_NAME = "MembershipRequest";
029    
030            public static final Object[][] TABLE_COLUMNS = {
031                    {"mvccVersion", Types.BIGINT},
032                    {"membershipRequestId", Types.BIGINT},
033                    {"groupId", Types.BIGINT},
034                    {"companyId", Types.BIGINT},
035                    {"userId", Types.BIGINT},
036                    {"createDate", Types.TIMESTAMP},
037                    {"comments", Types.VARCHAR},
038                    {"replyComments", Types.VARCHAR},
039                    {"replyDate", Types.TIMESTAMP},
040                    {"replierUserId", Types.BIGINT},
041                    {"statusId", Types.BIGINT}
042            };
043    
044            public static final Map<String, Integer> TABLE_COLUMNS_MAP = new HashMap<String, Integer>();
045    
046    static {
047    TABLE_COLUMNS_MAP.put("mvccVersion", Types.BIGINT);
048    
049    TABLE_COLUMNS_MAP.put("membershipRequestId", Types.BIGINT);
050    
051    TABLE_COLUMNS_MAP.put("groupId", Types.BIGINT);
052    
053    TABLE_COLUMNS_MAP.put("companyId", Types.BIGINT);
054    
055    TABLE_COLUMNS_MAP.put("userId", Types.BIGINT);
056    
057    TABLE_COLUMNS_MAP.put("createDate", Types.TIMESTAMP);
058    
059    TABLE_COLUMNS_MAP.put("comments", Types.VARCHAR);
060    
061    TABLE_COLUMNS_MAP.put("replyComments", Types.VARCHAR);
062    
063    TABLE_COLUMNS_MAP.put("replyDate", Types.TIMESTAMP);
064    
065    TABLE_COLUMNS_MAP.put("replierUserId", Types.BIGINT);
066    
067    TABLE_COLUMNS_MAP.put("statusId", Types.BIGINT);
068    
069    }
070            public static final String TABLE_SQL_CREATE = "create table MembershipRequest (mvccVersion LONG default 0,membershipRequestId LONG not null primary key,groupId LONG,companyId LONG,userId LONG,createDate DATE null,comments STRING null,replyComments STRING null,replyDate DATE null,replierUserId LONG,statusId LONG)";
071    
072            public static final String TABLE_SQL_DROP = "drop table MembershipRequest";
073    
074            public static final String[] TABLE_SQL_ADD_INDEXES = {
075                    "create index IX_C28C72EC on MembershipRequest (groupId, statusId)",
076                    "create index IX_35AA8FA6 on MembershipRequest (groupId, userId, statusId)",
077                    "create index IX_66D70879 on MembershipRequest (userId)"
078            };
079    
080    }