| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- /*
- Navicat SQL Server Data Transfer
- Source Server : 9000
- Source Server Version : 105000
- Source Host : .\sqlexpress:1433
- Source Database : LHBMS
- Source Schema : dbo
- Target Server Type : SQL Server
- Target Server Version : 105000
- File Encoding : 65001
- Date: 2021-05-11 15:33:42
- */
- -- ----------------------------
- -- Table structure for Organization
- -- ----------------------------
- DROP TABLE [dbo].[Organization]
- GO
- CREATE TABLE [dbo].[Organization] (
- [ID] uniqueidentifier NOT NULL DEFAULT (newid()) ROWGUIDCOL ,
- [Name] nvarchar(50) NOT NULL ,
- [Address] nvarchar(100) NULL ,
- [Telphone] nvarchar(50) NULL ,
- [Owner] nvarchar(50) NULL ,
- [ParentID] uniqueidentifier NULL ,
- [Remark] nvarchar(100) NULL
- )
- GO
- IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description',
- 'SCHEMA', N'dbo',
- 'TABLE', N'Organization',
- 'COLUMN', N'Name')) > 0)
- EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'名称'
- , @level0type = 'SCHEMA', @level0name = N'dbo'
- , @level1type = 'TABLE', @level1name = N'Organization'
- , @level2type = 'COLUMN', @level2name = N'Name'
- ELSE
- EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'名称'
- , @level0type = 'SCHEMA', @level0name = N'dbo'
- , @level1type = 'TABLE', @level1name = N'Organization'
- , @level2type = 'COLUMN', @level2name = N'Name'
- GO
- IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description',
- 'SCHEMA', N'dbo',
- 'TABLE', N'Organization',
- 'COLUMN', N'Address')) > 0)
- EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'详细地址'
- , @level0type = 'SCHEMA', @level0name = N'dbo'
- , @level1type = 'TABLE', @level1name = N'Organization'
- , @level2type = 'COLUMN', @level2name = N'Address'
- ELSE
- EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'详细地址'
- , @level0type = 'SCHEMA', @level0name = N'dbo'
- , @level1type = 'TABLE', @level1name = N'Organization'
- , @level2type = 'COLUMN', @level2name = N'Address'
- GO
- IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description',
- 'SCHEMA', N'dbo',
- 'TABLE', N'Organization',
- 'COLUMN', N'Telphone')) > 0)
- EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'联系电话'
- , @level0type = 'SCHEMA', @level0name = N'dbo'
- , @level1type = 'TABLE', @level1name = N'Organization'
- , @level2type = 'COLUMN', @level2name = N'Telphone'
- ELSE
- EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'联系电话'
- , @level0type = 'SCHEMA', @level0name = N'dbo'
- , @level1type = 'TABLE', @level1name = N'Organization'
- , @level2type = 'COLUMN', @level2name = N'Telphone'
- GO
- IF ((SELECT COUNT(*) from fn_listextendedproperty('MS_Description',
- 'SCHEMA', N'dbo',
- 'TABLE', N'Organization',
- 'COLUMN', N'Owner')) > 0)
- EXEC sp_updateextendedproperty @name = N'MS_Description', @value = N'负责人'
- , @level0type = 'SCHEMA', @level0name = N'dbo'
- , @level1type = 'TABLE', @level1name = N'Organization'
- , @level2type = 'COLUMN', @level2name = N'Owner'
- ELSE
- EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'负责人'
- , @level0type = 'SCHEMA', @level0name = N'dbo'
- , @level1type = 'TABLE', @level1name = N'Organization'
- , @level2type = 'COLUMN', @level2name = N'Owner'
- GO
- -- ----------------------------
- -- Records of Organization
- -- ----------------------------
- -- ----------------------------
- -- Indexes structure for table Organization
- -- ----------------------------
- -- ----------------------------
- -- Primary Key structure for table Organization
- -- ----------------------------
- ALTER TABLE [dbo].[Organization] ADD PRIMARY KEY ([ID])
- GO
|