Community 学习——数据库结构1

1 数据库结构

1 .1 命名规则

凡是 Community_Sample+Name 的表是示例数据

1 .1.1 数据库详细结构

示例数据表未列出

(1) 数据库摘要

** 目标 DBMS: ** ?? Microsoft SQL Server

** 表数 : ** ??????? 41

视图数 :???? 0

** 列数 : ** ??????? 302

索引数 :???? 8s

外键数 :???? 36

(2) Community_ActivityLog

列数 :???????? 7

索引数 :???? 0

外键数 :???? 1

主键 :???????? activity_ID

代码 :???????? 0

|

数据类型

|

允许 NULL

|

值 / 范围

---|---|---|---

activity_ID

|

int identity

|

不允许

| ?

activity_communityID

|

int

|

不允许

| ?

activity_sectionID

|

int

|

不允许

| ?

activity_url

|

nvarchar(250)

|

不允许

| ?

activity_briefEntry

|

nvarchar(250)

|

不允许

| ?

activity_fullEntry

|

ntext

|

允许

| ?

activity_dateCreated

|

datetime

|

不允许

| ?

外键详细信息(子)

FK_Community_Errors_Community_Communities

定义 :???????? 子 activity_communityID

????????? ???????? 父 Community_Communities.community_id

允许 NULL:????? 不允许

更新时的参照完整性 :?????? 无动作

删除时的参照完整性 :?????? 层叠

(3) Community_Articles

列数 :???????? 2

索引数 :???? 0

外键数 :???? 1

主键 :???????? Article_ContentPageID

代码 :???????? 0

|

数据类型

|

允许 NULL

|

值 / 范围

---|---|---|---

Article_ContentPageID

|

int

|

不允许

| ?

Article_Article

|

ntext

|

不允许

| ?

外键详细信息(子)

FK_Community_Articles_Community_ContentPages

定义 :???????? 子 ??????????????????????? ???????? 父
Article_ContentPageID???? Community_ContentPages.contentPage_id

允许 NULL:????? 不允许

更新时的参照完整性 :?????? 无动作

删除时的参照完整性 :?????? 层叠

(4) Community_Books

列数 :???????? 9

索引数 :???? 0

外键数 :???? 1

主键 :???????? Book_ContentPageID

代码 :???????? 0

|

数据类型

|

允许 NULL

|

值 / 范围

---|---|---|---

Book_ContentPageID

|

int

|

不允许

| ?

Book_ISBN

|

nvarchar(50)

|

允许

| ?

Book_Author

|

nvarchar(100)

|

允许

| ?

Book_Price

|

money

|

允许

| ?

Book_FullDescription

|

ntext

|

允许

| ?

Book_PurchaseLink

|

nvarchar(250)

|

不允许

| ?

Book_Publisher

|

nvarchar(100)

|

允许

| ?

Book_PublisherLink

|

nvarchar(250)

|

允许

| ?

Book_PublicationDate

|

datetime

|

不允许

| ?

外键详细信息(子)

FK_Community_Books_Community_ContentPages

定义 :???????? 子 ??????????????????????? ???????? 父
Book_ContentPageID??????? Community_ContentPages.contentPage_id

允许 NULL:????? 不允许

更新时的参照完整性 :?????? 无动作

删除时的参照完整性 :?????? 层叠

(5) Community_Comments

列数 :???????? 2

索引数 :???? 0

外键数 :???? 1

主键 :???????? Comment_ContentPageID

代码 :???????? 0

|

数据类型

|

允许 NULL

|

值 / 范围

---|---|---|---

Comment_ContentPageID

|

int

|

不允许

| ?

Comment_Text

|

ntext

|

不允许

| ?

外键详细信息(子)

FK_Community_Comments_Community_ContentPages

定义 :???????? 子 ????????????????????????????????????????? ???????? 父
Comment_ContentPageID Community_ContentPages.contentPage_id

允许 NULL:????? 不允许

更新时的参照完整性 :?????? 无动作

删除时的参照完整性 :?????? 层叠

Published At
Categories with Web编程
Tagged with
comments powered by Disqus