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