Skip to content

grade (Schulstufe)

Diese Tabelle enthält die Schulstufen.

Das Attribut payroll_type_id verweist auf eine Anstellungsart, welche Auskunft über die Anstellungsbedingungen (z.B. Wochenlektionen für ein volles Pensum) gibt.

Das Attribut class_lesson_payroll_type_id verweist auf eine Anstellungsart, welche Auskunft über die Anstellungsbedingungen für Klassenlehrkräfte gibt.

Attribute

Die Attribute haben folgende Bedeutung:

AttributTypBeschreibung
archivedbooleanIst das Objekt archiviert?
codetextKürzel
descriptiontextBezeichnung
idintegerID des Objekts
payroll_type_idintegerFremdschlüssel auf payroll_type
class_lesson_payroll_type_idintegerFremdschlüssel auf payroll_type

Erzeugung

Die Tabelle wird mit folgendem SQL-Skript erstellt:

sql
create sequence pensen.grade_id;
grant usage on sequence pensen.grade_id to "pensenmanager";

create table pensen.grade (
  id integer not null primary key,
  code text not null unique,
  description text not null,
  payroll_type_id integer not null,
  archived boolean not null default false,
  class_lesson_payroll_type_id integer not null,
  foreign key (payroll_type_id) references pensen.payroll_type (id),
  foreign key (class_lesson_payroll_type_id) references pensen.payroll_type (id)
);
grant delete, insert, select, update on table pensen.grade to "pensenmanager";