序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | ID | int | 4 | 0 | 是 | 否 | ||||
2 | TlpName | nvarchar | 200 | 0 | 是 | 运费模板名称 | ||||
3 | IsFree | int | 4 | 0 | 是 | 是否包邮 | ||||
4 | PriceMode | int | 4 | 0 | 是 | 计费模式 | ||||
5 | RegionBan | int | 4 | 0 | 是 | 开启区域限制 | ||||
6 | Express | nvarchar | 3000 | 0 | 是 | 费用Json | ||||
7 | EMS | nvarchar | 3000 | 0 | 是 | EMS计价JSON | ||||
8 | nvarchar | 3000 | 0 | 是 | 平邮计价JSON | |||||
9 | AdminID | int | 4 | 0 | 是 | 管理员ID | ||||
10 | CDate | datetime | 8 | 3 | 是 | 添加时间 | ||||
11 | Remind | nvarchar | 500 | 0 | 是 | 备注,买家可见 | ||||
12 | Remind2 | nvarchar | 500 | 0 | 是 | 备注,仅卖家可见 | ||||
13 | UserID | int | 4 | 0 | 是 | 用户ID |
运费模板表
GO
CREATE TABLE [dbo].[ZL_Shop_FareTlp](
[ID] [int] IDENTITY(1,1) NOT NULL,
[TlpName] [nvarchar](200) NULL,
[IsFree] [int] NULL,
[PriceMode] [int] NULL,
[RegionBan] [int] NULL,
[Express] [nvarchar](3000) NULL,
[EMS] [nvarchar](3000) NULL,
[Mail] [nvarchar](3000) NULL,
[AdminID] [int] NULL,
[CDate] [datetime] NULL,
[Remind] [nvarchar](500) NULL,
[Remind2] [nvarchar](500) NULL,
[UserID] [int] NULL
) ON [PRIMARY]
SET IDENTITY_INSERT [ZL_Shop_FareTlp] ON
INSERT [ZL_Shop_FareTlp] ([ID],[TlpName],[IsFree],[PriceMode],[RegionBan],[Express],[AdminID],[CDate],[UserID]) VALUES ( 1,N'默认预设',0,1,0,N'[{"name":"快递","mode":"1","enabled":true,"price":"10","plus":"1","free_sel":"1","free_num":"5","free_money":""},{"name":"EMS","mode":"1","enabled":true,"price":"10","plus":"2","free_sel":"2","free_num":"","free_money":"100"},{"name":"平邮","mode":"1","enabled":true,"price":"5","plus":"1","free_sel":"0","free_num":"","free_money":""}]',0,N'2015/4/9 21:59:28',0)
SET IDENTITY_INSERT [ZL_Shop_FareTlp] OFF
detele from ZL_Shop_FareTlp
drop table ZL_Shop_FareTlp
TRUNCATE table ZL_Shop_FareTlp