EMAIL_PREV 
Logical Entity Name  Email Preview 
Default Table Name  EMAIL_PREV 
Oracle Temporary Table  NO 
Physical Only  NO 
Do Not Generate  False 
Owner  CNMS_PRPSL 
Definition 
Proposal Email Preview: Email header and body information for emails generated by User email templates.
 
Note 
 
PreSQL   
DDL Code  CREATE TABLE CNMS_PRPSL.EMAIL_PREV(
     TEMPLATE_ID           NUMBER(3, 0)       NOT NULL,
     SEQ_ID                NUMBER(38, 0)      NOT NULL,
     RECPT_EMAIL_ADDR      VARCHAR2(75)       NOT NULL,
     PROPOSAL_PRPSL_ID     VARCHAR2(10),
     PRPSL_ID              NUMBER(10, 0),
     FROM_EMAIL_ADDR       VARCHAR2(200),
     EMAIL_SUBJ            VARCHAR2(500)      NOT NULL,
     EMAIL_TEXT            VARCHAR2(4000)     NOT NULL,
     CC_EMAIL_ADDR         VARCHAR2(4000),
     CUR_DTE               DATE               DEFAULT sysdate NOT NULL,
     CONSTRAINT PK_EMAIL_PREV PRIMARY KEY (TEMPLATE_ID, SEQ_ID)
     USING INDEX
         LOGGING,
     CONSTRAINT fk_email_prev_to_prpsl FOREIGN KEY (PROPOSAL_PRPSL_ID)
     REFERENCES CNMS_PRPSL.PROPOSAL(PRPSL_ID),
     CONSTRAINT fk_email_template_to_email_prev FOREIGN KEY (TEMPLATE_ID)
     REFERENCES CNMS_PRPSL.EMAIL_TEMPLATE(TEMPLATE_ID)
)
LOGGING
NOPARALLEL
NOCACHE
NOCOMPRESS
;
 
PostSQL   

EMAIL_PREV Columns 
ColumnName  Domain  Datatype  NULL  Definition 
TEMPLATE_ID(PK)(FK)    NUMBER(3, 0)  NO 
Template Identiifer: Unique identifier for the email template.
 
SEQ_ID(PK)  Sequence  NUMBER(38, 0)  NO 
Sequence:  A numerical primary key value derived from a Sequence.
 
RECPT_EMAIL_ADDR  Email Addr  VARCHAR2(75)  NO 
Email Address:
 
PRPSL_ID(FK)    VARCHAR2(10)  YES 
Proposal Identifier: Unique identifer assigned to the proposal.
 
PRPSL_ID    NUMBER(10, 0)  YES 
Proposal Identifier: Unique identifer assigned to the proposal.
 
FROM_EMAIL_ADDR  Email Addr  VARCHAR2(200)  YES 
Email Address:
 
EMAIL_SUBJ    VARCHAR2(500)  NO 
Email Subject: The subject of the email.
 
EMAIL_TEXT    VARCHAR2(4000)  NO 
Email Text: The body of the email.
 
CC_EMAIL_ADDR  Email Addr  VARCHAR2(4000)  YES 
Email Address:
 
CUR_DTE  Date  DATE  NO 
Date: Date and time to seconds.
 

EMAIL_PREV Primary and Unique Keys 
Key Name  Key Type  Keys 
PK_EMAIL_PREV  PrimaryKey  TEMPLATE_ID, SEQ_ID 

EMAIL_PREV Foreign Keys 
Parent Relationships: 
Table Name  Type  Cardinality  Constraint Name  VerbPhrase  InversePhrase  Foreign Keys  Is Supertype  Deferrable  Initially Deferred 
PROPOSAL  Non-Identifying  Zero or One to Zero or More  fk_email_prev_to_prpsl      PRPSL_ID  NO  NO  NO 
EMAIL_TEMPLATE  Identifying  One To Zero or More  fk_email_template_to_email_prev      TEMPLATE_ID  NO  NO  NO 
Child Relationships: 
Table Name  Type  Cardinality  Constraint Name  VerbPhrase  InversePhrase  Foreign Keys  Is Subtype  Deferrable  Initially Deferred 

EMAIL_PREV Check Constraints 
Check Constraint Name  CheckConstraint 

