001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.upgrade.v7_0_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 final String TABLE_NAME = "ShoppingOrder";
026    
027            public static final Object[][] TABLE_COLUMNS = {
028                    {"orderId", Types.BIGINT},
029                    {"groupId", Types.BIGINT},
030                    {"companyId", Types.BIGINT},
031                    {"userId", Types.BIGINT},
032                    {"userName", Types.VARCHAR},
033                    {"createDate", Types.TIMESTAMP},
034                    {"modifiedDate", Types.TIMESTAMP},
035                    {"number_", Types.VARCHAR},
036                    {"tax", Types.DOUBLE},
037                    {"shipping", Types.DOUBLE},
038                    {"altShipping", Types.VARCHAR},
039                    {"requiresShipping", Types.BOOLEAN},
040                    {"insure", Types.BOOLEAN},
041                    {"insurance", Types.DOUBLE},
042                    {"couponCodes", Types.VARCHAR},
043                    {"couponDiscount", Types.DOUBLE},
044                    {"billingFirstName", Types.VARCHAR},
045                    {"billingLastName", Types.VARCHAR},
046                    {"billingEmailAddress", Types.VARCHAR},
047                    {"billingCompany", Types.VARCHAR},
048                    {"billingStreet", Types.VARCHAR},
049                    {"billingCity", Types.VARCHAR},
050                    {"billingState", Types.VARCHAR},
051                    {"billingZip", Types.VARCHAR},
052                    {"billingCountry", Types.VARCHAR},
053                    {"billingPhone", Types.VARCHAR},
054                    {"shipToBilling", Types.BOOLEAN},
055                    {"shippingFirstName", Types.VARCHAR},
056                    {"shippingLastName", Types.VARCHAR},
057                    {"shippingEmailAddress", Types.VARCHAR},
058                    {"shippingCompany", Types.VARCHAR},
059                    {"shippingStreet", Types.VARCHAR},
060                    {"shippingCity", Types.VARCHAR},
061                    {"shippingState", Types.VARCHAR},
062                    {"shippingZip", Types.VARCHAR},
063                    {"shippingCountry", Types.VARCHAR},
064                    {"shippingPhone", Types.VARCHAR},
065                    {"ccName", Types.VARCHAR},
066                    {"ccType", Types.VARCHAR},
067                    {"ccNumber", Types.VARCHAR},
068                    {"ccExpMonth", Types.INTEGER},
069                    {"ccExpYear", Types.INTEGER},
070                    {"ccVerNumber", Types.VARCHAR},
071                    {"comments", Types.CLOB},
072                    {"ppTxnId", Types.VARCHAR},
073                    {"ppPaymentStatus", Types.VARCHAR},
074                    {"ppPaymentGross", Types.DOUBLE},
075                    {"ppReceiverEmail", Types.VARCHAR},
076                    {"ppPayerEmail", Types.VARCHAR},
077                    {"sendOrderEmail", Types.BOOLEAN},
078                    {"sendShippingEmail", Types.BOOLEAN}
079            };
080    
081            public static final 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 TEXT 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 final String TABLE_SQL_DROP = "drop table ShoppingOrder";
084    
085            public static final String[] TABLE_SQL_ADD_INDEXES = {
086                    "create index IX_119B5630 on ShoppingOrder (groupId, userId, ppPaymentStatus)",
087                    "create unique index IX_D7D6E87A on ShoppingOrder (number_)",
088                    "create index IX_F474FD89 on ShoppingOrder (ppTxnId)"
089            };
090    
091    }