001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.upgrade.v4_3_0.util;
016    
017    import java.sql.Types;
018    
019    /**
020     * @author        Brian Wing Shun Chan
021     * @generated
022     */
023    public class ShoppingOrderTable {
024    
025            public static String TABLE_NAME = "ShoppingOrder";
026    
027            public static Object[][] TABLE_COLUMNS = {
028                    {"orderId", 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                    {"number_", new Integer(Types.VARCHAR)},
036                    {"tax", new Integer(Types.DOUBLE)},
037                    {"shipping", new Integer(Types.DOUBLE)},
038                    {"altShipping", new Integer(Types.VARCHAR)},
039                    {"requiresShipping", new Integer(Types.BOOLEAN)},
040                    {"insure", new Integer(Types.BOOLEAN)},
041                    {"insurance", new Integer(Types.DOUBLE)},
042                    {"couponCodes", new Integer(Types.VARCHAR)},
043                    {"couponDiscount", new Integer(Types.DOUBLE)},
044                    {"billingFirstName", new Integer(Types.VARCHAR)},
045                    {"billingLastName", new Integer(Types.VARCHAR)},
046                    {"billingEmailAddress", new Integer(Types.VARCHAR)},
047                    {"billingCompany", new Integer(Types.VARCHAR)},
048                    {"billingStreet", new Integer(Types.VARCHAR)},
049                    {"billingCity", new Integer(Types.VARCHAR)},
050                    {"billingState", new Integer(Types.VARCHAR)},
051                    {"billingZip", new Integer(Types.VARCHAR)},
052                    {"billingCountry", new Integer(Types.VARCHAR)},
053                    {"billingPhone", new Integer(Types.VARCHAR)},
054                    {"shipToBilling", new Integer(Types.BOOLEAN)},
055                    {"shippingFirstName", new Integer(Types.VARCHAR)},
056                    {"shippingLastName", new Integer(Types.VARCHAR)},
057                    {"shippingEmailAddress", new Integer(Types.VARCHAR)},
058                    {"shippingCompany", new Integer(Types.VARCHAR)},
059                    {"shippingStreet", new Integer(Types.VARCHAR)},
060                    {"shippingCity", new Integer(Types.VARCHAR)},
061                    {"shippingState", new Integer(Types.VARCHAR)},
062                    {"shippingZip", new Integer(Types.VARCHAR)},
063                    {"shippingCountry", new Integer(Types.VARCHAR)},
064                    {"shippingPhone", new Integer(Types.VARCHAR)},
065                    {"ccName", new Integer(Types.VARCHAR)},
066                    {"ccType", new Integer(Types.VARCHAR)},
067                    {"ccNumber", new Integer(Types.VARCHAR)},
068                    {"ccExpMonth", new Integer(Types.INTEGER)},
069                    {"ccExpYear", new Integer(Types.INTEGER)},
070                    {"ccVerNumber", new Integer(Types.VARCHAR)},
071                    {"comments", new Integer(Types.VARCHAR)},
072                    {"ppTxnId", new Integer(Types.VARCHAR)},
073                    {"ppPaymentStatus", new Integer(Types.VARCHAR)},
074                    {"ppPaymentGross", new Integer(Types.DOUBLE)},
075                    {"ppReceiverEmail", new Integer(Types.VARCHAR)},
076                    {"ppPayerEmail", new Integer(Types.VARCHAR)},
077                    {"sendOrderEmail", new Integer(Types.BOOLEAN)},
078                    {"sendShippingEmail", new Integer(Types.BOOLEAN)}
079            };
080    
081            public static String TABLE_SQL_CREATE = "create table ShoppingOrder (orderId LONG not null primary key,groupId LONG,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,number_ VARCHAR(75) null,tax DOUBLE,shipping DOUBLE,altShipping VARCHAR(75) null,requiresShipping BOOLEAN,insure BOOLEAN,insurance DOUBLE,couponCodes VARCHAR(75) null,couponDiscount DOUBLE,billingFirstName VARCHAR(75) null,billingLastName VARCHAR(75) null,billingEmailAddress VARCHAR(75) null,billingCompany VARCHAR(75) null,billingStreet VARCHAR(75) null,billingCity VARCHAR(75) null,billingState VARCHAR(75) null,billingZip VARCHAR(75) null,billingCountry VARCHAR(75) null,billingPhone VARCHAR(75) null,shipToBilling BOOLEAN,shippingFirstName VARCHAR(75) null,shippingLastName VARCHAR(75) null,shippingEmailAddress VARCHAR(75) null,shippingCompany VARCHAR(75) null,shippingStreet VARCHAR(75) null,shippingCity VARCHAR(75) null,shippingState VARCHAR(75) null,shippingZip VARCHAR(75) null,shippingCountry VARCHAR(75) null,shippingPhone VARCHAR(75) null,ccName VARCHAR(75) null,ccType VARCHAR(75) null,ccNumber VARCHAR(75) null,ccExpMonth INTEGER,ccExpYear INTEGER,ccVerNumber VARCHAR(75) null,comments STRING null,ppTxnId VARCHAR(75) null,ppPaymentStatus VARCHAR(75) null,ppPaymentGross DOUBLE,ppReceiverEmail VARCHAR(75) null,ppPayerEmail VARCHAR(75) null,sendOrderEmail BOOLEAN,sendShippingEmail BOOLEAN)";
082    
083            public static String TABLE_SQL_DROP = "drop table ShoppingOrder";
084    
085    }