SqlSetup.sql
资源名称:OA300.rar [点击查看]
上传用户:cctv0805
上传日期:2010-01-03
资源大小:345k
文件大小:20k
源码类别:
OA系统
开发平台:
ASP/ASPX
- IF EXISTS(Select * From sysobjects where name = 'db_Administer' )
- DROP TABLE db_Administer
- GO
- CREATE TABLE [db_Administer] (
- [aID] [Tinyint] IDENTITY (1, 1) PRIMARY KEY CLUSTERED NOT NULL ,
- [aName] [varchar] (30) NOT NULL ,
- [aModule] [varchar] (50) NOT NULL ,
- [aEditType] [text] NULL ,
- [aAddType] [text] NULL ,
- [aDelType] [text] NULL ,
- [aViewType] [text] NULL
- ) ON [PRIMARY]
- GO
- IF EXISTS(Select * From sysobjects where name = 'db_Archives' )
- DROP TABLE db_Archives
- GO
- CREATE TABLE [db_Archives] (
- [Ass_ID] [int] IDENTITY (1, 1) PRIMARY KEY CLUSTERED NOT NULL ,
- [Ass_str0] [int] NULL ,
- [Ass_str1] [varchar] (50) NULL ,
- [Ass_str2] [varchar] (50) NULL ,
- [Ass_str3] [varchar] (50) NULL ,
- [Ass_str4] [varchar] (50) NULL ,
- [Ass_str5] [varchar] (50) NULL ,
- [Ass_str6] [varchar] (50) NULL ,
- [Ass_str7] [varchar] (50) NULL ,
- [Ass_str8] [varchar] (50) NULL ,
- [Ass_str9] [varchar] (50) NULL ,
- [Ass_str10] [varchar] (50) NULL ,
- [Ass_str11] [varchar] (50) NULL ,
- [Ass_str12] [varchar] (50) NULL ,
- [Ass_str13] [varchar] (50) NULL ,
- [Ass_str14] [varchar] (50) NULL ,
- [Ass_str15] [varchar] (50) NULL ,
- [Ass_str16] [varchar] (50) NULL ,
- [Ass_str17] [varchar] (50) NULL ,
- [Ass_str18] [varchar] (50) NULL ,
- [Ass_str19] [varchar] (50) NULL ,
- [Ass_str20] [varchar] (50) NULL ,
- [Ass_str21] [varchar] (50) NULL ,
- [Ass_str22] [varchar] (50) NULL ,
- [Ass_str23] [varchar] (50) NULL ,
- [Ass_str24] [varchar] (50) NULL ,
- [Ass_str25] [varchar] (50) NULL ,
- [Ass_str26] [varchar] (50) NULL ,
- [Ass_str27] [varchar] (50) NULL ,
- [Ass_str28] [varchar] (50) NULL ,
- [Ass_str29] [varchar] (50) NULL ,
- [Ass_str30] [varchar] (50) NULL ,
- [Ass_str31] [varchar] (50) NULL ,
- [Ass_str32] [varchar] (50) NULL ,
- [Ass_str33] [varchar] (50) NULL ,
- [Ass_str34] [varchar] (50) NULL ,
- [Ass_str35] [varchar] (50) NULL ,
- [Ass_str36] [text] NULL ,
- [Ass_str37] [text] NULL ,
- [Ass_str38] [text] NULL ,
- [Ass_str39] [text] NULL ,
- [Ass_str40] [text] NULL ,
- [Ass_str41] [text] NULL ,
- [Ass_date] [datetime] NOT NULL DEFAULT (getdate())
- ) ON [PRIMARY]
- GO
- IF EXISTS(Select * From sysobjects where name = 'db_Arrangement' )
- DROP TABLE db_Arrangement
- GO
- CREATE TABLE [db_Arrangement] (
- [aID] [int] IDENTITY (1, 1) PRIMARY KEY CLUSTERED NOT NULL ,
- [uID] [int] NOT NULL ,
- [aTitle] [varchar] (200) NOT NULL ,
- [aContent] [text] NULL ,
- [aDate] [datetime] NULL ,
- [aTime] [datetime] NULL ,
- [aComment] [text] NULL ,
- [gUser] [text] NULL ,
- [bUser] [text] NULL ,
- [uUser] [text] NULL
- ) ON [PRIMARY]
- GO
- IF EXISTS(Select * From sysobjects where name = 'db_Asset' )
- DROP TABLE db_Asset
- GO
- CREATE TABLE [db_Asset] (
- [ID] [smallint] IDENTITY (1, 1) PRIMARY KEY CLUSTERED NOT NULL ,
- [aName] [varchar] (50) NULL ,
- [aID] [smallint] NOT NULL ,
- [uID] [int] NOT NULL ,
- [gUser] [text] NULL ,
- [bUser] [text] NULL ,
- [uUser] [text] NULL
- ) ON [PRIMARY]
- GO
- IF EXISTS(Select * From sysobjects where name = 'db_AssetGroup' )
- DROP TABLE db_AssetGroup
- GO
- CREATE TABLE [db_AssetGroup] (
- [aID] [smallint] IDENTITY (1, 1) PRIMARY KEY CLUSTERED NOT NULL ,
- [aName] [varchar] (50) NOT NULL ,
- [uID] [int] NOT NULL
- ) ON [PRIMARY]
- GO
- IF EXISTS(Select * From sysobjects where name = 'db_Associate_Group' )
- DROP TABLE db_Associate_Group
- GO
- CREATE TABLE [db_Associate_Group] (
- [aID] [int] IDENTITY (1, 1) PRIMARY KEY CLUSTERED NOT NULL ,
- [aName] [nvarchar] (50) NOT NULL ,
- [uID] [int] NOT NULL
- ) ON [PRIMARY]
- GO
- IF EXISTS(Select * From sysobjects where name = 'db_Associate_User' )
- DROP TABLE db_Associate_User
- GO
- CREATE TABLE [db_Associate_User] (
- [ID] [int] IDENTITY (1, 1) PRIMARY KEY CLUSTERED NOT NULL ,
- [aID] [int] NOT NULL ,
- [uID] [int] NOT NULL ,
- [aName] [nvarchar] (50) NOT NULL ,
- [aSex] [varchar] (2) NOT NULL ,
- [aEmail] [nvarchar] (50) NULL ,
- [aTelHome] [nvarchar] (50) NULL ,
- [aTelOffice] [nvarchar] (50) NULL ,
- [aTelMob] [nvarchar] (50) NULL ,
- [aOicq] [nvarchar] (12) NULL ,
- [aMsn] [nvarchar] (50) NULL ,
- [aWork] [nvarchar] (200) NULL ,
- [aAddress] [nvarchar] (200) NULL ,
- [aZip] [nvarchar] (6) NULL ,
- [aUrl] [nvarchar] (200) NULL ,
- [aComment] [text] NULL
- ) ON [PRIMARY]
- GO
- IF EXISTS(Select * From sysobjects where name = 'db_Back_Flow' )
- DROP TABLE db_Back_Flow
- GO
- CREATE TABLE [db_Back_Flow] (
- [bID] [int] IDENTITY (1, 1) PRIMARY KEY CLUSTERED NOT NULL ,
- [fID] [int] NULL ,
- [fContent] [text] NULL ,
- [cID] [int] NULL ,
- [bSetup] [tinyint] NULL ,
- [bDate] [datetime] NOT NULL DEFAULT (getdate())
- ) ON [PRIMARY]
- GO
- IF EXISTS(Select * From sysobjects where name = 'db_Branch' )
- DROP TABLE db_Branch
- GO
- CREATE TABLE [db_Branch] (
- [bID] [int] IDENTITY (1, 1) PRIMARY KEY CLUSTERED NOT NULL ,
- [bName] [nvarchar] (50) NOT NULL ,
- [bLevel] [nvarchar] (50) NULL ,
- [bChief] [nvarchar] (50) NULL ,
- [bTel] [nvarchar] (50) NULL ,
- [bFax] [nvarchar] (50) NULL ,
- [bAddress] [nvarchar] (200) NULL ,
- [bUser] [text] NULL ,
- [bInfo] [text] NULL
- ) ON [PRIMARY]
- GO
- IF EXISTS(Select * From sysobjects where name = 'db_Censor' )
- DROP TABLE db_Censor
- GO
- CREATE TABLE [db_Censor] (
- [cID] [int] IDENTITY (1, 1) PRIMARY KEY CLUSTERED NOT NULL ,
- [fID] [int] NULL ,
- [cComment] [nvarchar] (200) NULL ,
- [cAdvice] [text] NULL ,
- [uID] [int] NOT NULL ,
- [cStep] [tinyint] NOT NULL ,
- [cOverDate] [datetime] NULL ,
- [cBack] [tinyint] Not NULL DEFAULT (0),
- [cCensor] [bit] Not NULL DEFAULT (0)
- ) ON [PRIMARY]
- GO
- IF EXISTS(Select * From sysobjects where name = 'db_Common_Associate_Group' )
- DROP TABLE db_Common_Associate_Group
- GO
- CREATE TABLE [db_Common_Associate_Group] (
- [cID] [int] IDENTITY (1, 1) PRIMARY KEY CLUSTERED NOT NULL ,
- [aName] [nvarchar] (50) NOT NULL ,
- [uID] [int] NOT NULL ,
- [gUser] [text] NULL ,
- [bUser] [text] NULL ,
- [uUser] [text] NULL
- ) ON [PRIMARY]
- GO
- IF EXISTS(Select * From sysobjects where name = 'db_Common_Associate_User' )
- DROP TABLE db_Common_Associate_User
- GO
- CREATE TABLE [db_Common_Associate_User] (
- [ID] [int] IDENTITY (1, 1) PRIMARY KEY CLUSTERED NOT NULL ,
- [cID] [int] NOT NULL ,
- [uID] [int] NOT NULL ,
- [aName] [nvarchar] (50) NOT NULL ,
- [aSex] [nvarchar] (2) NOT NULL ,
- [aEmail] [nvarchar] (50) NULL ,
- [aTelHome] [nvarchar] (50) NULL ,
- [aTelOffice] [nvarchar] (50) NULL ,
- [aTelMob] [nvarchar] (50) NULL ,
- [aOicq] [nvarchar] (12) NULL ,
- [aMsn] [nvarchar] (50) NULL ,
- [aWork] [nvarchar] (200) NULL ,
- [aAddress] [nvarchar] (200) NULL ,
- [aZip] [nvarchar] (6) NULL ,
- [aUrl] [nvarchar] (200) NULL ,
- [aComment] [text] NULL
- ) ON [PRIMARY]
- GO
- IF EXISTS(Select * From sysobjects where name = 'db_Common_Customer_Group' )
- DROP TABLE db_Common_Customer_Group
- GO
- CREATE TABLE [db_Common_Customer_Group] (
- [cID] [int] IDENTITY (1, 1) PRIMARY KEY CLUSTERED NOT NULL ,
- [aName] [nvarchar] (50) NOT NULL ,
- [uID] [int] NOT NULL ,
- [gUser] [text] NULL ,
- [bUser] [text] NULL ,
- [uUser] [text] NULL
- ) ON [PRIMARY]
- GO
- IF EXISTS(Select * From sysobjects where name = 'db_Common_Customer_User' )
- DROP TABLE db_Common_Customer_User
- GO
- CREATE TABLE [db_Common_Customer_User] (
- [ID] [int] IDENTITY (1, 1) PRIMARY KEY CLUSTERED NOT NULL ,
- [cID] [int] NOT NULL ,
- [uID] [int] NOT NULL ,
- [aName] [nvarchar] (50) NOT NULL ,
- [aSex] [nvarchar] (2) NOT NULL ,
- [aEmail] [nvarchar] (50) NULL ,
- [aTelHome] [nvarchar] (50) NULL ,
- [aTelOffice] [nvarchar] (50) NULL ,
- [aTelMob] [nvarchar] (50) NULL ,
- [aOicq] [nvarchar] (12) NULL ,
- [aMsn] [nvarchar] (50) NULL ,
- [aWork] [nvarchar] (200) NULL ,
- [aAddress] [nvarchar] (200) NULL ,
- [aZip] [nvarchar] (6) NULL ,
- [aUrl] [nvarchar] (200) NULL ,
- [aComment] [text] NULL
- ) ON [PRIMARY]
- GO
- IF EXISTS(Select * From sysobjects where name = 'db_Customer_Group' )
- DROP TABLE db_Customer_Group
- GO
- CREATE TABLE [db_Customer_Group] (
- [aID] [int] IDENTITY (1, 1) PRIMARY KEY CLUSTERED NOT NULL ,
- [aName] [nvarchar] (50) NOT NULL ,
- [uID] [int] NOT NULL
- ) ON [PRIMARY]
- GO
- IF EXISTS(Select * From sysobjects where name = 'db_Customer_User' )
- DROP TABLE db_Customer_User
- GO
- CREATE TABLE [db_Customer_User] (
- [ID] [int] IDENTITY (1, 1) PRIMARY KEY CLUSTERED NOT NULL ,
- [aID] [int] NOT NULL ,
- [uID] [int] NOT NULL ,
- [aName] [nvarchar] (50) NOT NULL ,
- [aSex] [nvarchar] (2) NOT NULL ,
- [aEmail] [nvarchar] (50) NULL ,
- [aTelHome] [nvarchar] (50) NULL ,
- [aTelOffice] [nvarchar] (50) NULL ,
- [aTelMob] [nvarchar] (50) NULL ,
- [aOicq] [nvarchar] (12) NULL ,
- [aMsn] [nvarchar] (50) NULL ,
- [aWork] [nvarchar] (200) NULL ,
- [aAddress] [nvarchar] (200) NULL ,
- [aZip] [nvarchar] (6) NULL ,
- [aUrl] [nvarchar] (200) NULL ,
- [aComment] [text] NULL
- ) ON [PRIMARY]
- GO
- IF EXISTS(Select * From sysobjects where name = 'db_Document' )
- DROP TABLE db_Document
- GO
- CREATE TABLE [db_Document] (
- [dID] [int] IDENTITY (1, 1) PRIMARY KEY CLUSTERED NOT NULL ,
- [uID] [int] NOT NULL ,
- [dTitle] [nvarchar] (255) NOT NULL ,
- [dContent] [text] NULL ,
- [dAttachment] [text] NULL ,
- [dDate] [datetime] NOT NULL DEFAULT (getdate()) ,
- [dType] [tinyint] NOT NULL ,
- [gUser] [text] NULL ,
- [bUser] [text] NULL ,
- [uUser] [text] NULL ,
- [dReader] [text] NULL ,
- [dDelUser] [text] NULL ,
- [dSended] [bit] NOT NULL DEFAULT (0)
- ) ON [PRIMARY]
- GO
- IF EXISTS(Select * From sysobjects where name = 'db_Document_Template' )
- DROP TABLE db_Document_Template
- GO
- CREATE TABLE [db_Document_Template] (
- [dID] [int] IDENTITY (1, 1) PRIMARY KEY CLUSTERED NOT NULL ,
- [uID] [int] NOT NULL ,
- [dTitle] [nvarchar] (200) NOT NULL ,
- [dContent] [text] NULL ,
- [gUser] [text] NULL ,
- [bUser] [text] NULL ,
- [uUser] [text] NULL ,
- [tType] [bit] NOT NULL
- ) ON [PRIMARY]
- GO
- IF EXISTS(Select * From sysobjects where name = 'db_Email' )
- DROP TABLE db_Email
- GO
- CREATE TABLE [db_Email] (
- [eID] [int] IDENTITY (1, 1) PRIMARY KEY CLUSTERED NOT NULL ,
- [uID] [int] NOT NULL ,
- [eTitle] [nvarchar] (255) NOT NULL ,
- [eContent] [text] NULL ,
- [eAttachment] [text] NULL ,
- [eDate] [datetime] NOT NULL DEFAULT (getdate()),
- [eType] [tinyint] NOT NULL ,
- [gUser] [text] NULL ,
- [bUser] [text] NULL ,
- [uUser] [text] NULL ,
- [eReader] [text] NULL ,
- [eReply] [text] NULL ,
- [eDelUser] [text] NULL ,
- [eSendSave] [bit] NULL DEFAULT (0)
- ) ON [PRIMARY]
- GO
- IF EXISTS(Select * From sysobjects where name = 'db_Flow_Document' )
- DROP TABLE db_Flow_Document
- GO
- CREATE TABLE [db_Flow_Document] (
- [fID] [int] IDENTITY (1, 1) PRIMARY KEY CLUSTERED NOT NULL ,
- [uID] [int] NOT NULL ,
- [fGS] [nvarchar] (20) NULL ,
- [fFH] [nvarchar] (20) NULL ,
- [fMM] [nvarchar] (20) NULL ,
- [fJJ] [nvarchar] (20) NULL ,
- [fBT] [nvarchar] (50) NULL ,
- [fZH] [nvarchar] (25) NULL ,
- [fTitle] [nvarchar] (255) NOT NULL ,
- [fContent] [text] NULL ,
- [fAttachment] [text] NULL ,
- [fSignature] [tinyint] NULL DEFAULT (0) ,
- [fFWJG] [nvarchar] (80) NULL ,
- [fComment] [text] NULL ,
- [fZTC] [nvarchar] (200) NULL ,
- [fYF] [text] NULL ,
- [fYS] [nvarchar] (5) NULL ,
- [fDate] [datetime] NOT NULL DEFAULT (getdate()),
- [fType] [tinyint] NULL ,
- [zgUser] [nvarchar] (10) NULL ,
- [zbUser] [nvarchar] (10) NULL ,
- [zuUser] [nvarchar] (10) NULL ,
- [gUser] [text] NULL ,
- [bUser] [text] NULL ,
- [uUser] [text] NULL ,
- [fReader] [text] NULL ,
- [fDelUser] [text] NULL ,
- [fCensorNum] [tinyint] NULL ,
- [fCensorer] [nvarchar] (6) NULL ,
- [fBack] [bit] NOT NULL DEFAULT (0) ,
- [fBackDate] [datetime] NULL
- ) ON [PRIMARY]
- GO
- IF EXISTS(Select * From sysobjects where name = 'db_Flow_Document_Template' )
- DROP TABLE db_Flow_Document_Template
- GO
- CREATE TABLE [db_Flow_Document_Template] (
- [fID] [int] IDENTITY (1, 1) PRIMARY KEY CLUSTERED NOT NULL ,
- [uID] [int] NOT NULL ,
- [fTitle] [nvarchar] (200) NOT NULL ,
- [fContent] [text] NULL ,
- [gUser] [text] NULL ,
- [bUser] [text] NULL ,
- [uUser] [text] NULL ,
- [tType] [bit] NOT NULL DEFAULT (0)
- ) ON [PRIMARY]
- GO
- IF EXISTS(Select * From sysobjects where name = 'db_Forum_Category' )
- DROP TABLE db_Forum_Category
- GO
- CREATE TABLE [db_Forum_Category] (
- [fID] [smallint] IDENTITY (1, 1) PRIMARY KEY CLUSTERED NOT NULL ,
- [fTitle] [nvarchar] (100) NOT NULL ,
- [fComment] [text] NULL ,
- [gUser] [text] NULL ,
- [bUser] [text] NULL ,
- [uUser] [text] NULL ,
- [uID] [int] NOT NULL ,
- [fTopicCount] [int] NOT NULL DEFAULT (0) ,
- [fReplyCount] [int] NOT NULL DEFAULT (0)
- ) ON [PRIMARY]
- GO
- IF EXISTS(Select * From sysobjects where name = 'db_Forum_Reply' )
- DROP TABLE db_Forum_Reply
- GO
- CREATE TABLE [db_Forum_Reply] (
- [rID] [int] IDENTITY (1, 1) PRIMARY KEY CLUSTERED NOT NULL ,
- [tID] [int] NOT NULL ,
- [uID] [int] NOT NULL ,
- [rContent] [text] NULL ,
- [rPoctDate] [datetime] NOT NULL DEFAULT (getdate())
- ) ON [PRIMARY]
- GO
- IF EXISTS(Select * From sysobjects where name = 'db_Forum_Topic' )
- DROP TABLE db_Forum_Topic
- GO
- CREATE TABLE [db_Forum_Topic] (
- [tID] [int] IDENTITY (1, 1) PRIMARY KEY CLUSTERED NOT NULL ,
- [fID] [smallint] NOT NULL ,
- [uID] [int] NOT NULL ,
- [tTitle] [nvarchar] (200) NOT NULL ,
- [tContent] [text] NULL ,
- [tPostDate] [datetime] NOT NULL DEFAULT (getdate()),
- [tView] [int] NULL ,
- [tReplyCount] [int] NULL
- ) ON [PRIMARY]
- GO
- IF EXISTS(Select * From sysobjects where name = 'db_Group' )
- DROP TABLE db_Group
- GO
- CREATE TABLE [db_Group] (
- [gID] [smallint] IDENTITY (1, 1) PRIMARY KEY CLUSTERED NOT NULL ,
- [gName] [nvarchar] (80) NOT NULL ,
- [gUser] [text] NULL
- ) ON [PRIMARY]
- GO
- IF EXISTS(Select * From sysobjects where name = 'db_Meeting' )
- DROP TABLE db_Meeting
- GO
- CREATE TABLE [db_Meeting] (
- [mID] [int] IDENTITY (1, 1) PRIMARY KEY CLUSTERED NOT NULL ,
- [uID] [int] NOT NULL ,
- [mChief] [int] NULL ,
- [mTitle] [nvarchar] (200) NOT NULL ,
- [mComment] [text] NULL ,
- [gUser] [text] NULL ,
- [bUser] [text] NULL ,
- [uUser] [text] NULL ,
- [mDate] [datetime] NOT NULL DEFAULT (getdate()) ,
- [mType] [bit] NOT NULL DEFAULT (0)
- ) ON [PRIMARY]
- GO
- IF EXISTS(Select * From sysobjects where name = 'db_Meeting_Online' )
- DROP TABLE db_Meeting_Online
- GO
- CREATE TABLE [db_Meeting_Online] (
- [oID] [int] IDENTITY (1, 1) PRIMARY KEY CLUSTERED NOT NULL ,
- [mID] [int] NOT NULL ,
- [uID] [int] NOT NULL ,
- [oDate] [datetime] NOT NULL DEFAULT (getdate())
- ) ON [PRIMARY]
- GO
- IF EXISTS(Select * From sysobjects where name = 'db_Msg' )
- DROP TABLE db_Msg
- GO
- CREATE TABLE [db_Msg] (
- [mID] [int] IDENTITY (1, 1) PRIMARY KEY CLUSTERED NOT NULL ,
- [mFrom] [int] NOT NULL ,
- [mTo] [int] NOT NULL ,
- [mMessage] [text] NULL ,
- [mDate] [datetime] NOT NULL DEFAULT (getdate())
- ) ON [PRIMARY]
- GO
- IF EXISTS(Select * From sysobjects where name = 'db_News' )
- DROP TABLE db_News
- GO
- CREATE TABLE [db_News] (
- [nID] [int] IDENTITY (1, 1) PRIMARY KEY CLUSTERED NOT NULL ,
- [uID] [int] NOT NULL ,
- [nTitle] [nvarchar] (255) NOT NULL ,
- [nContent] [text] NULL ,
- [nDate] [datetime] NOT NULL DEFAULT (getdate()),
- [gUser] [text] NULL ,
- [bUser] [text] NULL ,
- [uUser] [text] NULL ,
- [nReader] [text] NULL
- ) ON [PRIMARY]
- GO
- IF EXISTS(Select * From sysobjects where name = 'db_Per_Event' )
- DROP TABLE db_Per_Event
- GO
- CREATE TABLE [db_Per_Event] (
- [aID] [int] IDENTITY (1, 1) PRIMARY KEY CLUSTERED NOT NULL ,
- [uID] [int] NOT NULL ,
- [aTitle] [nvarchar] (200) NOT NULL ,
- [aContent] [text] NULL ,
- [aComment] [text] NULL ,
- [aDate] [datetime] NULL ,
- [aTime] [datetime] NULL ,
- [aType] [nvarchar] (1) NOT NULL
- ) ON [PRIMARY]
- GO
- IF EXISTS(Select * From sysobjects where name = 'db_Policy' )
- DROP TABLE db_Policy
- GO
- CREATE TABLE [db_Policy] (
- [pID] [int] IDENTITY (1, 1) PRIMARY KEY CLUSTERED NOT NULL ,
- [uID] [int] NOT NULL ,
- [pTitle] [nvarchar] (255) NOT NULL ,
- [pContent] [text] NULL ,
- [pDate] [datetime] NOT NULL DEFAULT (getdate()),
- [gUser] [text] NULL ,
- [bUser] [text] NULL ,
- [uUser] [text] NULL ,
- [pReader] [text] NULL
- ) ON [PRIMARY]
- GO
- IF EXISTS(Select * From sysobjects where name = 'db_Reserve' )
- DROP TABLE db_Reserve
- GO
- CREATE TABLE [db_Reserve] (
- [ID] [int] IDENTITY (1, 1) PRIMARY KEY CLUSTERED NOT NULL ,
- [aID] [int] NOT NULL ,
- [uID] [int] NOT NULL ,
- [StartTime] [datetime] NULL ,
- [EndTime] [datetime] NULL ,
- [Asset_Info] [text] NULL
- ) ON [PRIMARY]
- GO
- IF EXISTS(Select * From sysobjects where name = 'db_Signature' )
- DROP TABLE db_Signature
- GO
- CREATE TABLE [db_Signature] (
- [sID] [int] IDENTITY (1, 1) PRIMARY KEY CLUSTERED NOT NULL ,
- [uID] [int] NOT NULL ,
- [sName] [nvarchar] (80) NOT NULL ,
- [sSignature] [nvarchar] (100) NULL ,
- [sComment] [text] NULL ,
- [gUser] [text] NULL ,
- [bUser] [text] NULL ,
- [uUser] [text] NULL ,
- [sDate] [datetime] NOT NULL DEFAULT (getdate()),
- [sType] [bit] NOT NULL DEFAULT (0)
- ) ON [PRIMARY]
- GO
- IF EXISTS(Select * From sysobjects where name = 'db_User' )
- DROP TABLE db_User
- GO
- CREATE TABLE [db_User] (
- [uID] [int] IDENTITY (1, 1) PRIMARY KEY CLUSTERED NOT NULL ,
- [uName] [nvarchar] (20) NOT NULL ,
- [uSex] [nvarchar] (2) NOT NULL ,
- [uPassword] [nvarchar] (50) NOT NULL ,
- [uTel] [nvarchar] (20) NULL ,
- [uEmail] [nvarchar] (50) NULL ,
- [uOicq] [nvarchar] (12) NULL ,
- [uInfo] [text] NULL ,
- [uRegTime] [datetime] NOT NULL DEFAULT (getdate()),
- [uLastLoginTime] [datetime] NULL ,
- [uLastActiveTime] [datetime] NULL,
- [uOnline] [bit] NOT NULL DEFAULT (0),
- [uLevel] [nvarchar] (1) NULL ,
- [uLoginCount] [int] NOT NULL DEFAULT (0) ,
- [uChkDesk] [bit] NOT NULL DEFAULT (0)
- ) ON [PRIMARY]
- GO
- IF EXISTS(Select * From sysobjects where name = 'db_Version' )
- DROP TABLE db_Version
- GO
- CREATE TABLE [db_Version] (
- [ID] [int] IDENTITY (1, 1) PRIMARY KEY CLUSTERED NOT NULL ,
- [vSerialNumber] [nvarchar] (50) NULL ,
- ) ON [PRIMARY]
- GO
- INSERT INTO [db_USER] ([uName],[uSex], [uPassword],[uTel],[uEmail],[uOicq],[uInfo],[uLastLoginTime],[uLastActiveTime],[uLevel]) VALUES ('admin','男','293740B3817A38ADC0898C1858AA86','13540042001','net-oa@sohu.com','2503086','NET-OA开发人:江南行客',getdate(),getdate(),'1')
- INSERT INTO [db_Branch] ([bName],[bLevel],[bChief],[bUser]) VALUES ('最高部门','0','|1|','|1|')
- INSERT INTO [db_Group] ([gName],[gUser]) VALUES ('管理用户组','|1|')
- INSERT INTO [db_Signature] ([uID],[sName],[sSignature],[sComment],[sType]) VALUES (1,'个人印鉴','1/1_signature.gif','个人印章,仅供本人使用。',1)
- INSERT INTO [db_Signature] ([uID],[sName],[sSignature],[sComment],[uUser],[sType]) VALUES (1,'软件鉴定章','1/1_jnxk.gif','"江南行客软件制作中心"鉴定章','|1|',0)
- INSERT INTO [db_Administer] ([aName],[aModule],[aAddType],[aEditType],[aDelType],[aViewType]) VALUES ('动态信息', 'NEWS','|','|','|','|')
- INSERT INTO [db_Administer] ([aName],[aModule],[aAddType],[aEditType],[aDelType],[aViewType]) VALUES ('公共计划信息', 'COMMONARRANGEMENT','|','|','|','|')
- INSERT INTO [db_Administer] ([aName],[aModule],[aAddType],[aEditType],[aDelType],[aViewType]) VALUES ('公共通讯录', 'COMMONASSOCIATE','|','|','|','|')
- INSERT INTO [db_Administer] ([aName],[aModule],[aAddType],[aEditType],[aDelType],[aViewType]) VALUES ('公共客户', 'COMMONCUSTOMER','|','|','|','|')
- INSERT INTO [db_Administer] ([aName],[aModule],[aAddType],[aEditType],[aDelType],[aViewType]) VALUES ('论坛管理', 'FORUM','|','|','|','|')
- INSERT INTO [db_Administer] ([aName],[aModule],[aAddType],[aEditType],[aDelType],[aViewType]) VALUES ('会议管理', 'MEETING','|','|','|','|')
- INSERT INTO [db_Administer] ([aName],[aModule],[aAddType],[aEditType],[aDelType],[aViewType]) VALUES ('普通公文模板', 'DOCUMENTTEMPLATE','|','|','|','|')
- INSERT INTO [db_Administer] ([aName],[aModule],[aAddType],[aEditType],[aDelType],[aViewType]) VALUES ('流转公文模板', 'FLOWDOCUMENTTEMPLATE','|','|','|','|')
- INSERT INTO [db_Administer] ([aName],[aModule],[aAddType],[aEditType],[aDelType],[aViewType]) VALUES ('部门管理', 'BRANCH','|','|','|','|')
- INSERT INTO [db_Administer] ([aName],[aModule],[aAddType],[aEditType],[aDelType],[aViewType]) VALUES ('用户组管理', 'GROUP','|','|','|','|')
- INSERT INTO [db_Administer] ([aName],[aModule],[aAddType],[aEditType],[aDelType],[aViewType]) VALUES ('用户管理', 'USER','|','|','|','|')
- INSERT INTO [db_Administer] ([aName],[aModule],[aAddType],[aEditType],[aDelType],[aViewType]) VALUES ('印章管理', 'SIGNATURE','|','|','|','|')
- INSERT INTO [db_Administer] ([aName],[aModule],[aAddType],[aEditType],[aDelType],[aViewType]) VALUES ('资源管理', 'ASSET','|','|','|','|')
- INSERT INTO [db_Version]([vSerialNumber]) VALUES ('Demo')