• fast_admin 添加产品信息后台管理sql


    D:phpstudy_proWWW p02.com>php think crud -t testlin

    ============================================================ sql ============================================================ 

    CREATE TABLE `fa_category_info` (
    `category_id` int(11) NOT NULL,
    `parent_id` int(11) NOT NULL DEFAULT '0',
    `language_id` int(11) NOT NULL,
    `name` varchar(255) NOT NULL,
    `description` text NOT NULL,
    `meta_title` varchar(255) NOT NULL,
    `meta_description` varchar(255) NOT NULL,
    `meta_keyword` varchar(255) NOT NULL,
    `switch` tinyint(1) DEFAULT '0' COMMENT '开关'
    ) ENGINE=MyISAM DEFAULT CHARSET=utf8;

    CREATE TABLE `fa_products_info` (
    `product_id` int(11) NOT NULL,
    `language_id` int(11) NOT NULL,
    `1_cName` text NOT NULL,
    `2_pName` varchar(255) NOT NULL,
    `3_main_images_URL` varchar(255) NOT NULL,
    `4_review_images_URL` text NOT NULL,
    `5_desc_and_images_URL` text NOT NULL,
    `6_pMeta_title` varchar(255) NOT NULL,
    `7_pMeta_keywords` varchar(255) NOT NULL,
    `8_pMeta_description` varchar(255) NOT NULL,
    `9_price_ori` decimal(15,4) NOT NULL DEFAULT '0.0000',
    `10_price_special` decimal(15,4) NOT NULL DEFAULT '0.0000',
    `11_property_list01` text NOT NULL,
    `12_property_list02` text NOT NULL,
    `13_model` varchar(64) NOT NULL,
    `switch` tinyint(1) DEFAULT '0' COMMENT '开关'
    ) ENGINE=MyISAM DEFAULT CHARSET=utf8;


    ALTER TABLE `fa_category_info`
    ADD PRIMARY KEY (`category_id`),
    ADD KEY `parent_id` (`parent_id`),
    ADD KEY `name` (`name`);

    ALTER TABLE `fa_products_info`
    ADD PRIMARY KEY (`product_id`,`language_id`),
    ADD KEY `name` (`2_pName`);
    ============================================================ 结束===========================================================================

    CREATE TABLE `fa_category` (
    `category_id` int(11) NOT NULL,
    `image` varchar(255) DEFAULT NULL,
    `parent_id` int(11) NOT NULL DEFAULT '0',
    `top` tinyint(1) NOT NULL,
    `column` int(3) NOT NULL,
    `sort_order` int(3) NOT NULL DEFAULT '0',
    `status` tinyint(1) NOT NULL,
    `date_added` datetime NOT NULL,
    `date_modified` datetime NOT NULL
    ) ENGINE=MyISAM DEFAULT CHARSET=utf8;

    CREATE TABLE `fa_category_description` (
    `category_id` int(11) NOT NULL,
    `language_id` int(11) NOT NULL,
    `name` varchar(255) NOT NULL,
    `description` text NOT NULL,
    `meta_title` varchar(255) NOT NULL,
    `meta_description` varchar(255) NOT NULL,
    `meta_keyword` varchar(255) NOT NULL
    ) ENGINE=MyISAM DEFAULT CHARSET=utf8;

    CREATE TABLE `fa_product` (
    `product_id` int(11) NOT NULL,
    `model` varchar(64) NOT NULL,
    `sku` varchar(64) NOT NULL,
    `upc` varchar(12) NOT NULL,
    `ean` varchar(14) NOT NULL,
    `jan` varchar(13) NOT NULL,
    `isbn` varchar(17) NOT NULL,
    `mpn` varchar(64) NOT NULL,
    `location` varchar(128) NOT NULL,
    `quantity` int(4) NOT NULL DEFAULT '0',
    `stock_status_id` int(11) NOT NULL,
    `image` varchar(255) DEFAULT NULL,
    `manufacturer_id` int(11) NOT NULL,
    `shipping` tinyint(1) NOT NULL DEFAULT '1',
    `price` decimal(15,4) NOT NULL DEFAULT '0.0000',
    `points` int(8) NOT NULL DEFAULT '0',
    `tax_class_id` int(11) NOT NULL,
    `date_available` date NOT NULL DEFAULT '0000-00-00',
    `weight` decimal(15,8) NOT NULL DEFAULT '0.00000000',
    `weight_class_id` int(11) NOT NULL DEFAULT '0',
    `length` decimal(15,8) NOT NULL DEFAULT '0.00000000',
    `width` decimal(15,8) NOT NULL DEFAULT '0.00000000',
    `height` decimal(15,8) NOT NULL DEFAULT '0.00000000',
    `length_class_id` int(11) NOT NULL DEFAULT '0',
    `subtract` tinyint(1) NOT NULL DEFAULT '1',
    `minimum` int(11) NOT NULL DEFAULT '1',
    `sort_order` int(11) NOT NULL DEFAULT '0',
    `status` tinyint(1) NOT NULL DEFAULT '0',
    `viewed` int(5) NOT NULL DEFAULT '0',
    `date_added` datetime NOT NULL,
    `date_modified` datetime NOT NULL
    ) ENGINE=MyISAM DEFAULT CHARSET=utf8;


    CREATE TABLE `fa_product_description` (
    `product_id` int(11) NOT NULL,
    `language_id` int(11) NOT NULL,
    `name` varchar(255) NOT NULL,
    `description` text NOT NULL,
    `tag` text NOT NULL,
    `meta_title` varchar(255) NOT NULL,
    `meta_description` varchar(255) NOT NULL,
    `meta_keyword` varchar(255) NOT NULL
    ) ENGINE=MyISAM DEFAULT CHARSET=utf8;

  • 相关阅读:
    centos python sh recode command not find的解决办法
    Webmail邮件攻防实战技术总结[转]
    关于c#字符串三种逆转方法及性能比较的另外看法
    随机生成10个含有1万个qq邮箱的文件(Python)
    C#对IE使用Proxy(代理)
    sohu邮箱的联系人获取
    Python 的二进制文件读写需要注意的地方
    hotmail解码遇到的&#解码问题
    利用cookie收取Hotmail信件
    CS0016: 未能写入输出文件“c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\web\4b49f661\23a749fc\App_Web_default.aspx.cdcab7d2.zii77dc.dll
  • 原文地址:https://www.cnblogs.com/alex-13/p/15206416.html
Copyright © 2020-2023  润新知