1
14
15 package com.liferay.portal.upgrade.v6_0_0.util;
16
17 import java.sql.Types;
18
19
25 public class ShoppingItemTable {
26
27 public static final String TABLE_NAME = "ShoppingItem";
28
29 public static final Object[][] TABLE_COLUMNS = {
30 {"itemId", new Integer(Types.BIGINT)},
31 {"groupId", new Integer(Types.BIGINT)},
32 {"companyId", new Integer(Types.BIGINT)},
33 {"userId", new Integer(Types.BIGINT)},
34 {"userName", new Integer(Types.VARCHAR)},
35 {"createDate", new Integer(Types.TIMESTAMP)},
36 {"modifiedDate", new Integer(Types.TIMESTAMP)},
37 {"categoryId", new Integer(Types.BIGINT)},
38 {"sku", new Integer(Types.VARCHAR)},
39 {"name", new Integer(Types.VARCHAR)},
40 {"description", new Integer(Types.VARCHAR)},
41 {"properties", new Integer(Types.VARCHAR)},
42 {"fields_", new Integer(Types.BOOLEAN)},
43 {"fieldsQuantities", new Integer(Types.VARCHAR)},
44 {"minQuantity", new Integer(Types.INTEGER)},
45 {"maxQuantity", new Integer(Types.INTEGER)},
46 {"price", new Integer(Types.DOUBLE)},
47 {"discount", new Integer(Types.DOUBLE)},
48 {"taxable", new Integer(Types.BOOLEAN)},
49 {"shipping", new Integer(Types.DOUBLE)},
50 {"useShippingFormula", new Integer(Types.BOOLEAN)},
51 {"requiresShipping", new Integer(Types.BOOLEAN)},
52 {"stockQuantity", new Integer(Types.INTEGER)},
53 {"featured_", new Integer(Types.BOOLEAN)},
54 {"sale_", new Integer(Types.BOOLEAN)},
55 {"smallImage", new Integer(Types.BOOLEAN)},
56 {"smallImageId", new Integer(Types.BIGINT)},
57 {"smallImageURL", new Integer(Types.VARCHAR)},
58 {"mediumImage", new Integer(Types.BOOLEAN)},
59 {"mediumImageId", new Integer(Types.BIGINT)},
60 {"mediumImageURL", new Integer(Types.VARCHAR)},
61 {"largeImage", new Integer(Types.BOOLEAN)},
62 {"largeImageId", new Integer(Types.BIGINT)},
63 {"largeImageURL", new Integer(Types.VARCHAR)}
64 };
65
66 public static final String TABLE_SQL_CREATE = "create table ShoppingItem (itemId LONG not null primary key,groupId LONG,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,categoryId LONG,sku VARCHAR(75) null,name VARCHAR(200) null,description STRING null,properties STRING null,fields_ BOOLEAN,fieldsQuantities STRING null,minQuantity INTEGER,maxQuantity INTEGER,price DOUBLE,discount DOUBLE,taxable BOOLEAN,shipping DOUBLE,useShippingFormula BOOLEAN,requiresShipping BOOLEAN,stockQuantity INTEGER,featured_ BOOLEAN,sale_ BOOLEAN,smallImage BOOLEAN,smallImageId LONG,smallImageURL STRING null,mediumImage BOOLEAN,mediumImageId LONG,mediumImageURL STRING null,largeImage BOOLEAN,largeImageId LONG,largeImageURL STRING null)";
67
68 public static final String TABLE_SQL_DROP = "drop table ShoppingItem";
69
70 }