1
22
23 package com.liferay.portal.upgrade.v4_3_0.util;
24
25 import java.sql.Types;
26
27
32 public class MBMessageTable {
33
34 public static String TABLE_NAME = "MBMessage";
35
36 public static Object[][] TABLE_COLUMNS = {
37 {"messageId", new Integer(Types.BIGINT)},
38 {"companyId", new Integer(Types.BIGINT)},
39 {"userId", new Integer(Types.BIGINT)},
40 {"userName", new Integer(Types.VARCHAR)},
41 {"createDate", new Integer(Types.TIMESTAMP)},
42 {"modifiedDate", new Integer(Types.TIMESTAMP)},
43 {"categoryId", new Integer(Types.BIGINT)},
44 {"threadId", new Integer(Types.BIGINT)},
45 {"parentMessageId", new Integer(Types.BIGINT)},
46 {"subject", new Integer(Types.VARCHAR)},
47 {"body", new Integer(Types.CLOB)},
48 {"attachments", new Integer(Types.BOOLEAN)},
49 {"anonymous", new Integer(Types.BOOLEAN)}
50 };
51
52 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)";
53
54 public static String TABLE_SQL_DROP = "drop table MBMessage";
55
56 }