SFPL_PLAN_REV 
Logical Entity Name  SFPL_PLAN_REV 
Default Table Name  SFPL_PLAN_REV 
Physical Only  NO 
Do Not Generate  False 
Owner  SFMFG 
Definition 
 
Note 
 
PreSQL   
DDL Code  CREATE TABLE SFMFG.SFPL_PLAN_REV(
     PLAN_ID              varchar(40)      COLLATE SQL_Latin1_General_CP1_CS_AS NOT NULL,
     PLAN_VERSION         int              CONSTRAINT [DF__SFPL_PLAN__PLAN___2D7FEB20] DEFAULT ((1)) NOT NULL,
     PLAN_REVISION        int              CONSTRAINT [DF__SFPL_PLAN__PLAN___2E740F59] DEFAULT ((1)) NOT NULL,
     PLAN_ALTERATIONS     int              CONSTRAINT [DF__SFPL_PLAN__PLAN___2F683392] DEFAULT ((0)) NOT NULL,
     UPDT_USERID          varchar(30)      COLLATE SQL_Latin1_General_CP1_CS_AS CONSTRAINT [DF__SFPL_PLAN__UPDT___305C57CB] DEFAULT (user_name()) NOT NULL,
     TIME_STAMP           datetime         CONSTRAINT [DF__SFPL_PLAN__TIME___31507C04] DEFAULT (getdate()) NOT NULL,
     LAST_ACTION          varchar(20)      COLLATE SQL_Latin1_General_CP1_CS_AS CONSTRAINT [DF__SFPL_PLAN__LAST___3244A03D] DEFAULT ('INSERTED') NULL,
     PLAN_UPDT_NO         int              NULL,
     REV_STATE            varchar(20)      COLLATE SQL_Latin1_General_CP1_CS_AS NULL,
     REV_LOCKED_BY        varchar(30)      COLLATE SQL_Latin1_General_CP1_CS_AS NULL,
     REV_LOCK_STATE       varchar(20)      COLLATE SQL_Latin1_General_CP1_CS_AS NULL,
     REV_STATUS           varchar(20)      COLLATE SQL_Latin1_General_CP1_CS_AS NULL,
     EXTERNAL_PLM_NO      varchar(100)     COLLATE SQL_Latin1_General_CP1_CS_AS NULL,
     EXTERNAL_ERP_NO      varchar(100)     COLLATE SQL_Latin1_General_CP1_CS_AS NULL,
     CONSTRAINT SFPL_PLANREV_PLANDESC_FK FOREIGN KEY (PLAN_ID, PLAN_UPDT_NO)
     REFERENCES SFMFG.SFPL_PLAN_DESC(PLAN_ID, PLAN_UPDT_NO)
)ON SFPL_DATA
go



ALTER TABLE SFMFG.SFPL_PLAN_REV ADD
     CONSTRAINT SFPL_PLAN_REV_PK PRIMARY KEY CLUSTERED (PLAN_ID, PLAN_VERSION, PLAN_REVISION, PLAN_ALTERATIONS)
     ON SFPL_DATA
go
 
PostSQL   

SFPL_PLAN_REV Columns 
ColumnName  Domain  Datatype  NULL  Definition 
PLAN_ID(PK)(FK)    varchar(40)  NO 
 
PLAN_VERSION(PK)    int  NO 
 
PLAN_REVISION(PK)    int  NO 
 
PLAN_ALTERATIONS(PK)    int  NO 
 
UPDT_USERID    varchar(30)  NO 
 
TIME_STAMP    datetime  NO 
 
LAST_ACTION    varchar(20)  YES 
 
PLAN_UPDT_NO(FK)    int  YES 
 
REV_STATE    varchar(20)  YES 
 
REV_LOCKED_BY    varchar(30)  YES 
 
REV_LOCK_STATE    varchar(20)  YES 
 
REV_STATUS    varchar(20)  YES 
 
EXTERNAL_PLM_NO    varchar(100)  YES 
 
EXTERNAL_ERP_NO    varchar(100)  YES 
 

SFPL_PLAN_REV Primary and Unique Keys 
Key Name  Key Type  Keys 
SFPL_PLAN_REV_PK  PrimaryKey  PLAN_ID, PLAN_VERSION, PLAN_REVISION, PLAN_ALTERATIONS 

