Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| sphp_id | int8 | 19 | null |
|
|
||||||
| skph_id | int8 | 19 | √ | null |
|
|
|||||
| startdato | timestamp | 22 | √ | null |
|
|
|||||
| slutdato | timestamp | 22 | √ | null |
|
|
|||||
| varighed_dage | numeric | 4,1 | √ | null |
|
|
|||||
| opdmod | varchar | 4 | √ | null |
|
|
|||||
| opdinit | varchar | 30 | √ | null |
|
|
|||||
| opdtid | timestamp | 22 | √ | null |
|
|
|||||
| lok_id | int8 | 19 | √ | null |
|
|
|||||
| tmk_id | int8 | 19 | √ | null |
|
|
|||||
| antal_timer | numeric | 6,2 | √ | null |
|
|
|||||
| lererlektioner | numeric | 5,1 | √ | null |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| sphp_pk | Primary key | Asc | sphp_id |
| sphp_lok_fk_i | Performance | Asc | lok_id |
| sphp_skph_fk_i | Performance | Asc | skph_id |
| sphp_sphp_uk | Must be unique | Asc/Asc | skph_id + startdato |
| sphp_tmk_fk_i | Performance | Asc | tmk_id |
Check Constraints
| Constraint Name | Constraint |
|---|---|
| skolefag_pa_hold_perioder_check6 | (('STARTDATO' IS NOT NULL)) |
| skolefag_pa_hold_perioder_check4 | (('SLUTDATO' IS NOT NULL)) |
| skolefag_pa_hold_perioder_check1 | (('OPDMOD' IS NOT NULL)) |
| skolefag_pa_hold_perioder_check7 | (('VARIGHED_DAGE' IS NOT NULL)) |
| skolefag_pa_hold_perioder_check | (('OPDINIT' IS NOT NULL)) |
| skolefag_pa_hold_perioder_check5 | (('SPHP_ID' IS NOT NULL)) |
| skolefag_pa_hold_perioder_check2 | (('OPDTID' IS NOT NULL)) |
| skolefag_pa_hold_perioder_check3 | (('SKPH_ID' IS NOT NULL)) |