dbo.show_doc

Description

Properties

Name Value
File Collation
File Group
Filestream File Group
Is Partitioned

False

Partitioned Column
Partition Scheme
File Groups
Filestream Partition Scheme
Filestream File Groups
Heap

True

Full Text Catalog
Full Text
Compression NONE
Row Count (~) 0
Created 3/6/2025 6:55:55 PM
Last Modified 3/6/2025 6:55:57 PM

Columns

7
Key Name Data Type Length Precision Scale Not Null Identity Rule Default Computed Persisted Description
doc_id int 4 10 0

True

False

False

website_id tinyint 1 3 0

True

False

False

doc_position_id varchar 50 0 0

True

False

False

show_from_date datetime 8 23 3

False

False

False

show_to_date datetime 8 23 3

False

False

False

doc_order smallint 2 5 0

False

False

False

template_id int 4 10 0

False

False

False

Indexes

1
Key Name Columns Unique Type Description
PK__show_doc__B6821AE7B6E9C62A doc_id, website_id, doc_position_id

True

Foreign Keys

2
Name Columns Description
FK__show_doc__doc_id__06ADD4BD doc_id
FK__show_doc__templa__07A1F8F6 template_id

SQL Script

Copy
CREATE TABLE dbo.show_doc (
  doc_id int NOT NULL,
  website_id tinyint NOT NULL,
  doc_position_id varchar(50) NOT NULL,
  show_from_date datetime NULL,
  show_to_date datetime NULL,
  doc_order smallint NULL,
  template_id int NULL,
  PRIMARY KEY NONCLUSTERED (doc_id, website_id, doc_position_id) WITH (FILLFACTOR = 90)
)
ON [PRIMARY]
GO

ALTER TABLE dbo.show_doc
  ADD FOREIGN KEY (doc_id) REFERENCES dbo.docs (doc_id)
GO

ALTER TABLE dbo.show_doc
  ADD FOREIGN KEY (template_id) REFERENCES dbo.templates (template_id)
GO

Depends On

3

Used By

No items found