1
22
23 package com.liferay.portal.upgrade.v4_3_0.util;
24
25 import java.sql.Types;
26
27
32 public class ShoppingCouponTable {
33
34 public static String TABLE_NAME = "ShoppingCoupon";
35
36 public static Object[][] TABLE_COLUMNS = {
37 {"couponId", new Integer(Types.BIGINT)},
38 {"groupId", new Integer(Types.BIGINT)},
39 {"companyId", new Integer(Types.BIGINT)},
40 {"userId", new Integer(Types.BIGINT)},
41 {"userName", new Integer(Types.VARCHAR)},
42 {"createDate", new Integer(Types.TIMESTAMP)},
43 {"modifiedDate", new Integer(Types.TIMESTAMP)},
44 {"code_", new Integer(Types.VARCHAR)},
45 {"name", new Integer(Types.VARCHAR)},
46 {"description", new Integer(Types.VARCHAR)},
47 {"startDate", new Integer(Types.TIMESTAMP)},
48 {"endDate", new Integer(Types.TIMESTAMP)},
49 {"active_", new Integer(Types.BOOLEAN)},
50 {"limitCategories", new Integer(Types.VARCHAR)},
51 {"limitSkus", new Integer(Types.VARCHAR)},
52 {"minOrder", new Integer(Types.DOUBLE)},
53 {"discount", new Integer(Types.DOUBLE)},
54 {"discountType", new Integer(Types.VARCHAR)}
55 };
56
57 public static String TABLE_SQL_CREATE = "create table ShoppingCoupon (couponId LONG not null primary key,groupId LONG,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,code_ VARCHAR(75) null,name VARCHAR(75) null,description STRING null,startDate DATE null,endDate DATE null,active_ BOOLEAN,limitCategories STRING null,limitSkus STRING null,minOrder DOUBLE,discount DOUBLE,discountType VARCHAR(75) null)";
58
59 public static String TABLE_SQL_DROP = "drop table ShoppingCoupon";
60
61 }