1

add initial simplified schema + h2-console spring-security + h2 password

This commit is contained in:
Christoph
2020-03-05 13:24:58 +01:00
parent ca28f041f5
commit 2d729686bb
4 changed files with 38 additions and 8 deletions

View File

@ -0,0 +1,25 @@
-- noinspection SqlNoDataSourceInspectionForFile
DROP TABLE IF EXISTS teilnehmer;
CREATE TABLE teilnehmer (
teilnehmer_id INT PRIMARY KEY AUTO_INCREMENT,
vorname VARCHAR(50) NOT NULL,
nachname VARCHAR(50) NOT NULL ,
email VARCHAR(255) NOT NULL
);
DROP TABLE IF EXISTS gruppe;
CREATE TABLE gruppe
(
gruppe_id INTEGER PRIMARY KEY auto_increment,
titel TEXT NOT NULL,
beschreibung TEXT NOT NULL
);
DROP TABLE IF EXISTS teilnahme;
CREATE TABLE teilnahme
(
id INTEGER PRIMARY KEY auto_increment,
teilnehmer_dto INTEGER REFERENCES teilnehmer(teilnehmer_id),
gruppe_dto INTEGER REFERENCES gruppe(gruppe_id)
);