USE [oa_sys]
GO
/****** Object: Table [dbo].[tb_users] Script Date: 07/23/2013 18:12:48 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[tb_users](
[id] [int] IDENTITY(1,1) NOT NULL,
[u_user] [varchar](50) NULL,
[u_pwd] [varchar](50) NULL,
[u_name] [varchar](50) NULL,
[u_sex] [char](10) NULL,
[u_regdate] [date] NULL,
[u_address] [varchar](50) NULL,
[u_tel] [varchar](50) NULL,
[u_email] [varchar](50) NULL,
[u_depart] [varchar](50) NULL,
[is_on] [int] NULL
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object: Table [dbo].[tb_spliter] Script Date: 07/23/2013 18:12:48 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[tb_spliter](
[id] [int] IDENTITY(1,1) NOT NULL,
[spliter_name] [varchar](50) NULL,
[spliter_city] [varchar](50) NULL,
[up_spliter] [int] NULL,
[p_name] [varchar](50) NULL,
[i_state] [int] NULL,
[complet_date] [date] NULL,
[relate_depart] [varchar](50) NULL,
[up_lever] [int] NULL,
[cell_name] [varchar](50) NULL
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object: Table [dbo].[tb_sortlist] Script Date: 07/23/2013 18:12:48 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[tb_sortlist](
[id] [int] IDENTITY(1,1) NOT NULL,
[sort] [varchar](100) NULL
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object: Table [dbo].[tb_lyb] Script Date: 07/23/2013 18:12:48 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[tb_lyb](
[id] [int] IDENTITY(1,1) NOT NULL,
[l_title] [varchar](50) NULL,
[l_content] [text] NULL,
[l_time] [datetime] NULL,
[l_city] [varchar](50) NULL,
[r_backid] [int] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object: Table [dbo].[tb_list] Script Date: 07/23/2013 18:12:48 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[tb_list](
[id] [int] IDENTITY(1,1) NOT NULL,
[f_name] [varchar](50) NULL,
[f_type] [varchar](50) NULL,
[o_url] [varchar](50) NULL,
[o_group] [varchar](200) NULL
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object: Table [dbo].[tb_group] Script Date: 07/23/2013 18:12:48 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[tb_group](
[id] [int] IDENTITY(1,1) NOT NULL,
[u_group] [varchar](50) NULL,
[u_member] [text] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object: Table [dbo].[tb_ftth] Script Date: 07/23/2013 18:12:48 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[tb_ftth](
[id] [int] IDENTITY(1,1) NOT NULL,
[olt_ip] [varchar](20) NULL,
[au_sn] [varchar](100) NULL,
[olt_port] [varchar](10) NULL,
[ont_id] [int] NULL,
[user_vlan] [varchar](10) NULL,
[sub_vlan] [int] NULL,
[virtual_vlan] [varchar](50) NULL,
[line_id] [varchar](15) NULL,
[srv_id] [varchar](15) NULL,
[gemport] [varchar](15) NULL,
[ont_desc] [varchar](100) NULL,
[spliter] [varchar](100) NULL,
[depart] [varchar](50) NULL,
[main_user] [varchar](50) NULL,
[complete_date] [date] NULL
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object: Table [dbo].[tb_depart] Script Date: 07/23/2013 18:12:48 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[tb_depart](
[id] [int] IDENTITY(1,1) NOT NULL,
[d_name] [nchar](20) NOT NULL,
[top_depart] [int] NULL,
[up_depart] [int] NULL,
[remark] [nchar](50) NULL
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[tb_controller] Script Date: 07/23/2013 18:12:48 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[tb_controller](
[id] [int] IDENTITY(1,1) NOT NULL,
[manager] [varchar](50) NULL,
[mana_pwd] [varchar](50) NULL,
[purview] [int] NULL
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object: Table [dbo].[tb_company] Script Date: 07/23/2013 18:12:48 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[tb_company](
[id] [int] IDENTITY(1,1) NOT NULL,
[f_name] [varchar](50) NULL,
[f_content] [text] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object: Table [dbo].[tb_cell] Script Date: 07/23/2013 18:12:48 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[tb_cell](
[id] [int] IDENTITY(1,1) NOT NULL,
[cell_name] [varchar](50) NOT NULL,
[city_name] [varchar](50) NULL,
[up_cell] [int] NULL,
[p_name] [varchar](50) NULL,
[istate] [int] NULL,
[complete_date] [date] NULL,
[relate] [varchar](50) NULL
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object: Table [dbo].[tb_account] Script Date: 07/23/2013 18:12:48 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[tb_account](
[id] [int] IDENTITY(1,1) NOT NULL,
[user_name] [varchar](150) NULL,
[istae] [varchar](10) NULL,
[user_cell] [varchar](150) NULL,
[user_account] [varchar](20) NULL,
[user_port] [varchar](250) NULL
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
/****** Object: Table [dbo].[Splitter_Info] Script Date: 07/23/2013 18:12:48 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Splitter_Info](
[id] [int] NOT NULL,
[O_Cellname] [nvarchar](50) NULL,
[OLT_Address] [nvarchar](50) NULL,
[OLT_Port] [nvarchar](50) NULL,
[F_Splitter] [nvarchar](50) NULL,
[F_S_Port] [int] NULL,
[S_Splitter] [nvarchar](50) NULL,
[S_S_Port] [int] NULL,
[City_Name] [nvarchar](50) NULL,
[Description] [nvarchar](50) NULL
) ON [PRIMARY]
GO
时间: 2013-7-23 18:15
作者: hylin
USE [oa_sys]
GO
/****** Object: Table [dbo].[Olt_Info] Script Date: 07/23/2013 18:15:18 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Olt_Info](
[id] [int] IDENTITY(1,1) NOT NULL,
[OLT_Office] [nvarchar](50) NULL,
[OLT_Address] [nvarchar](50) NULL,
[OLT_Type] [nvarchar](50) NULL,
[OLT_Version] [nvarchar](50) NULL,
[OLT_Username] [nvarchar](50) NULL,
[OLT_Password] [nvarchar](50) NULL,
[City_Name] [nvarchar](50) NULL
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[Cell_Info] Script Date: 07/23/2013 18:15:18 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[Cell_Info](
[id] [int] IDENTITY(1,1) NOT NULL,
[O_Cellname] [nvarchar](50) NULL,
[Qinq_Vlan] [nchar](10) NULL,
[OLT_Address] [nvarchar](50) NULL,
[City_Name] [nvarchar](50) NULL,
[line_proid] [char](8) NULL,
[srv_proid] [char](8) NULL,
[gemport_id] [char](8) NULL,
[F_Sub_Vlan] [char](8) NULL,
[L_Sub_Vlan] [char](8) NULL
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO