create table dbo.UTB_WEB_CM_PL
(
ID bigint not null primary key, -- 评论 --
TheName nvarchar(255) not null, -- 名称 --
TheContent ntext, -- 内容 --
EmTableV int not null, -- 对应表单 --
Item_Id bigint not null, -- 对应记录 --
PID bigint not null, -- 上一评论 --
EmPLTypeV int not null, -- 类型 --
EmPLShowV int not null, -- 显示 --
PostUserId bigint not null, -- 发布人 --
PostUserName nvarchar(255) not null, -- 发布帐号 --
PostTheName nvarchar(255), -- 发布人姓名 --
PostTel nvarchar(255), -- 发布人联系方式 --
PostDatetime datetime default getdate() not null, -- 发布时间 --
EmPLAuditV int not null, -- 审核状态 --
AuditText ntext, -- 审核内容 --
AuditUserId bigint not null, -- 审核用户 --
AuditUserName nvarchar(255) not null, -- 审核用户帐号 --
AuditTime datetime not null, -- 审核时间 --
FromIP nvarchar(50) not null, -- 来源IP --
IPAddress nvarchar(1000) not null, -- IP地址 --
SessionID nvarchar(255) not null, -- 当时Session --
VisitWeb nvarchar(255) not null, -- 访问页面 --
UrlReferrer nvarchar(255) not null, -- 上一访问来源 --
BrowserInfo nvarchar(255) not null, -- 浏览器信息 --
BrowserVersion nvarchar(255) not null, -- 浏览器版本 --
ClientLanguage nvarchar(255) not null, -- 语音 --
Platform nvarchar(255) not null, -- 平台 --
CreateTime datetime default getdate() not null, -- 创建时间 --
UpdateTime datetime default getdate() not null -- 修改时间 --
);
--+ [表]UTB_WEB_CM_PL:评论 |--
EXECUTE sp_addextendedproperty N'MS_Description', N'评论', N'user', N'dbo', N'table', N'UTB_WEB_CM_PL', NULL, NULL;
--+ ID:评论 |--
EXECUTE sp_addextendedproperty N'MS_Description', N'评论', N'user', N'dbo', N'table', N'UTB_WEB_CM_PL', 'column', 'ID';
--+ TheName:名称 |--
EXECUTE sp_addextendedproperty N'MS_Description', N'名称', N'user', N'dbo', N'table', N'UTB_WEB_CM_PL', 'column', 'TheName';
--+ TheContent:内容 |--
EXECUTE sp_addextendedproperty N'MS_Description', N'内容', N'user', N'dbo', N'table', N'UTB_WEB_CM_PL', 'column', 'TheContent';
--+ EmTableV:对应表单 |--
EXECUTE sp_addextendedproperty N'MS_Description', N'对应表单', N'user', N'dbo', N'table', N'UTB_WEB_CM_PL', 'column', 'EmTableV';
--+ Item_Id:对应记录 |--
EXECUTE sp_addextendedproperty N'MS_Description', N'对应记录', N'user', N'dbo', N'table', N'UTB_WEB_CM_PL', 'column', 'Item_Id';
--+ PID:上一评论 |--
EXECUTE sp_addextendedproperty N'MS_Description', N'上一评论', N'user', N'dbo', N'table', N'UTB_WEB_CM_PL', 'column', 'PID';
--+ EmPLTypeV:类型 |--
EXECUTE sp_addextendedproperty N'MS_Description', N'类型', N'user', N'dbo', N'table', N'UTB_WEB_CM_PL', 'column', 'EmPLTypeV';
--+ EmPLShowV:显示 |--
EXECUTE sp_addextendedproperty N'MS_Description', N'显示', N'user', N'dbo', N'table', N'UTB_WEB_CM_PL', 'column', 'EmPLShowV';
--+ PostUserId:发布人 |--
EXECUTE sp_addextendedproperty N'MS_Description', N'发布人', N'user', N'dbo', N'table', N'UTB_WEB_CM_PL', 'column', 'PostUserId';
--+ PostUserName:发布帐号 |--
EXECUTE sp_addextendedproperty N'MS_Description', N'发布帐号', N'user', N'dbo', N'table', N'UTB_WEB_CM_PL', 'column', 'PostUserName';
--+ PostTheName:发布人姓名 |--
EXECUTE sp_addextendedproperty N'MS_Description', N'发布人姓名', N'user', N'dbo', N'table', N'UTB_WEB_CM_PL', 'column', 'PostTheName';
--+ PostTel:发布人联系方式 |--
EXECUTE sp_addextendedproperty N'MS_Description', N'发布人联系方式', N'user', N'dbo', N'table', N'UTB_WEB_CM_PL', 'column', 'PostTel';
--+ PostDatetime:发布时间 |--
EXECUTE sp_addextendedproperty N'MS_Description', N'发布时间', N'user', N'dbo', N'table', N'UTB_WEB_CM_PL', 'column', 'PostDatetime';
--+ EmPLAuditV:审核状态 |--
EXECUTE sp_addextendedproperty N'MS_Description', N'审核状态', N'user', N'dbo', N'table', N'UTB_WEB_CM_PL', 'column', 'EmPLAuditV';
--+ AuditText:审核内容 |--
EXECUTE sp_addextendedproperty N'MS_Description', N'审核内容', N'user', N'dbo', N'table', N'UTB_WEB_CM_PL', 'column', 'AuditText';
--+ AuditUserId:审核用户 |--
EXECUTE sp_addextendedproperty N'MS_Description', N'审核用户', N'user', N'dbo', N'table', N'UTB_WEB_CM_PL', 'column', 'AuditUserId';
--+ AuditUserName:审核用户帐号 |--
EXECUTE sp_addextendedproperty N'MS_Description', N'审核用户帐号', N'user', N'dbo', N'table', N'UTB_WEB_CM_PL', 'column', 'AuditUserName';
--+ AuditTime:审核时间 |--
EXECUTE sp_addextendedproperty N'MS_Description', N'审核时间', N'user', N'dbo', N'table', N'UTB_WEB_CM_PL', 'column', 'AuditTime';
--+ FromIP:来源IP |--
EXECUTE sp_addextendedproperty N'MS_Description', N'来源IP', N'user', N'dbo', N'table', N'UTB_WEB_CM_PL', 'column', 'FromIP';
--+ IPAddress:IP地址 |--
EXECUTE sp_addextendedproperty N'MS_Description', N'IP地址', N'user', N'dbo', N'table', N'UTB_WEB_CM_PL', 'column', 'IPAddress';
--+ SessionID:当时Session |--
EXECUTE sp_addextendedproperty N'MS_Description', N'当时Session', N'user', N'dbo', N'table', N'UTB_WEB_CM_PL', 'column', 'SessionID';
--+ VisitWeb:访问页面 |--
EXECUTE sp_addextendedproperty N'MS_Description', N'访问页面', N'user', N'dbo', N'table', N'UTB_WEB_CM_PL', 'column', 'VisitWeb';
--+ UrlReferrer:上一访问来源 |--
EXECUTE sp_addextendedproperty N'MS_Description', N'上一访问来源', N'user', N'dbo', N'table', N'UTB_WEB_CM_PL', 'column', 'UrlReferrer';
--+ BrowserInfo:浏览器信息 |--
EXECUTE sp_addextendedproperty N'MS_Description', N'浏览器信息', N'user', N'dbo', N'table', N'UTB_WEB_CM_PL', 'column', 'BrowserInfo';
--+ BrowserVersion:浏览器版本 |--
EXECUTE sp_addextendedproperty N'MS_Description', N'浏览器版本', N'user', N'dbo', N'table', N'UTB_WEB_CM_PL', 'column', 'BrowserVersion';
--+ ClientLanguage:语音 |--
EXECUTE sp_addextendedproperty N'MS_Description', N'语音', N'user', N'dbo', N'table', N'UTB_WEB_CM_PL', 'column', 'ClientLanguage';
--+ Platform:平台 |--
EXECUTE sp_addextendedproperty N'MS_Description', N'平台', N'user', N'dbo', N'table', N'UTB_WEB_CM_PL', 'column', 'Platform';
--+ CreateTime:创建时间 |--
EXECUTE sp_addextendedproperty N'MS_Description', N'创建时间', N'user', N'dbo', N'table', N'UTB_WEB_CM_PL', 'column', 'CreateTime';
--+ UpdateTime:修改时间 |--
EXECUTE sp_addextendedproperty N'MS_Description', N'修改时间', N'user', N'dbo', N'table', N'UTB_WEB_CM_PL', 'column', 'UpdateTime';
-- 创建[表格:UTB_WEB_CM_PL] seq_web_cm_pl --
insert into utb_sys_dual (SequenceName, ID, CreateTime, UpdateTime, TableName) values
(
'seq_web_cm_pl', 1, getdate(), getdate(), 'UTB_WEB_CM_PL'
);