001
014
015 package com.liferay.portal.upgrade.v4_3_0.util;
016
017 import java.sql.Types;
018
019
023 public class ShoppingItemTable {
024
025 public static String TABLE_NAME = "ShoppingItem";
026
027 public static Object[][] TABLE_COLUMNS = {
028 {"itemId", 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 {"sku", new Integer(Types.VARCHAR)},
036 {"name", new Integer(Types.VARCHAR)},
037 {"description", new Integer(Types.VARCHAR)},
038 {"properties", new Integer(Types.VARCHAR)},
039 {"fields_", new Integer(Types.BOOLEAN)},
040 {"fieldsQuantities", new Integer(Types.VARCHAR)},
041 {"minQuantity", new Integer(Types.INTEGER)},
042 {"maxQuantity", new Integer(Types.INTEGER)},
043 {"price", new Integer(Types.DOUBLE)},
044 {"discount", new Integer(Types.DOUBLE)},
045 {"taxable", new Integer(Types.BOOLEAN)},
046 {"shipping", new Integer(Types.DOUBLE)},
047 {"useShippingFormula", new Integer(Types.BOOLEAN)},
048 {"requiresShipping", new Integer(Types.BOOLEAN)},
049 {"stockQuantity", new Integer(Types.INTEGER)},
050 {"featured_", new Integer(Types.BOOLEAN)},
051 {"sale_", new Integer(Types.BOOLEAN)},
052 {"smallImage", new Integer(Types.BOOLEAN)},
053 {"smallImageId", new Integer(Types.BIGINT)},
054 {"smallImageURL", new Integer(Types.VARCHAR)},
055 {"mediumImage", new Integer(Types.BOOLEAN)},
056 {"mediumImageId", new Integer(Types.BIGINT)},
057 {"mediumImageURL", new Integer(Types.VARCHAR)},
058 {"largeImage", new Integer(Types.BOOLEAN)},
059 {"largeImageId", new Integer(Types.BIGINT)},
060 {"largeImageURL", new Integer(Types.VARCHAR)}
061 };
062
063 public static String TABLE_SQL_CREATE = "create table ShoppingItem (itemId LONG not null primary key,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 VARCHAR(75) null,mediumImage BOOLEAN,mediumImageId LONG,mediumImageURL VARCHAR(75) null,largeImage BOOLEAN,largeImageId LONG,largeImageURL VARCHAR(75) null)";
064
065 public static String TABLE_SQL_DROP = "drop table ShoppingItem";
066
067 }