storebook-product

ylbtech-dbs:ylbtech-storebook-product
A, 返回顶部

1,

use Storebook
go

go
-- =============================================
-- ylb:商品表 尺码说明【一级】
-- =============================================
create table ProductSizeDescription
(
productSizeDescriptionId int identity(101,1) primary key,    --编号【ID,PK】
imgUrl varchar(400),    --图片地址
[type] varchar(400),    --类型

brandId int   --品牌ID【FK】
)
go

go
-- =============================================
-- ylb:商品表 尺码类型【三级】
-- =============================================
create table ProductSizeType
(
productSizeTypeId int identity(101,1) primary key,    --编号【ID,PK】
name varchar(400),    --名称
value varchar(400),    --数值序列(值之间用‘,’隔开)
[type] varchar(400),    --类型(国际|中国)
category varchar(400),    --分类

brandId int   --品牌ID【FK】
)
go
--drop table Product
go
-- =============================================
-- ylb:商品表
-- =============================================
create table Product
(
productId int identity(101,1) primary key,    --编号【ID,PK】
productName varchar(400),    --商品名称

referencePrice decimal(6,2),    --价格referencePrice
[status] varchar(400),    --商品状态 0=已上架;1=已下架;-1:筹备中 即将上市
pubdate datetime default(getdate()),    --上架时间
barCode varchar(400),    --条形码编号

categoryId int,    --分类ID【FK】
brandId int,    --品牌ID【FK】
productSizeDescriptionId int,    --尺码说明ID【FK】
productSizeTypeId int,    --尺码类型ID【FK】
[disable] bit default(0)--是否禁用
)
go
--truncate table ProductSize
go
-- =============================================
-- ylb:商品表 颜色【二级】
-- =============================================
create table ProductColor
(
productColorId int identity(101,1) primary key,    --编号【ID,PK】
value varchar(400),    --颜色 粉红
imgUrl varchar(400),    --图片地址(商品第一张小图 --/static/item/product/litter/100_1.jpg)

productId int, --商品编号【FK】
brandId int   --品牌ID【FK】
)

go
-- =============================================
-- ylb:商品表 尺码【三级】
-- =============================================
create table ProductSize
(
productSizeId int identity(101,1) primary key,    --编号【ID,PK】
value varchar(400),
unitsInStock int default(0) check(unitsInStock>=0),     --库存量
unitsOnOrder int default(0) check(unitsOnOrder>=0),     --采购量

productColorId int,    --颜色ID【FK】
productId int, --商品编号【FK】
brandId int   --品牌ID【FK】
)
go

go
-- =============================================
-- ylb:商品表 图集
-- 商品 一对多
-- =============================================
create table ProductPhoto
(
productPhotoId int identity(101,1) primary key,    --编号【ID,PK】
[filename] varchar(400),    --图片名称(当前日期和时间的计时周期数+一个随机数) 图片类型为 .jpg
innerOrder int,    --内部排序 1->bigNum
--litterImgUrl varchar(400),    --图片地址
--bigImgUrl varchar(400),    --图片地址

productColorId int,    --商品颜色编号【FK】
productId int, --商品编号【FK】
brandId int   --品牌ID【FK】
)
--/static/item/product/litter/
--/static/item/product/litter/100_1.jpg
--/static/item/product/litter/100_2.jpg
--/static/item/product/big/
--/static/item/product/big/100_1.jpg
--/static/item/product/big/100_2.jpg

--图片地址,采用数据存储位置逻辑,存储、引用图片
-- 依据条件:按商品编号的范围进行逻辑区分

2,

B,返回顶部

1,

2,

C,返回顶部
作者:ylbtech
出处:http://storebook.cnblogs.com/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
时间: 2024-08-29 15:56:06

storebook-product的相关文章

LeetCode 238 Product of Array Except Self(除自身外数组其余数的乘积)

