001
014
015 package com.liferay.portal.upgrade.v6_0_0.util;
016
017 import java.sql.Types;
018
019
023 public class SocialRequestTable {
024
025 public static final String TABLE_NAME = "SocialRequest";
026
027 public static final Object[][] TABLE_COLUMNS = {
028 {"uuid_", Types.VARCHAR},
029 {"requestId", Types.BIGINT},
030 {"groupId", Types.BIGINT},
031 {"companyId", Types.BIGINT},
032 {"userId", Types.BIGINT},
033 {"createDate", Types.BIGINT},
034 {"modifiedDate", Types.BIGINT},
035 {"classNameId", Types.BIGINT},
036 {"classPK", Types.BIGINT},
037 {"type_", Types.INTEGER},
038 {"extraData", Types.VARCHAR},
039 {"receiverUserId", Types.BIGINT},
040 {"status", Types.INTEGER}
041 };
042
043 public static final String TABLE_SQL_CREATE = "create table SocialRequest (uuid_ VARCHAR(75) null,requestId LONG not null primary key,groupId LONG,companyId LONG,userId LONG,createDate LONG,modifiedDate LONG,classNameId LONG,classPK LONG,type_ INTEGER,extraData STRING null,receiverUserId LONG,status INTEGER)";
044
045 public static final String TABLE_SQL_DROP = "drop table SocialRequest";
046
047 public static final String[] TABLE_SQL_ADD_INDEXES = {
048 "create index IX_D3425487 on SocialRequest (classNameId, classPK, type_, receiverUserId, status)",
049 "create index IX_A90FE5A0 on SocialRequest (companyId)",
050 "create index IX_32292ED1 on SocialRequest (receiverUserId)",
051 "create index IX_D9380CB7 on SocialRequest (receiverUserId, status)",
052 "create index IX_80F7A9C2 on SocialRequest (userId)",
053 "create unique index IX_36A90CA7 on SocialRequest (userId, classNameId, classPK, type_, receiverUserId)",
054 "create index IX_CC86A444 on SocialRequest (userId, classNameId, classPK, type_, status)",
055 "create index IX_AB5906A8 on SocialRequest (userId, status)",
056 "create index IX_49D5872C on SocialRequest (uuid_)",
057 "create unique index IX_4F973EFE on SocialRequest (uuid_, groupId)"
058 };
059
060 }