数据表:T_BAS_MAILSENDACCOUNT(邮件发送虚拟帐户)

T_BAS_MAILSENDACCOUNT(邮件发送虚拟帐户):描述

名称

T_BAS_MAILSENDACCOUNT(邮件发送虚拟帐户)

代码

T_BAS_MAILSENDACCOUNT

注释

使用虚拟用户发送时,用户对应的虚拟用户设置

模型

BOS

主键

Key_1


T_BAS_MAILSENDACCOUNT(邮件发送虚拟帐户):列规格定义

名称

代码

数据类型

长度

强制

注释

FID

FID

int

 

TRUE

 

用户ID

FUserId

bigint

 

TRUE

关联用户表

工作流发送虚拟帐户

FWFSendAccount

int

 

TRUE

工作流用该帐户发邮件
按客户需求,有些流程有外部用户,需要按用户配置不同发送服务器,考虑将来每个服务器可能有多个虚拟帐户,这里按虚拟帐户配置

关联T_BAS_MAILVIRTUALACCOUNT 的 FID


T_BAS_MAILSENDACCOUNT(邮件发送虚拟帐户):脚本代码

if exists (select 1
from sysindexes
where id = object_id('T_BAS_MAILSENDACCOUNT')
and name = 'idx_BAS_MailSA_FuserId'
and indid > 0
and indid < 255)
drop index T_BAS_MAILSENDACCOUNT.idx_BAS_MailSA_FuserId
go

if exists (select 1
from sysobjects
where id = object_id('T_BAS_MAILSENDACCOUNT')
and type = 'U')
drop table T_BAS_MAILSENDACCOUNT
go

/*==============================================================*/
/* Table: T_BAS_MAILSENDACCOUNT */
/*==============================================================*/
create table T_BAS_MAILSENDACCOUNT (
FID int not null,
FUserId bigint not null,
FWFSendAccount int not null,
constraint PK_BAS_MAILSENDACCOUNT primary key nonclustered (FID)
)
go

/*==============================================================*/
/* Index: idx_BAS_MailSA_FuserId */
/*==============================================================*/
create unique clustered index idx_BAS_MailSA_FuserId on T_BAS_MAILSENDACCOUNT (
FUserId ASC,
FWFSendAccount ASC
)
go


T_BAS_MAILSENDACCOUNT(邮件发送虚拟帐户):键值定义

名称

代码

主要的

Key_1

Key_1

TRUE


T_BAS_MAILSENDACCOUNT(邮件发送虚拟帐户):索引定义

名称

代码

唯一的

群集器

主要的

外键

候选键

表格

idx_BAS_MailSA_FuserId

idx_BAS_MailSA_FuserId

TRUE

TRUE

FALSE

FALSE

FALSE

T_BAS_MAILSENDACCOUNT(邮件发送虚拟帐户)