001
014
015 package com.liferay.portal.upgrade.v4_3_0.util;
016
017 import java.sql.Types;
018
019
023 public class MBMessageTable {
024
025 public static String TABLE_NAME = "MBMessage";
026
027 public static Object[][] TABLE_COLUMNS = {
028 {"messageId", new Integer(Types.BIGINT)},
029 {"companyId", new Integer(Types.BIGINT)},
030 {"userId", new Integer(Types.BIGINT)},
031 {"userName", new Integer(Types.VARCHAR)},
032 {"createDate", new Integer(Types.TIMESTAMP)},
033 {"modifiedDate", new Integer(Types.TIMESTAMP)},
034 {"categoryId", new Integer(Types.BIGINT)},
035 {"threadId", new Integer(Types.BIGINT)},
036 {"parentMessageId", new Integer(Types.BIGINT)},
037 {"subject", new Integer(Types.VARCHAR)},
038 {"body", new Integer(Types.CLOB)},
039 {"attachments", new Integer(Types.BOOLEAN)},
040 {"anonymous", new Integer(Types.BOOLEAN)}
041 };
042
043 public static String TABLE_SQL_CREATE = "create table MBMessage (messageId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,categoryId LONG,threadId LONG,parentMessageId LONG,subject VARCHAR(75) null,body TEXT null,attachments BOOLEAN,anonymous BOOLEAN)";
044
045 public static String TABLE_SQL_DROP = "drop table MBMessage";
046
047 }