Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| MessageID | int identity | 4 | √ | null |
|
|
Message primary key - Unique identifier for each message |
||||
| Recipient | int | 4 | √ | null |
|
|
Recipient user - UserID of the message recipient |
||||
| Reciever | int | 4 | √ | null |
|
|
Receiver user - Alternative receiver field (legacy spelling) |
||||
| Subject | varchar | 100 | √ | null |
|
|
Message subject - Subject line or title of the message |
||||
| DateSent | datetime | 16,3 | √ | (getdate()) |
|
|
Send date - Date and time when the message was sent |
||||
| Status | char | 10 | √ | null |
|
|
Message status - Delivery and read status of the message |
||||
| Priority | char | 10 | √ | null |
|
|
Message priority - Priority level (High, Normal, Low) for message handling |
||||
| Body | text | 2147483647 | √ | null |
|
|
Message content - Full text content of the message |
||||
| ReplyTo | int | 4 | √ | null |
|
|
Reply reference - Links to original message if this is a reply |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| PK_Message | Primary key | Asc | MessageID |
