zoukankan      html  css  js  c++  java
  • 产品分类表

    CREATE TABLE [dbo].[GoodsCategories](
        [ID] [int] NOT NULL,
        [ClassName] [nvarchar](20) NOT NULL,
        [ParentID] [int] NOT NULL,
        [Depth] [int] NOT NULL,
        [RootID] [int] NOT NULL,
        [Orders] [int] NOT NULL,
        [ParentIDPath] [nvarchar](max) NOT NULL,
        [AddTime] [datetime] NOT NULL,
        [ParentNamePath] [nvarchar](max) NOT NULL,
     CONSTRAINT [PK_GoodsCategories] PRIMARY KEY CLUSTERED
    (
        [ID] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

    GO

    ALTER TABLE [dbo].[GoodsCategories] ADD  CONSTRAINT [DF_GoodsCategories_Depth]  DEFAULT ((0)) FOR [Depth]
    GO

    ALTER TABLE [dbo].[GoodsCategories] ADD  CONSTRAINT [DF_GoodsCategories_AddTime]  DEFAULT (getdate()) FOR [AddTime]
    GO

    EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'GoodsCategories', @level2type=N'COLUMN',@level2name=N'ID'
    GO

    EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'类型名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'GoodsCategories', @level2type=N'COLUMN',@level2name=N'ClassName'
    GO

    EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'父ID' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'GoodsCategories', @level2type=N'COLUMN',@level2name=N'ParentID'
    GO

    EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'深度' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'GoodsCategories', @level2type=N'COLUMN',@level2name=N'Depth'
    GO

    EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'分类的根节点' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'GoodsCategories', @level2type=N'COLUMN',@level2name=N'RootID'
    GO

    EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'排序' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'GoodsCategories', @level2type=N'COLUMN',@level2name=N'Orders'
    GO

    EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'父ID路径' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'GoodsCategories', @level2type=N'COLUMN',@level2name=N'ParentIDPath'
    GO

    EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'添加时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'GoodsCategories', @level2type=N'COLUMN',@level2name=N'AddTime'
    GO

    EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'父級路徑名稱' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'GoodsCategories', @level2type=N'COLUMN',@level2name=N'ParentNamePath'
    GO

  • 相关阅读:
    .net里面实现javascript中的 escape 和 unescape 功能
    CMM/CMMI的5个等级
    数据库连接字符串大全
    关于ExtJS的许可协议
    C#网页自动登录和提交POST信息的多种方法
    [转]如何在网页中设置禁止查看源文件
    应用程序池的配置
    解决为应用程序池 提供服务的进程关闭时间超过了限制
    百度推出开放平台 或颠覆下载网站等六大行业
    UNION会自动删除重复项,union与union all的差异
  • 原文地址:https://www.cnblogs.com/zhangweixin/p/3938885.html
Copyright © 2011-2022 走看看