SFPL_PLAN_REV Foreign Keys 
Parent Relationships: 
Table Name  Type  Cardinality  Constraint Name  VerbPhrase  InversePhrase  Foreign Keys  Is Supertype  Not For Replication 
SFPL_PLAN_DESC  Non-Identifying  Zero or One to Zero or More  SFPL_PLANREV_PLANDESC_FK      PLAN_ID, PLAN_UPDT_NO  NO  NO 
Child Relationships: 
Table Name  Type  Cardinality  Constraint Name  VerbPhrase  InversePhrase  Foreign Keys  Is Subtype  Not For Replication 
SFFND_PLG_TASK  Non-Identifying  Zero or One to Zero or More  SFFND_PLG_TASK_PLNREV_FK        NO  NO 
SFPL_MBOM_NOTIFICATION  Identifying  One To Zero or More  SFPL_MBOM_NOTIFICATION_FK1        NO  NO 
SFPL_OPERATION_REV  Identifying  One To Zero or More  SFPL_OPERREV_PLANREV_FK        NO  NO 
SFPL_PLAN_EFF  Identifying  One To Zero or More  SFPL_PLAN_EFF_PLAN_REV_FK        NO  NO 
SFPL_PLAN_NOTIFICATION  Non-Identifying  One To Zero or More  SFPL_PLAN_NOTIF_PLAN_FK        NO  NO 
SFPL_PLAN_PWP_XREF  Identifying  One To Zero or More  SFPL_PLAN_PWP_XREF_FK2        NO  NO 
SFPL_PLAN_VALIDATION_KEYS  Identifying  One To Zero or More  SFPL_PLAN_VLDTN_KEY_FK        NO  NO 
SFPL_PLAN_IMAGE  Identifying  One To Zero or More  SFPL_PLANIMG_PLANREV_FK        NO  NO 
SFWID_ORDER_DESC  Non-Identifying  One To Zero or More  SFWID_ORDDESC_PPLANREV_FK        NO  NO 

SFPL_PLAN_REV Check Constraints 
Check Constraint Name  CheckConstraint 

SFPL_PLAN_REV Storage 
STORAGE OPTION  STORAGE VALUE 
Filegroup  SFPL_DATA 
Text Image File Group   

SFPL_PLAN_REV Growth Metrics 
TABLE METRIC  TABLE METRIC VALUE 
Current Row Count  0 
Growth  Static 
Growth Type  N/A 
Growth Period  N/A 
Maximum Rows  0 

SFPL_PLAN_REV Object Permissions 

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

SFPL_PLAN_REV Bound Attachments 
Name  Current Value 

SFPL_PLAN_REV Where Used - Model Usage 
Model  Logical Entity Name  Denormalization Mappings  Definition 
Logical  SFPL_PLAN_REV   
Work Plan Revision -- A particular numbered version.revision of a given Work Plan. Different versions and revisions are used to track changes made to the plan. Versions and Revisions are created during the plan authoring process.
 
PhysicalOracle (Oracle)  SFPL_PLAN_REV   
Work Plan Revision -- A particular numbered version.revision of a given Work Plan. Different versions and revisions are used to track changes made to the plan. Versions and Revisions are created during the plan authoring process.
 
PhysicalSS (Microsoft SQL Server)  SFMFG.SFPL_PLAN_REV   
 

SFPL_PLAN_REV Where Used - Submodel Usage 
Model  Submodel Usage 
Logical  Main Model 
Logical  SFFND 
Logical  SFPL 
Logical  SFWID 
PhysicalOracle (Oracle)  Main Model 
PhysicalOracle (Oracle)  SFFND 
PhysicalOracle (Oracle)  SFPL 
PhysicalOracle (Oracle)  SFWID 
PhysicalSS (Microsoft SQL Server)  Main Model 
PhysicalSS (Microsoft SQL Server)  SFFND 
PhysicalSS (Microsoft SQL Server)  SFPL 
PhysicalSS (Microsoft SQL Server)  SFWID 

SFPL_PLAN_REV User-Defined Mappings 
Model  Name  Description 

SFPL_PLAN_REV Data Movement Rules 
Name  Type  Rule Text/Value