EMAIL_PREV Storage 
STORAGE OPTION  STORAGE VALUE 
TABLESPACE   
PctFree   
PCTUSED    
MinExtents   
MaxExtents   
Initial   
Next   
PctIncrease   
InitTrans   
MaxTrans   
Organization  Heap 
Cache  NO 
Logging   
Parallel  NO 
Parallel Degrees   
Parallel Instances   
FREELISTS   
FREELIST GROUPS   
Buffer Pool   
Table Compression  NO 
Compress Expression   
Row Movement  Disabled 

EMAIL_PREV Partitions 
PARTITION PROPERTY  PARTITION PROPERTY VALUE 

EMAIL_PREV Growth Metrics 
TABLE METRIC  TABLE METRIC VALUE 
Current Row Count 
Growth  Static 
Growth Type  N/A 
Growth Period  N/A 
Maximum Rows 
Average Row Size 

EMAIL_PREV Object Permissions 

User/Role Name  Grantee Type  Permission Type  Action Type  Is Action Extended  Is System 
EMAIL_PREV Security Types 
Name  Current Value 

EMAIL_PREV Bound Attachments 
Name  Current Value 

EMAIL_PREV Where Used - Model Usage 
Mapped Object  Is User Defined?  Denormalization Mappings  Description  Bound Attachments 
Logical
CNMS_PRPSL.Email Preview 
NO       
Logical
XF_ADMIN.Email Preview 
NO       
ALARM_MYSQL (MySQL)
Does Not Exist 
NO       
ALARM_ORACLE (Oracle)
Does Not Exist 
NO       
BICS (Oracle)
Does Not Exist 
NO       
BLM (Oracle)
Does Not Exist 
NO       
BYPASS_REQ (Oracle)
Does Not Exist 
NO       
CHAN_ARCH (Oracle)
Does Not Exist 
NO       
CNMS_PRPSL (Oracle)
CNMS_PRPSL.EMAIL_PREV 
NO       
DIAG (Oracle)
Does Not Exist 
NO       
DIAG_MPS (Oracle)
Does Not Exist 
NO       
ENGA (Oracle)
Does Not Exist 
NO       
EPICS (Oracle)
Does Not Exist 
NO       
EQUIP (Oracle)
Does Not Exist 
NO       
EXPRESS (Oracle)
Does Not Exist 
NO       
ICS_SFTW_APPL (Oracle)
Does Not Exist 
NO       
INSTR (Oracle)
Does Not Exist 
NO       
Instrument Logbook (Oracle)
Does Not Exist 
NO       
INVT (Oracle)
Does Not Exist 
NO       
IONSRC (Oracle)
Does Not Exist 
NO       
IONSRC1 (Oracle)
Does Not Exist 
NO       
IPTSv5 (Oracle)
Does Not Exist 
NO       
IRMISBase (Oracle)
Does Not Exist 
NO       
Logbook (Oracle)
Does Not Exist 
NO       
Magnet (Oracle)
Does Not Exist 
NO       
MPS (Oracle)
Does Not Exist 
NO       
NS_OPER (Oracle)
Does Not Exist 
NO       
OPER (Oracle)
Does Not Exist 
NO       
PART (Oracle)
Does Not Exist 
NO       
PRINT (Oracle)
Does Not Exist 
NO       
PROC (Oracle)
Does Not Exist 
NO       
PRPSL (Oracle)
Does Not Exist 
NO       
PUBL (Oracle)
Does Not Exist 
NO       
PUBL_V1 (Oracle)
Does Not Exist 
NO       
PV_LOGGER (Oracle)
Does Not Exist 
NO       
SCORE (Oracle)
Does Not Exist 
NO       
SICAT (Oracle)
Does Not Exist 
NO       
SMPL (Oracle)
Does Not Exist 
NO       
SMPLACT (Oracle)
Does Not Exist 
NO       
SURVEY (Oracle)
Does Not Exist 
NO       
Watchman (Oracle)
Does Not Exist 
NO       
XAL_OPTICS (Oracle)
Does Not Exist 
NO       
XF_ADMIN (Oracle)
XF_ADMIN.EMAIL_PREV 
NO       

EMAIL_PREV Where Used - Submodel Usage 
Model  Submodel Usage 
Logical  Main Model 
Logical  CNMS Proposal 
Logical  Experimental Facilities Administration 
CNMS_PRPSL (Oracle)  Main Model 
XF_ADMIN (Oracle)  Main Model 

EMAIL_PREV Data Movement Rules 
Name  Type  Rule Text/Value