CREATE TABLE tx_ifoberstufenplaner_domain_model_schule (

	uid int(11) NOT NULL auto_increment,
	pid int(11) DEFAULT '0' NOT NULL,

	name varchar(255) DEFAULT '' NOT NULL,
	name2 varchar(255) DEFAULT '' NOT NULL,
	refs int(11) unsigned DEFAULT '0' NOT NULL,

	tstamp int(11) unsigned DEFAULT '0' NOT NULL,
	crdate int(11) unsigned DEFAULT '0' NOT NULL,
	cruser_id int(11) unsigned DEFAULT '0' NOT NULL,
	deleted tinyint(4) unsigned DEFAULT '0' NOT NULL,
	hidden tinyint(4) unsigned DEFAULT '0' NOT NULL,
	starttime int(11) unsigned DEFAULT '0' NOT NULL,
	endtime int(11) unsigned DEFAULT '0' NOT NULL,

	t3ver_oid int(11) DEFAULT '0' NOT NULL,
	t3ver_id int(11) DEFAULT '0' NOT NULL,
	t3ver_wsid int(11) DEFAULT '0' NOT NULL,
	t3ver_label varchar(255) DEFAULT '' NOT NULL,
	t3ver_state tinyint(4) DEFAULT '0' NOT NULL,
	t3ver_stage int(11) DEFAULT '0' NOT NULL,
	t3ver_count int(11) DEFAULT '0' NOT NULL,
	t3ver_tstamp int(11) DEFAULT '0' NOT NULL,
	t3ver_move_id int(11) DEFAULT '0' NOT NULL,

	sys_language_uid int(11) DEFAULT '0' NOT NULL,
	l10n_parent int(11) DEFAULT '0' NOT NULL,
	l10n_diffsource mediumblob,

	PRIMARY KEY (uid),
	KEY parent (pid),
	KEY t3ver_oid (t3ver_oid,t3ver_wsid),
  KEY language (l10n_parent,sys_language_uid)

);

CREATE TABLE tx_ifoberstufenplaner_domain_model_schuleref (
  GLSchnr int(11) DEFAULT '0',
  GLIndex int(11) DEFAULT '0',
  SCHA12 int(11) DEFAULT '0',
  SCHA34 int(11) DEFAULT '0',
  SchulGl int(11) DEFAULT '0',
  VJG int(11) DEFAULT '0',
  BJG int(11) DEFAULT '0',
  Ausbau int(11) DEFAULT '0',
  BESKR int(11) DEFAULT '0'
);

CREATE TABLE tx_ifoberstufenplaner_domain_model_schuletyp (
  Schulgliederung int(11) DEFAULT '0',
  L varchar(255) DEFAULT '' NOT NULL,
  K varchar(255) DEFAULT '' NOT NULL,
  Sprache1 varchar(255) DEFAULT '' NOT NULL,
  Sprache2 varchar(255) DEFAULT '' NOT NULL,
  Sprache3 varchar(255) DEFAULT '' NOT NULL,
  Sprache4 varchar(255) DEFAULT '' NOT NULL
);

