001
014
015 package com.liferay.portal.upgrade.v5_2_3.util;
016
017 import java.sql.Types;
018
019
023 public class CalEventTable {
024
025 public static final String TABLE_NAME = "CalEvent";
026
027 public static final Object[][] TABLE_COLUMNS = {
028 {"uuid_", new Integer(Types.VARCHAR)},
029 {"eventId", new Integer(Types.BIGINT)},
030 {"groupId", new Integer(Types.BIGINT)},
031 {"companyId", new Integer(Types.BIGINT)},
032 {"userId", new Integer(Types.BIGINT)},
033 {"userName", new Integer(Types.VARCHAR)},
034 {"createDate", new Integer(Types.TIMESTAMP)},
035 {"modifiedDate", new Integer(Types.TIMESTAMP)},
036 {"title", new Integer(Types.VARCHAR)},
037 {"description", new Integer(Types.VARCHAR)},
038 {"startDate", new Integer(Types.TIMESTAMP)},
039 {"endDate", new Integer(Types.TIMESTAMP)},
040 {"durationHour", new Integer(Types.INTEGER)},
041 {"durationMinute", new Integer(Types.INTEGER)},
042 {"allDay", new Integer(Types.BOOLEAN)},
043 {"timeZoneSensitive", new Integer(Types.BOOLEAN)},
044 {"type_", new Integer(Types.VARCHAR)},
045 {"repeating", new Integer(Types.BOOLEAN)},
046 {"recurrence", new Integer(Types.CLOB)},
047 {"remindBy", new Integer(Types.INTEGER)},
048 {"firstReminder", new Integer(Types.INTEGER)},
049 {"secondReminder", new Integer(Types.INTEGER)}
050 };
051
052 public static final String TABLE_SQL_CREATE = "create table CalEvent (uuid_ VARCHAR(75) null,eventId LONG not null primary key,groupId LONG,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,title VARCHAR(75) null,description STRING null,startDate DATE null,endDate DATE null,durationHour INTEGER,durationMinute INTEGER,allDay BOOLEAN,timeZoneSensitive BOOLEAN,type_ VARCHAR(75) null,repeating BOOLEAN,recurrence TEXT null,remindBy INTEGER,firstReminder INTEGER,secondReminder INTEGER)";
053
054 public static final String TABLE_SQL_DROP = "drop table CalEvent";
055
056 }