Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments |
|---|---|---|---|---|---|---|---|---|
| name | sysname | 256 | null |
|
|
Diagram name - Name of the database diagram for identification (required field) |
||
| principal_id | int | 4 | null |
|
|
Principal ID - Database principal (user/role) who owns this diagram (required field) |
||
| diagram_id | int identity | 4 | √ | null |
|
|
Diagram identifier - Unique identifier for each diagram, auto-incrementing integer (required field) |
|
| version | int | 4 | √ | null |
|
|
Diagram version - Version number of the diagram for change tracking |
|
| definition | varbinary | 2147483647 | √ | null |
|
|
Diagram definition - Binary data containing the diagram layout and visual definition |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| PK__sysdiagr__C2B05B615EBF139D | Primary key | Asc | diagram_id |
| UK_principal_name | Must be unique | Asc/Asc | principal_id + name |