<!--#include file="../inc/config.asp"-->
<!--#include file="../inc/conn.asp"-->
<!-- #include file="inc/Session.asp" -->
<%
'创建模型表
conn.execute("Create table t_module(id int IDENTITY (1, 1) NOT NULL,Title varchar(250),TableName varchar(250),Pid int default 0,ListFields varchar(500),primary key(id))")
'创建字段表
conn.execute("Create table t_fields(id int IDENTITY (1, 1) NOT NULL,ModuleId int default 0 not null,FName varchar(200),FTitle varchar(200),FType varchar(100),FLen int default 0,FormType varchar(200),FormTitle varchar(200),FormDefault varchar(2000),FSort int default 0,FStyle varchar(250),IsBindTable tinyint default 0,BindPara varchar(250),ShowInList tinyint default 0,primary key(id))")
conn.execute("alter table catalogs add ModuleId int default 0")
conn.execute("alter table catalogs add TempletId int default 0")
conn.execute("insert into t_module(Title,TableName,Pid,ListFields) values('文章','news',0,'')")
conn.execute("insert into t_module(Title,TableName,Pid,ListFields) values('下载','t_down_soft',0,'')")
call connclose()
response.Write("<p align=""center"">Success</p>")
%>