翻译 给定一个有n个数字的数组nums,其中n大于1,返回一个数组使得output[i]等于除nums[i]外所有元素的乘积. 不用分治并且在O(n)复杂度下解决这个问题. 例如,给定[1, 2, 3, 4],返回[24, 12, 8, 6]. 跟进: 你可以只在常量空间下完成它吗? (备注:在空间复杂度计算时输出数组不作为额外空间.) 原文 Given an array of n integers where n > 1, nums, return an array output such t

LeetCode-152 Maximum Product Subarray

Find the contiguous subarray within an array (containing at least one number) which has the largest product. For example, given the array [2,3,-2,4],the contiguous subarray [2,3] has the largest product = 6. 思路:使用动态规划. 设max[i]是以num[i]为结尾元素的子数组的最大乘积:

[LeetCode]Maximum Product Subarray

Find the contiguous subarray within an array (containing at least one number) which has the largest product. For example, given the array [2,3,-2,4], the contiguous subarray [2,3] has the largest product = 6. 这道题是找出数组中的一个子序列,要求这个子序列中数的乘积是所有子序列中最大的. 如

用itertools.product简化嵌套for循环

今天这一题叫做"偷瞄到的密码": 警察跟踪一名窃贼来到了一个仓库门前.仓库的密码锁盘如下: 1 2 3 4 5 6 7 8 9 0 窃贼输入密码后进了门.警察"觉得"自己看到了密码比如1357,但是也有可能是相邻的数字(相邻仅包括正上下左右,不包括对角线),比如第一位不是1,而是相邻的4和2(不包括5). 可能的密码是哪些组合呢? 这道题目可以抽象成: 1. 0-9各自都对应了一组相邻数字 现给定一个数字串: 2. 对数字串中的每个数字,找到对应的相邻数组 3. 计

mac上装eclipse报jvm is not suitable for this product错误时方法

mac上装好了jdk 1.80最新版后,下载eclipse安装,结果报jvm 1.605 is not suitalbe for this product 打开终端,java -version  结果显示是1.605的 我的最终解决方法:下载了java se 1.80版的 安装后,再安装eclipse就不抱错了 java -version显示1.80

数据库实例: STOREBOOK > 用户 > 编辑 用户: PUBLIC

ylbtech-Oracle:数据库实例: STOREBOOK  >  用户  >  编辑 用户: PUBLIC 编辑 用户: PUBLIC 1. 一般信息返回顶部 1.1, 1.2, 2. 角色返回顶部 2.1, 2.2, 3. 系统权限返回顶部 3.1, 3.2, 4. 对象权限返回顶部 4.1, 4.2, 5. 限额返回顶部 5.1, 作者:ylbtech出处:http://ylbtech.cnblogs.com/本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在

关于iOS10 Xcode8真机测试项目出现的问题 "code signing is required for product type 'xxxxx' in SDK 'iOS 10.0"..

昨天用真机测试项目出现这样的错误,在网上搜集了一些信息,所以将自己的经验分享出来帮助更多的人. 第一步: 检查你的1和2是否填写正确,如果你是运行别人的项目,BundleIdentifier要和你的Xcode之前填写的要一致,例如,我之前填写的com.baidu.xxxx,但是我真机测试的是com.alibaba.xxx,这样就不一致了,可能会导致错误 第二步: 在Bulid Setting 中找到Singning, 在3处,你可能会看到自己的开发者账号,不要选!!,还有下面 4 Develop

238. Product of Array Except Self

Given an array of n integers where n > 1, nums, return an array output such that output[i] is equal to the product of all the elements of nums except nums[i]. Solve it without division and in O(n). For example, given [1,2,3,4], return [24,12,8,6]. Fo

Maximum Pairwise Product

问题描述 Given a sequence of non-negative integers a0,…,an−1, find the maximum pairwise product, that is, the largest integer that can be obtained by multiplying two different elements from the sequence (or, more formally, max0≤i≠j≤n−1aiaj). Different el

Product in foldRight

object ProductFolderRight { def product(ld: List[Double]): Double = { def loop(ls: List[Double], acc: Double): Double = ls match { case Nil => acc case 0.0 :: t => 0.0 case h :: t => h * loop(t, acc) } loop(ld, 1.0) } def main(args: Array[String]