diff --git a/Cargo.lock b/Cargo.lock index c089e69..59c212a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -333,6 +333,16 @@ dependencies = [ "phf_codegen", ] +[[package]] +name = "chumsky" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8eebd66744a15ded14960ab4ccdbfb51ad3b81f51f3f04a80adac98c985396c9" +dependencies = [ + "hashbrown", + "stacker", +] + [[package]] name = "cipher" version = "0.4.4" @@ -366,6 +376,16 @@ dependencies = [ "version_check", ] +[[package]] +name = "core-foundation" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f" +dependencies = [ + "core-foundation-sys", + "libc", +] + [[package]] name = "core-foundation-sys" version = "0.8.6" @@ -554,6 +574,22 @@ dependencies = [ "serde", ] +[[package]] +name = "email-encoding" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dbfb21b9878cf7a348dcb8559109aabc0ec40d69924bd706fa5149846c4fef75" +dependencies = [ + "base64", + "memchr", +] + +[[package]] +name = "email_address" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e2153bd83ebc09db15bcbdc3e2194d901804952e3dc96967e1cd3b0c5c32d112" + [[package]] name = "encoding_rs" version = "0.8.33" @@ -664,6 +700,21 @@ version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" +[[package]] +name = "foreign-types" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" +dependencies = [ + "foreign-types-shared", +] + +[[package]] +name = "foreign-types-shared" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" + [[package]] name = "form_urlencoded" version = "1.2.1" @@ -948,6 +999,17 @@ dependencies = [ "windows-sys 0.52.0", ] +[[package]] +name = "hostname" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c731c3e10504cc8ed35cfe2f1db4c9274c3d35fa486e3b31df46f068ef3e867" +dependencies = [ + "libc", + "match_cfg", + "winapi", +] + [[package]] name = "http" version = "0.2.11" @@ -1186,6 +1248,31 @@ dependencies = [ "spin 0.5.2", ] +[[package]] +name = "lettre" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a48c2e9831b370bc2d7233c2620298c45f3a158ed6b4b8d7416b2ada5a268fd8" +dependencies = [ + "base64", + "chumsky", + "email-encoding", + "email_address", + "fastrand", + "futures-util", + "hostname", + "httpdate", + "idna", + "mime", + "native-tls", + "nom", + "once_cell", + "quoted_printable", + "socket2", + "tokio", + "url", +] + [[package]] name = "libc" version = "0.2.151" @@ -1246,6 +1333,12 @@ dependencies = [ "tracing-subscriber", ] +[[package]] +name = "match_cfg" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ffbee8634e0d45d258acb448e7eaab3fce7a0a467395d4d9f228e3c1f01fb2e4" + [[package]] name = "matchers" version = "0.1.0" @@ -1333,6 +1426,24 @@ dependencies = [ "version_check", ] +[[package]] +name = "native-tls" +version = "0.2.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07226173c32f2926027b63cce4bcd8076c3552846cbe7925f3aaffeac0a3b92e" +dependencies = [ + "lazy_static", + "libc", + "log", + "openssl", + "openssl-probe", + "openssl-sys", + "schannel", + "security-framework", + "security-framework-sys", + "tempfile", +] + [[package]] name = "nix" version = "0.27.1" @@ -1471,6 +1582,50 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5" +[[package]] +name = "openssl" +version = "0.10.62" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8cde4d2d9200ad5909f8dac647e29482e07c3a35de8a13fce7c9c7747ad9f671" +dependencies = [ + "bitflags 2.4.1", + "cfg-if", + "foreign-types", + "libc", + "once_cell", + "openssl-macros", + "openssl-sys", +] + +[[package]] +name = "openssl-macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.42", +] + +[[package]] +name = "openssl-probe" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" + +[[package]] +name = "openssl-sys" +version = "0.9.98" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c1665caf8ab2dc9aef43d1c0023bd904633a6a05cb30b0ad59bec2ae986e57a7" +dependencies = [ + "cc", + "libc", + "pkg-config", + "vcpkg", +] + [[package]] name = "overload" version = "0.1.1" @@ -1732,6 +1887,15 @@ dependencies = [ "yansi", ] +[[package]] +name = "psm" +version = "0.1.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5787f7cda34e3033a72192c018bc5883100330f362ef279a8cbccfce8bb4e874" +dependencies = [ + "cc", +] + [[package]] name = "pure-rust-locales" version = "0.7.0" @@ -1747,6 +1911,12 @@ dependencies = [ "proc-macro2", ] +[[package]] +name = "quoted_printable" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "79ec282e887b434b68c18fe5c121d38e72a5cf35119b59e54ec5b992ea9c8eb0" + [[package]] name = "rand" version = "0.8.5" @@ -1968,6 +2138,7 @@ dependencies = [ "env_logger", "futures", "ics", + "lettre", "log", "rocket", "rocket_dyn_templates", @@ -2067,6 +2238,15 @@ dependencies = [ "winapi-util", ] +[[package]] +name = "schannel" +version = "0.1.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fbc91545643bcf3a0bbb6569265615222618bdf33ce4ffbbd13c4bbd4c093534" +dependencies = [ + "windows-sys 0.52.0", +] + [[package]] name = "scoped-tls" version = "1.0.1" @@ -2089,6 +2269,29 @@ dependencies = [ "untrusted", ] +[[package]] +name = "security-framework" +version = "2.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05b64fb303737d99b81884b2c63433e9ae28abebe5eb5045dcdd175dc2ecf4de" +dependencies = [ + "bitflags 1.3.2", + "core-foundation", + "core-foundation-sys", + "libc", + "security-framework-sys", +] + +[[package]] +name = "security-framework-sys" +version = "2.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e932934257d3b408ed8f30db49d85ea163bfe74961f017f405b025af298f0c7a" +dependencies = [ + "core-foundation-sys", + "libc", +] + [[package]] name = "serde" version = "1.0.193" @@ -2473,6 +2676,19 @@ dependencies = [ "memchr", ] +[[package]] +name = "stacker" +version = "0.1.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c886bd4480155fd3ef527d45e9ac8dd7118a898a46530b7b94c3e21866259fce" +dependencies = [ + "cc", + "cfg-if", + "libc", + "psm", + "winapi", +] + [[package]] name = "state" version = "0.6.0" diff --git a/Cargo.toml b/Cargo.toml index e22d584..c911cf6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,3 +22,5 @@ chrono-tz = "0.8" tera = { version = "1.18", features = ["date-locale"], optional = true} ics = "0.5" futures = "0.3" +lettre = "0.11" + diff --git a/Rocket.toml b/Rocket.toml index e572218..6f5e652 100644 --- a/Rocket.toml +++ b/Rocket.toml @@ -2,3 +2,4 @@ secret_key = "/NtVGizglEoyoxBLzsRDWTy4oAG1qDw4J4O+CWJSv+fypD7W9sam8hUY4j90EZsbZk8wEradS5zBoWtWKi3k8w==" rss_key = "rss-key-for-ci" limits = { file = "10 MiB", data-form = "10 MiB"} +smtp_pw = "8kIjlLH79Ky6D3jQ" diff --git a/src/model/mail.rs b/src/model/mail.rs new file mode 100644 index 0000000..ef24f05 --- /dev/null +++ b/src/model/mail.rs @@ -0,0 +1,65 @@ +use std::error::Error; + +use lettre::{ + message::{ + header::{self, ContentType}, + MultiPart, SinglePart, + }, + transport::smtp::authentication::Credentials, + Message, SmtpTransport, Transport, +}; +use sqlx::SqlitePool; + +use crate::tera::admin::mail::MailToSend; + +use super::role::Role; + +pub struct Mail {} + +impl Mail { + pub async fn send(db: &SqlitePool, data: MailToSend<'_>, smtp_pw: String) -> bool { + let mut email = Message::builder() + .from( + "ASKÖ Ruderverein Donau Linz " + .parse() + .unwrap(), + ) + .reply_to( + "ASKÖ Ruderverein Donau Linz " + .parse() + .unwrap(), + ) + .to("ASKÖ Ruderverein Donau Linz " + .parse() + .unwrap()); + let role = Role::find_by_id(db, data.role_id).await.unwrap(); + for rec in role.mails_from_role(db).await { + let splitted = rec.split(','); + for single_rec in splitted { + email = email.bcc(single_rec.parse().unwrap()); + } + } + + // TODO: handle attachments + + let email = email + .subject(data.subject) + .header(ContentType::TEXT_PLAIN) + .body(String::from(data.body)) + .unwrap(); + + let creds = Credentials::new("no-reply@rudernlinz.at".to_owned(), smtp_pw); + + let mailer = SmtpTransport::relay("mail.your-server.de") + .unwrap() + .credentials(creds) + .build(); + + // Send the email + match mailer.send(&email) { + Ok(_) => return true, + Err(e) => println!("{:?}", e.source()), + }; + false + } +} diff --git a/src/model/mod.rs b/src/model/mod.rs index 8062225..ed5ddbf 100644 --- a/src/model/mod.rs +++ b/src/model/mod.rs @@ -13,6 +13,7 @@ pub mod location; pub mod log; pub mod logbook; pub mod logtype; +pub mod mail; pub mod planned_event; pub mod role; pub mod rower; diff --git a/src/model/role.rs b/src/model/role.rs index 8ad982f..d37ca49 100644 --- a/src/model/role.rs +++ b/src/model/role.rs @@ -14,4 +14,32 @@ impl Role { .await .unwrap() } + + pub async fn find_by_id(db: &SqlitePool, name: i32) -> Option { + sqlx::query_as!( + Self, + " +SELECT id, name +FROM role +WHERE id like ? + ", + name + ) + .fetch_one(db) + .await + .ok() + } + + pub async fn mails_from_role(&self, db: &SqlitePool) -> Vec { + let query = format!( + "SELECT u.mail + FROM user u + JOIN user_role ur ON u.id = ur.user_id + JOIN role r ON ur.role_id = r.id + WHERE r.id = {}", + self.id + ); + + sqlx::query_scalar(&query).fetch_all(db).await.unwrap() + } } diff --git a/src/tera/admin/mail.rs b/src/tera/admin/mail.rs new file mode 100644 index 0000000..e45c260 --- /dev/null +++ b/src/tera/admin/mail.rs @@ -0,0 +1,64 @@ +use rocket::form::Form; +use rocket::fs::TempFile; +use rocket::response::{Flash, Redirect}; +use rocket::{get, request::FlashMessage, routes, Route, State}; +use rocket::{post, FromForm}; +use rocket_dyn_templates::{tera::Context, Template}; +use sqlx::SqlitePool; + +use crate::model::mail::Mail; +use crate::model::role::Role; +use crate::model::user::AdminUser; +use crate::model::user::UserWithRoles; +use crate::tera::Config; + +#[get("/mail")] +async fn index( + db: &State, + admin: AdminUser, + flash: Option>, +) -> Template { + let mut context = Context::new(); + if let Some(msg) = flash { + context.insert("flash", &msg.into_inner()); + } + let roles = Role::all(db).await; + + context.insert( + "loggedin_user", + &UserWithRoles::from_user(admin.user, db).await, + ); + context.insert("roles", &roles); + + Template::render("admin/mail", context.into_json()) +} + +#[derive(FromForm, Debug)] +pub struct MailToSend<'a> { + pub(crate) role_id: i32, + pub(crate) subject: String, + pub(crate) body: String, + pub(crate) files: Vec>, +} + +#[post("/mail", data = "")] +async fn update( + db: &State, + data: Form>, + config: &State, + _admin: AdminUser, +) -> Flash { + let d = data.into_inner(); + if Mail::send(db, d, config.smtp_pw.clone()).await { + return Flash::success(Redirect::to("/admin/mail"), "Mail versendet"); + } else { + return Flash::error(Redirect::to("/admin/mail"), "Fehler"); + } +} + +pub fn routes() -> Vec { + routes![index, update] +} + +#[cfg(test)] +mod test {} diff --git a/src/tera/admin/mod.rs b/src/tera/admin/mod.rs index 0bf05e7..cb4e24d 100644 --- a/src/tera/admin/mod.rs +++ b/src/tera/admin/mod.rs @@ -7,6 +7,7 @@ use crate::{ }; pub mod boat; +pub mod mail; pub mod planned_event; pub mod user; @@ -28,6 +29,7 @@ pub fn routes() -> Vec { let mut ret = Vec::new(); ret.append(&mut user::routes()); ret.append(&mut boat::routes()); + ret.append(&mut mail::routes()); ret.append(&mut planned_event::routes()); ret.append(&mut routes![rss, show_rss]); ret diff --git a/src/tera/mod.rs b/src/tera/mod.rs index 7fa08bf..e9d510c 100644 --- a/src/tera/mod.rs +++ b/src/tera/mod.rs @@ -206,6 +206,7 @@ fn unauthorized_error() -> Redirect { #[serde(crate = "rocket::serde")] pub struct Config { rss_key: String, + smtp_pw: String, } pub fn config(rocket: Rocket) -> Rocket { diff --git a/staging-diff.sql b/staging-diff.sql index ef0b60b..e69de29 100644 --- a/staging-diff.sql +++ b/staging-diff.sql @@ -1,318 +0,0 @@ -INSERT INTO role(name) VALUES ('Anwärter'); -INSERT INTO role(name) VALUES ('Bootsführer'); -INSERT INTO role(name) VALUES ('Donau Linz'); -INSERT INTO role(name) VALUES ('Ehrenmitglied'); -INSERT INTO role(name) VALUES ('Förderndes Mitglied'); -INSERT INTO role(name) VALUES ('Junioren'); -INSERT INTO role(name) VALUES ('Rechnungsprüfer'); -INSERT INTO role(name) VALUES ('Rennrudern'); -INSERT INTO role(name) VALUES ('Steuerleute'); -INSERT INTO role(name) VALUES ('Unterstützend'); -INSERT INTO role(name) VALUES ('Vorstand'); - - -ALTER TABLE user ADD COLUMN "member_since_date" text; -ALTER TABLE user ADD COLUMN "birthdate" text; -ALTER TABLE user ADD COLUMN "mail" text; -ALTER TABLE user ADD COLUMN "nickname" text; -ALTER TABLE user ADD COLUMN "notes" text; -ALTER TABLE user ADD COLUMN "phone" text; -ALTER TABLE user ADD COLUMN "address" text; - - -UPDATE user SET member_since_date='1992-07-01', birthdate='1978-11-07', mail='allmeier.d@gmx.net, allmeier.d@gmail.com', nickname='', notes='', phone='+43 664 75040330', address='Gaumbergstr. 97, 4060 Leonding' WHERE name = 'Daniela Allmeier'; -UPDATE user SET member_since_date='2014-03-14', birthdate='1953-10-16', mail='alldo@gmx.at', nickname='', notes='', phone='', address='Prechtlerstr. 80, 4030 Linz' WHERE name = 'Doris Allmeier'; -UPDATE user SET member_since_date='1969-06-01', birthdate='1953-10-31', mail='allmeierkarl@gmail.com', nickname='', notes='Telefonnummer fehlt', phone='', address='Prechtlerstr. 80, 4020 Linz' WHERE name = 'Karl Allmeier'; -UPDATE user SET member_since_date='2018-02-01', birthdate='2001-06-13', mail='alaa2@gmx.at', nickname='', notes='', phone='+43 664 3204217', address='Freistädterstraße 252, 4040 Linz' WHERE name = 'Alaa Almousa'; -UPDATE user SET member_since_date='1991-10-01', birthdate='1964-11-17', mail='', nickname='', notes='', phone='', address='Kampmüllerweg 19, 4040 Linz' WHERE name = 'Elke Atzgerstorfer'; -UPDATE user SET member_since_date='1954-05-01', birthdate='1935-11-04', mail='', nickname='', notes='', phone='', address='Kampmüllerweg 19, 4040 Linz' WHERE name = 'Eva Atzgerstorfer'; -UPDATE user SET member_since_date='2021-07-08', birthdate='1994-03-07', mail='Phil.Baillon@gmx.at', nickname='', notes='', phone='+43 676 9404641', address='Lüfteneggerstr.12, 4020 Linz' WHERE name = 'Philip Baillon'; -UPDATE user SET member_since_date='2017-06-30', birthdate='1964-11-12', mail='e.schahpar@eduhi.at', nickname='', notes='', phone='+43 650 6059380', address='Fraunhoferweg 7, 4030 Linz' WHERE name = 'Elfriede Baminger'; -UPDATE user SET member_since_date='2023-11-10', birthdate='1995-10-20', mail='hanna.baeumer@gmx.de', nickname='', notes='', phone=', 0049 1724294053', address='Wurmstraße 8, 4020 Linz' WHERE name = 'Hanna Bäumer'; -UPDATE user SET member_since_date='2023-04-02', birthdate='1981-10-04', mail='juanitoster@gmail.com', nickname='', notes='', phone='4367761201878', address='Kapuzinerstraße 3b, Top 5, 4020 Linz' WHERE name = 'Juan Francisco Bautista Serrano'; -UPDATE user SET member_since_date='2022-04-11', birthdate='1971-08-16', mail='alexandra.binder71@gmail.com', nickname='', notes='', phone='+43 664 3861017', address='Reiserbauerberg 22, 4224 Wartberg ob der Aist' WHERE name = 'Alexandra Binder'; -UPDATE user SET member_since_date='1992-06-01', birthdate='1962-12-04', mail='gerald.binder@mag.linz.at', nickname='', notes='', phone='+43 664 8411501', address='Nattererstr. 13, 4623 Gunskirchen' WHERE name = 'Gerald Binder'; -UPDATE user SET member_since_date='2018-08-13', birthdate='1993-05-20', mail='marie.birner12@gmail.com', nickname='', notes='', phone='+43650 2607421', address='Tummelplatz 3, 4020 Linz' WHERE name = 'Marie Birner'; -UPDATE user SET member_since_date='2022-09-12', birthdate='2009-12-11', mail='bogdanrichard1211@gmail.com, sarkozi.csilla@gmail.com', nickname='', notes='Mutter: Csilla Sarközi', phone='+43 664 4014351, +43 670 7010879', address='Alleitenweg 30 1/3, 4030 Linz' WHERE name = 'Richard Bogdan'; -UPDATE user SET member_since_date='2022-07-21', birthdate='1969-08-31', mail='chris.commenda@gmx.net', nickname='', notes='', phone='0664 88323063', address='Figulystraße 6, 4020 Linz' WHERE name = 'Christian Commenda'; -UPDATE user SET member_since_date='2019-12-19', birthdate='2006-10-16', mail='dagostici@icloud.com', nickname='', notes='Tel/Mailadresse von Ana Dagosto (Mutter)', phone='0676 5002232', address='Rosenauerstr. 8, 4040 Linz' WHERE name = 'Goran DAgosto'; -UPDATE user SET member_since_date='2022-09-15', birthdate='2007-10-02', mail='daria.m.danner@gmail.com, herbert.st1@gmx.at', nickname='', notes='Herbert Stoiber (Vater)', phone='0680 2086940, 0681 10456507', address='Aubrunnerweg 19, 4040 Linz' WHERE name = 'Daria Danner'; -UPDATE user SET member_since_date='2022-06-07', birthdate='1966-10-27', mail='silvia.demmig@web.de', nickname='', notes='', phone='0049 15754199531, 0688 64273891', address='Jägerstr. 14, 4040 Linz' WHERE name = 'Silvia Demmig'; -UPDATE user SET member_since_date='1994-05-21', birthdate='1982-08-19', mail='dani_dieplinger@gmx.at', nickname='', notes='', phone='0664 6151462', address='Rudolfstraße 28, 4040 Linz' WHERE name = 'Daniela Dieplinger'; -UPDATE user SET member_since_date='1975-06-01', birthdate='1960-09-05', mail='herbert.dieplinger@gmx.at', nickname='', notes='Telefonnummer fehlt\nKümmert sich um Hänger', phone='436503947882', address='Plesching 72, 4040 Linz' WHERE name = 'Herbert Dieplinger'; -UPDATE user SET member_since_date='2021-07-27', birthdate='1980-11-18', mail='sylvi.ecker@gmail.com', nickname='', notes='', phone='+43 664 3963100', address='Reitgraben 3a, 4284 Tragwein' WHERE name = 'Sylvia Ecker'; -UPDATE user SET member_since_date='2021-06-07', birthdate='1999-01-07', mail='raphaeleichhorn99@gmail.com', nickname='Fuffi', notes='', phone='+43 677 62386479', address='Rottmayrstr. 28, 4060 Leonding' WHERE name = 'Raphael Eichhorn'; -UPDATE user SET member_since_date='1974-07-01', birthdate='1962-03-21', mail='', nickname='', notes='Person unbekannt, Mailadresse fehlt, Telefonnummer (https://losenstein.gem2go.page/Eisserer_Geza)', phone='+43 7255 22999', address='Hausleitenweg 5, 4522 Sierning' WHERE name = 'Geza Eisserer'; -UPDATE user SET member_since_date='1973-01-01', birthdate='1939-07-23', mail='', nickname='', notes='', phone='', address='Denkstr. 23, 4030 Linz' WHERE name = 'Helga Engelbrechtslehner'; -UPDATE user SET member_since_date='2011-05-25', birthdate='1964-11-22', mail='manuela.firmoetz@gmx.at', nickname='', notes='', phone='+43 650 6455117', address='Am Teich 8, 4040 Linz' WHERE name = 'Manuela Firmötz'; -UPDATE user SET member_since_date='2012-01-01', birthdate='1963-03-07', mail='', nickname='', notes='', phone='', address='Auweg 7, 4201 Gramastetten' WHERE name = 'Maj-Britt Fobian'; -UPDATE user SET member_since_date='2012-06-10', birthdate='1973-09-09', mail='e.foelser@gmx.at', nickname='', notes='Keine Mailbox am Handy; per Signal und SMS erreichbar\n\nNennt sich "Liesbeth"', phone='+43 650 9919739', address='Klosterstr. 6, 4020 Linz' WHERE name = 'Elisabeth Fölser'; -UPDATE user SET member_since_date='2019-12-19', birthdate='2005-10-11', mail='freimuthlarissa@gmail.com, sonja.freimuth@gmx.at', nickname='', notes='', phone='', address='Billingerstr. 9, 4040 Linz' WHERE name = 'Larissa Freimuth'; -UPDATE user SET member_since_date='2016-08-13', birthdate='1979-08-14', mail='ninafuereder@yahoo.de', nickname='', notes='Erneuter Eintritt 2023 - Pause für 2 Jahre (2022 & 2021)', phone='0699 17776766', address='Linke Brückenstraße 22, 4040 Linz' WHERE name = 'Nina Füreder'; -UPDATE user SET member_since_date='2018-10-01', birthdate='1982-12-23', mail='betti.fuerlinger@gmail.com', nickname='', notes='', phone='+43 664 5016493', address='Ferihumerstr. 50, 4040 Linz' WHERE name = 'Bettina Fürlinger'; -UPDATE user SET member_since_date='1604-01-01', birthdate='1926-10-12', mail='monika.gessl@a1.net', nickname='', notes='Telefonnummer von Christoph Gessl (Sohn)', phone='6643358066', address='Seehofstr. 12, 4863 Seewalchen am Attersee' WHERE name = 'Heinz Gessl'; -UPDATE user SET member_since_date='1981-09-01', birthdate='1951-09-20', mail='helmut.gidl@liwest.at', nickname='', notes='', phone='', address='Karl-Rennerstr. 37, 4040 Linz' WHERE name = 'Helmut Gidl'; -UPDATE user SET member_since_date='2023-10-23', birthdate='1992-02-10', mail='gnadlinger.tanja@gmail.com', nickname='', notes='', phone='0670 6029519', address='Albert-Schöpf-Straße 16, 4020 Linz' WHERE name = 'Tanja Gnadlinger'; -UPDATE user SET member_since_date='2022-04-21', birthdate='1978-03-13', mail='mag.dr.gruber@gmail.com', nickname='', notes='', phone='0664 4151245', address='Herzogstr. 29 A, 4060 Leonding' WHERE name = 'Eva-Maria Gruber'; -UPDATE user SET member_since_date='2023-10-30', birthdate='2011-05-04', mail='noah.gunesch4@gmail.com, steffi.thurnher@gmx.at', nickname='', notes='Mutter Stefanie Thurnher (Mail & Telefonnummer)\n\nPatchwork Familie: Martina Thurnher + Nadine Pesl', phone='0677 644 22433, 0650 9911993', address='Lindenweg 16/2, 4209 Engerwitzdorf' WHERE name = 'Noah Gunesch'; -UPDATE user SET member_since_date='2018-07-27', birthdate='1958-07-03', mail='c.gusenbauer@outlook.de', nickname='', notes='', phone='{ +43 664 3965150', address='Stitzmühlweg 1,4180 Zwettl/Rodl, ' WHERE name = 'Christian Gusenbauer'; -UPDATE user SET member_since_date='1957-07-01', birthdate='1938-03-12', mail='riad38@gmx.at', nickname='Adi', notes='', phone='', address='Ferihumerstr. 42, 4040 Linz' WHERE name = 'Adolf Hainschink'; -UPDATE user SET member_since_date='1993-01-01', birthdate='1942-08-08', mail='', nickname='Ria', notes='', phone='', address='Ferihumerstr. 42, 4040 Linz' WHERE name = 'Maria Hainschink'; -UPDATE user SET member_since_date='2012-08-01', birthdate='1957-03-06', mail='a.heinemann@aon.at', nickname='', notes='', phone='0699 10382751', address='Seilerstätte, 4221 Steyregg' WHERE name = 'Andrea Heinemann'; -UPDATE user SET member_since_date='2012-08-01', birthdate='1958-09-30', mail='bernhard.heinemann@mait.at', nickname='', notes='', phone='+43 664 8169763', address='Seilerstätte 1, 4221 Steyregg' WHERE name = 'Bernhard Heinemann'; -UPDATE user SET member_since_date='2011-02-01', birthdate='1982-12-02', mail='hoefer.moz@gmx.at', nickname='', notes='', phone='+43 650 8510909', address='Hammerweg 31/1, 4050 Traun' WHERE name = 'Matthias Höfer'; -UPDATE user SET member_since_date='2021-07-01', birthdate='1997-01-29', mail='philipp@hofer.link', nickname='', notes='', phone='+43650 2836046', address='Rubinweg 8, 4225 Luftenberg' WHERE name = 'Philipp Hofer'; -UPDATE user SET member_since_date='2021-07-01', birthdate='1984-01-15', mail='hoffelnert@gmx.at', nickname='', notes='', phone='+43 677 63178221', address='Reischekstr. 8a, 4240 Freistadt' WHERE name = 'Thomas Hoffelner'; -UPDATE user SET member_since_date='1987-07-01', birthdate='1946-09-13', mail='heinz.hoellersberger@gmail.com', nickname='', notes='', phone='0676 5000511', address='Hofbauerweg 40, 4040 Linz' WHERE name = 'Heinz Höllersberger'; -UPDATE user SET member_since_date='1980-08-01', birthdate='1946-03-21', mail='harald.iro@gmx.at', nickname='', notes='', phone='6508705823', address='Werndlstr. 58, 4020 Linz' WHERE name = 'Harald Iro'; -UPDATE user SET member_since_date='2014-07-12', birthdate='1969-03-11', mail='claudia.jagersberger@jku.at', nickname='', notes='', phone='+43 650 7595460', address='Ferihumerstr. 42, 4040 Linz' WHERE name = 'Claudia Jagersberger'; -UPDATE user SET member_since_date='2019-02-18', birthdate='1986-09-25', mail='melanie.keplinger@gmx.at', nickname='', notes='', phone='66060756', address='Mitterbergerweg 2a/B04, 4040 Linz' WHERE name = 'Melanie Keplinger'; -UPDATE user SET member_since_date='1954-05-01', birthdate='1939-03-05', mail='ernst.klima@liwest.at', nickname='', notes='', phone='+43 699 81952741', address='Schaunbergerstr. 66, 4020 Linz' WHERE name = 'Ernst Klima'; -UPDATE user SET member_since_date='1958-06-01', birthdate='1939-12-15', mail='', nickname='', notes='', phone='', address='Schaunbergerstr. 66, 4020 Linz' WHERE name = 'Herta Klima'; -UPDATE user SET member_since_date='', birthdate='1965-10-05', mail='jklima@hawle.at', nickname='Thomas', notes='Beitrittsdatum fehlt', phone='+43 664 60576327', address='Hofgasse 22/3, 4020 Linz' WHERE name = 'Thomas Klima'; -UPDATE user SET member_since_date='2009-11-15', birthdate='1964-04-12', mail='margit.bencic@mic-cust.com', nickname='', notes='', phone='+43 664 8264033', address='Hofgasse 22/3, 4020 Linz' WHERE name = 'Margit Klima-Bencic'; -UPDATE user SET member_since_date='2018-07-27', birthdate='1958-02-28', mail='klug.ingrid@gmx.at', nickname='', notes='', phone='+43 664 2006567', address='Heilhamer Weg 1, 4040 Linz' WHERE name = 'Ingrid Klug'; -UPDATE user SET member_since_date='2017-09-01', birthdate='2002-09-04', mail='max.knauseder@gmx.at', nickname='', notes='', phone='', address='Stefan-Fechter-Weg 8, 4020 Linz' WHERE name = 'Max Knauseder'; -UPDATE user SET member_since_date='2016-12-01', birthdate='2000-03-24', mail='paul.knauseder@gmail.com', nickname='', notes='', phone='+43680 2254611', address='Stefan-Fechter-Weg 8, 4020 Linz' WHERE name = 'Paul Knauseder'; -UPDATE user SET member_since_date='2008-01-01', birthdate='1969-02-14', mail='h.koch@sportkoch.at', nickname='', notes='', phone='0699 10921653, 0722961387', address='Auweg 7, 4040 Grossamberg' WHERE name = 'Harald Koch'; -UPDATE user SET member_since_date='1989-01-01', birthdate='1959-05-19', mail='johann.koci@aon.at', nickname='', notes='Telefonnummer unbekannt,', phone='', address='Oberschaden 44, 4070 Pupping' WHERE name = 'Johann Koci'; -UPDATE user SET member_since_date='2018-08-28', birthdate='1979-06-03', mail='daniel.kortschak@T-online.de', nickname='', notes='', phone='+43 677 64828854', address='Anzengruberstr. 3/3, 4020 Linz' WHERE name = 'Daniel Kortschak'; -UPDATE user SET member_since_date='2023-06-14', birthdate='2008-03-05', mail='kranz@sportplusmedizin.at, simonkranz2004@icloud.com', nickname='', notes='Mutter: Dr. Silke Kranz-Breitschopf', phone='06504293256, 06642538419', address='Langfeldstraße 55, 4040 Plesching' WHERE name = 'Simon Kranz'; -UPDATE user SET member_since_date='1958-05-01', birthdate='1942-07-24', mail='manfred.krausbar@aon.at', nickname='', notes='Ernst oder Adi wegen Telefonnummer befragen', phone='', address='Amberg 14, 4201 Grammastetten' WHERE name = 'Manfred Krausbar'; -UPDATE user SET member_since_date='2022-07-06', birthdate='1996-02-27', mail='kriechbaum.verena@a1.net', nickname='', notes='', phone='69915054347', address='Mannheimstraße 4/7/44, 4040 Linz' WHERE name = 'Verena Kriechbaum'; -UPDATE user SET member_since_date='2022-07-12', birthdate='1999-01-25', mail='martin_kugler@gmx.de', nickname='', notes='', phone='+49 176 57736216', address='Lessingstraße 4, 4020 Linz' WHERE name = 'Martin Kugler'; -UPDATE user SET member_since_date='2021-08-31', birthdate='1996-11-26', mail='fabian.kunz96@gmail.com', nickname='', notes='', phone='+43 677 62333992', address='Altenbergerstr. 72, 4040 Linz' WHERE name = 'Fabian Kunz'; -UPDATE user SET member_since_date='', birthdate='', mail='', nickname='', notes='Zahlung von 100 bar am 27.12', phone='', address='' WHERE name = 'Heinrich Kupka'; -UPDATE user SET member_since_date='2021-06-24', birthdate='1981-04-01', mail='anna.kuthan@gmail.com', nickname='', notes='wollen nur die Hälfte zahlen, nicht genehmigt', phone='+43 681 10863359', address='Strabergerstr. 12/4, 4040 Linz' WHERE name = 'Anna Kuthan'; -UPDATE user SET member_since_date='2022-09-13', birthdate='2010-05-24', mail='mona_lach@yahoo.de, moritz.la@gmx.at', nickname='', notes='Mutter: Mona Lach\n\nSchnupperrrudertage', phone='0650 3300340, 0670 5052017', address='Weinbergerstr. 44, 4061 Pasching' WHERE name = 'Moritz Lach'; -UPDATE user SET member_since_date='2022-08-11', birthdate='1973-03-12', mail='claudia-post@gmx.at', nickname='', notes='', phone='0650 7000551', address='Figulystraße 4, 4020 Linz' WHERE name = 'Claudia Lackinger'; -UPDATE user SET member_since_date='1955-07-01', birthdate='1933-12-22', mail='', nickname='', notes='', phone='+43 732 715619', address='Jägerstr. 9, 4040 Linz' WHERE name = 'Erich Lehner'; -UPDATE user SET member_since_date='1979-05-01', birthdate='1966-09-06', mail='roland@expressu.at', nickname='', notes='', phone='0664 820 8001', address='Am Kammererholz 4, 4073 Wilhering' WHERE name = 'Roland Lehner'; -UPDATE user SET member_since_date='2018-01-23', birthdate='1970-10-23', mail='matthias.list@dioezese-linz.at', nickname='', notes='', phone='+43 676 87765200', address='Spazenhofstr.22/10, 4040 Linz' WHERE name = 'Matthias List'; -UPDATE user SET member_since_date='2023-07-13', birthdate='1985-08-31', mail='info.melanieludwig@gmx.at', nickname='', notes='', phone='6607709648', address='Heindlstraße 14, 4040 Linz' WHERE name = 'Melanie Ludwig'; -UPDATE user SET member_since_date='2009-09-07', birthdate='1971-02-01', mail='manfred.meindl@aon.at', nickname='', notes='', phone='+43 650 6634635', address='Ferihumerstr. 42, 4040 Linz' WHERE name = 'Manfred Meindl'; -UPDATE user SET member_since_date='2005-04-15', birthdate='1977-04-18', mail='michaelmessner@gmx.at', nickname='', notes='', phone='0699 10721125', address='Linzerstr. 71/4, 4100 Ottensheim' WHERE name = 'Michael Messner'; -UPDATE user SET member_since_date='2023-09-04', birthdate='1998-12-11', mail='c.meusburger@hotmail.com', nickname='', notes='', phone='69916417678', address='Nisslstraße 5, 4040 Linz' WHERE name = 'Clara Meusburger'; -UPDATE user SET member_since_date='2023-10-30', birthdate='2010-10-21', mail='martinathurnher@gmx.at, nadine.pesl@gmail.com', nickname='', notes='Mutter Martina Thurnher (Mail & Telefonnummer)\n\nPatchwork Familie: Stefanie Thurnher + Noah Gunesch', phone='0677 64422430, 0699 12618269', address='Lindenweg 16/2, 4209 Engerwitzdorf' WHERE name = 'Nadine Pesl'; -UPDATE user SET member_since_date='1973-01-01', birthdate='1947-01-15', mail='elpri@a1.net', nickname='', notes='Telefonnummer fehlt', phone='', address='Prandtauerstr. 22, 4040 Linz' WHERE name = 'Elfriede Prinz'; -UPDATE user SET member_since_date='2022-07-07', birthdate='2000-07-04', mail='carmenpusch43@gmail.com', nickname='', notes='', phone='0650 5780908', address='Obermüllnerweg 19, 4040 Linz' WHERE name = 'Carmen Pusch'; -UPDATE user SET member_since_date='1969-01-01', birthdate='1952-04-16', mail='h.radinger@eduhi.at', nickname='', notes='', phone='0676 6097326', address='Fischerg. 15, 4072 Alkoven' WHERE name = 'Heinz Radinger'; -UPDATE user SET member_since_date='1969-02-01', birthdate='1946-05-26', mail='', nickname='', notes='E-Mail fehlen', phone='0664 2074151', address='Hagenberg 262, 4232 Hagenberg' WHERE name = 'Hermann Remplbauer'; -UPDATE user SET member_since_date='2018-04-30', birthdate='1965-09-26', mail='b.riss@scs-technology.at', nickname='', notes='', phone='0650 3813362', address='Am Bachlbergweg 83 A, 4040 Linz' WHERE name = 'Burkhard Riss'; -UPDATE user SET member_since_date='2021-09-01', birthdate='1986-12-25', mail='christiane.rueckerl@gmx.de', nickname='', notes='', phone='+43 664 60295601', address='Auweg 5, 4222 Langenstein' WHERE name = 'Christiane Rückerl'; -UPDATE user SET member_since_date='1973-06-01', birthdate='1957-09-06', mail='andrea1.sageder@gmail.com', nickname='', notes='', phone='+43 644 73822708', address='Lassersdorf 38, 4201 Gramastetten' WHERE name = 'Andrea Sageder'; -UPDATE user SET member_since_date='1988-11-01', birthdate='1966-06-19', mail='Birgit.Sageder@swisslife-select.at', nickname='', notes='', phone='+43 650 5531665', address='Lichtenbergerstraße 92/Neubau, 4201 Eidenberg' WHERE name = 'Birgit Sageder'; -UPDATE user SET member_since_date='1971-09-01', birthdate='1959-04-27', mail='michi.sport@icloud.com', nickname='', notes='', phone='+43 0664 75007443', address='Lichtenbergerstr. 92, 4201 Eidenberg' WHERE name = 'Michael Sageder'; -UPDATE user SET member_since_date='2004-01-01', birthdate='1993-03-21', mail='niklas93@gmx.at', nickname='', notes='', phone='+43 650 2500105', address='Freistädterstraße 74, 4040 Linz' WHERE name = 'Niklas Sageder'; -UPDATE user SET member_since_date='1989-08-21', birthdate='1980-01-25', mail='', nickname='', notes='Adresse falsch?? Vorarlberg?\n\nMailadresse nicht mehr aktuell', phone='', address='Lassersdorf 38, 4201 Gramastetten' WHERE name = 'Sebastian Sageder'; -UPDATE user SET member_since_date='1971-09-01', birthdate='1957-07-30', mail='sigiwave@gmail.com', nickname='', notes='', phone='+43 677 99022174', address='Lassersdorf 38, 4201 Grammastetten' WHERE name = 'Siegfried Sageder'; -UPDATE user SET member_since_date='2022-07-06', birthdate='2000-06-14', mail='l.schedlberger@gmail.com', nickname='', notes='', phone='+43 650 4001462', address='Tummelplatz 3/7, 4020 Linz' WHERE name = 'Lisa-Maria Schedlberger'; -UPDATE user SET member_since_date='1993-11-25', birthdate='1934-06-30', mail='schellenbacher.boats@utanet.at', nickname='', notes='', phone='0664 2817929', address='Reuterleiten 6, 4048 Puchenau' WHERE name = 'Max Schellenbacher'; -UPDATE user SET member_since_date='2022-08-01', birthdate='1949-09-16', mail='klausschlogl@gmail.com', nickname='', notes='', phone='0699 81692287', address='Neufahrergasse 52, 4040 Linz' WHERE name = 'Klaus Schlögl'; -UPDATE user SET member_since_date='1973-01-01', birthdate='1948-02-05', mail='wolfgang.schlogl@gmail.com', nickname='', notes='', phone='0650 8809510', address='Mittelpromenade 55, 4048 Puchenau' WHERE name = 'Wolfgang Schlögl'; -UPDATE user SET member_since_date='2023-09-14', birthdate='1985-11-21', mail='a.schopper@liwest.at', nickname='', notes='', phone='0677 99019809', address='Ziererfeldstraße 8, 4030 Linz' WHERE name = 'Andreas Schopper'; -UPDATE user SET member_since_date='2020-01-01', birthdate='2007-02-22', mail='tina.schwendinger@gmail.com', nickname='Caro', notes='E-Mail: Martina Schwendinger (Mutter)', phone='', address='Holunderweg 17, 4622 Eggendorf' WHERE name = 'Caroline Schwendinger'; -UPDATE user SET member_since_date='2021-01-01', birthdate='2003-07-16', mail='silberkrisi17@gmail.com', nickname='', notes='', phone='0660 6757010, 0699 13259592', address='Holunderweg 17, 4622 Eggendorf' WHERE name = 'Kristina Schwendinger'; -UPDATE user SET member_since_date='2022-12-29', birthdate='1969-04-11', mail='tina.schwendinger@gmail.com', nickname='', notes='', phone='0660 6757010', address='Holunderweg 17, 4622 Eggendorf im Traunkreis' WHERE name = 'Martina Schwendinger'; -UPDATE user SET member_since_date='2022-09-07', birthdate='1994-08-11', mail='stephan.siegl@me.com', nickname='', notes='', phone='436604540530', address='Cremeristraße 5/9, 4020 Linz' WHERE name = 'Stephan Siegl'; -UPDATE user SET member_since_date='2011-09-13', birthdate='1986-11-09', mail='sandra.sollberger@gmail.com', nickname='', notes='', phone='+43 664 2424606', address='Reischekstr.8a, 4240 Freistadt' WHERE name = 'Sandra Sollberger'; -UPDATE user SET member_since_date='2016-07-01', birthdate='1983-05-30', mail='stadlermichael@gmx.at', nickname='', notes='Zahlung im Mai abwarten', phone='', address='Grünau 39, 4312 Ried/Riedm.' WHERE name = 'Michael Stadler'; -UPDATE user SET member_since_date='2022-07-20', birthdate='2001-12-08', mail='edith.steinacker@hotmail.com', nickname='', notes='', phone='0660 7015077', address='Pulvermühlstraße 41 1/130, 4040 Linz' WHERE name = 'Edith Steinacker'; -UPDATE user SET member_since_date='2022-02-12', birthdate='1989-04-04', mail='ilona.stuetz@ufg.at', nickname='', notes='', phone='6802319482', address='Honauerstraße 31a, 4020 Linz' WHERE name = 'Ilona Stütz'; -UPDATE user SET member_since_date='2018-04-30', birthdate='1967-08-22', mail='elisabeth.totschnig@gmx.at', nickname='', notes='', phone='0650 2208678', address='Bachlbergw. 83 A, 4040 Linz' WHERE name = 'Elisabeth Totschnig'; -UPDATE user SET member_since_date='2022-05-11', birthdate='2007-10-31', mail='atharvatyagi@icloud.com, sandeeptyagi@hotmail.com', nickname='', notes='Sandeep Tyagi (Erziehungsberechtigter)', phone='0664 8325697, 0699 18743639', address='Böhmerwaldstraße 18/2/4, 4020 Linz' WHERE name = 'Atharva Tyagi'; -UPDATE user SET member_since_date='2019-01-01', birthdate='', mail='webermedicus@hotmail.com', nickname='', notes='', phone='0650 8808368', address='Baumgarten 8, 4012 Neumarkt' WHERE name = 'Friedrich Weber'; -UPDATE user SET member_since_date='2023-07-12', birthdate='2001-03-19', mail='e.weitmayr@gmx.at', nickname='', notes='', phone='0677 61246226', address='Altenbergerstraße 74/135, 4040 Linz' WHERE name = 'Elias Weitmayr'; -UPDATE user SET member_since_date='2016-06-16', birthdate='1983-04-27', mail='l.wessely@gmx.at', nickname='', notes='', phone='0664 601655664', address='Streimlingweg 15, 4040 Linz' WHERE name = 'Lukas Wessely'; -UPDATE user SET member_since_date='2023-09-05', birthdate='2000-01-14', mail='wiesersophia@gmail.com', nickname='', notes='', phone='0664 4842659', address='Rudolfstraße 60/9, 4040 Linz' WHERE name = 'Sophia Wieser'; -UPDATE user SET member_since_date='1963-06-01', birthdate='1942-11-30', mail='erich.zauner@liwest.at', nickname='', notes='', phone='+43 677 61608788', address='Stockholmweg 15, 4040 Linz' WHERE name = 'Erich Zauner'; -UPDATE user SET member_since_date='1971-06-01', birthdate='1954-05-01', mail='renate.zehetner@liwest.at', nickname='', notes='', phone='', address='Im Schneiderhölzl 24, 4048 Puchenau' WHERE name = 'Renate Zehetner'; -UPDATE user SET member_since_date='2022-11-21', birthdate='1998-05-06', mail='agi_zuljevic@hotmail.com', nickname='', notes='Nur für Kraftkammer, Dezember noch ohne Zahlung. Ab 2023 Zahlung fällig', phone='0650 8893830', address='Karlhofstraße 6, 4040 Linz' WHERE name = 'Augustin Zuljevic'; - - - - - - - -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Daniela Allmeier'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Daniela Allmeier'), (SELECT id FROM role WHERE name = 'Bootsführer')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Daniela Allmeier'), (SELECT id FROM role WHERE name = 'Vorstand')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Doris Allmeier'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Karl Allmeier'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Karl Allmeier'), (SELECT id FROM role WHERE name = 'Bootsführer')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Karl Allmeier'), (SELECT id FROM role WHERE name = 'Vorstand')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Alaa Almousa'), (SELECT id FROM role WHERE name = 'Rennrudern')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Alaa Almousa'), (SELECT id FROM role WHERE name = 'Anwärter')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Alaa Almousa'), (SELECT id FROM role WHERE name = 'Vorstand')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Alaa Almousa'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Elke Atzgerstorfer'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Elke Atzgerstorfer'), (SELECT id FROM role WHERE name = 'Unterstützend')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Eva Atzgerstorfer'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Eva Atzgerstorfer'), (SELECT id FROM role WHERE name = 'Unterstützend')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Philip Baillon'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Philip Baillon'), (SELECT id FROM role WHERE name = 'Anwärter')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Elfriede Baminger'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Elfriede Baminger'), (SELECT id FROM role WHERE name = 'Unterstützend')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Hanna Bäumer'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Juan Francisco Bautista Serrano'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Alexandra Binder'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Gerald Binder'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Marie Birner'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Marie Birner'), (SELECT id FROM role WHERE name = 'Vorstand')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Marie Birner'), (SELECT id FROM role WHERE name = 'Bootsführer')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Richard Bogdan'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Richard Bogdan'), (SELECT id FROM role WHERE name = 'Junioren')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Christian Commenda'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Goran DAgosto'), (SELECT id FROM role WHERE name = 'Junioren')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Goran DAgosto'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Goran DAgosto'), (SELECT id FROM role WHERE name = 'Rennrudern')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Daria Danner'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Daria Danner'), (SELECT id FROM role WHERE name = 'Junioren')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Silvia Demmig'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Daniela Dieplinger'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Herbert Dieplinger'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Sylvia Ecker'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Raphael Eichhorn'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Geza Eisserer'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Geza Eisserer'), (SELECT id FROM role WHERE name = 'Unterstützend')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Helga Engelbrechtslehner'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Helga Engelbrechtslehner'), (SELECT id FROM role WHERE name = 'Unterstützend')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Manuela Firmötz'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Manuela Firmötz'), (SELECT id FROM role WHERE name = 'Steuerleute')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Maj-Britt Fobian'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Elisabeth Fölser'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Larissa Freimuth'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Larissa Freimuth'), (SELECT id FROM role WHERE name = 'Rennrudern')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Larissa Freimuth'), (SELECT id FROM role WHERE name = 'Junioren')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Nina Füreder'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Bettina Fürlinger'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Bettina Fürlinger'), (SELECT id FROM role WHERE name = 'Unterstützend')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Heinz Gessl'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Helmut Gidl'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Helmut Gidl'), (SELECT id FROM role WHERE name = 'Unterstützend')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Tanja Gnadlinger'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Eva-Maria Gruber'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Eva-Maria Gruber'), (SELECT id FROM role WHERE name = 'Anwärter')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Noah Gunesch'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Noah Gunesch'), (SELECT id FROM role WHERE name = 'Junioren')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Christian Gusenbauer'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Christian Gusenbauer'), (SELECT id FROM role WHERE name = 'Steuerleute')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Adolf Hainschink'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Adolf Hainschink'), (SELECT id FROM role WHERE name = 'Bootsführer')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Adolf Hainschink'), (SELECT id FROM role WHERE name = 'Rechnungsprüfer')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Maria Hainschink'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Andrea Heinemann'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Bernhard Heinemann'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Bernhard Heinemann'), (SELECT id FROM role WHERE name = 'Vorstand')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Matthias Höfer'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Matthias Höfer'), (SELECT id FROM role WHERE name = 'Bootsführer')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Philipp Hofer'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Philipp Hofer'), (SELECT id FROM role WHERE name = 'Steuerleute')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Philipp Hofer'), (SELECT id FROM role WHERE name = 'Vorstand')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Thomas Hoffelner'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Heinz Höllersberger'), (SELECT id FROM role WHERE name = 'Unterstützend')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Harald Iro'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Claudia Jagersberger'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Melanie Keplinger'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Melanie Keplinger'), (SELECT id FROM role WHERE name = 'Unterstützend')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Ernst Klima'), (SELECT id FROM role WHERE name = 'Ehrenmitglied')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Ernst Klima'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Ernst Klima'), (SELECT id FROM role WHERE name = 'Bootsführer')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Ernst Klima'), (SELECT id FROM role WHERE name = 'Rechnungsprüfer')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Herta Klima'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Thomas Klima'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Thomas Klima'), (SELECT id FROM role WHERE name = 'Bootsführer')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Margit Klima-Bencic'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Ingrid Klug'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Max Knauseder'), (SELECT id FROM role WHERE name = 'Junioren')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Max Knauseder'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Paul Knauseder'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Harald Koch'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Johann Koci'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Daniel Kortschak'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Daniel Kortschak'), (SELECT id FROM role WHERE name = 'Vorstand')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Daniel Kortschak'), (SELECT id FROM role WHERE name = 'Steuerleute')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Simon Kranz'), (SELECT id FROM role WHERE name = 'Junioren')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Simon Kranz'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Manfred Krausbar'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Manfred Krausbar'), (SELECT id FROM role WHERE name = 'Unterstützend')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Verena Kriechbaum'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Martin Kugler'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Fabian Kunz'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Heinrich Kupka'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Heinrich Kupka'), (SELECT id FROM role WHERE name = 'Unterstützend')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Anna Kuthan'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Moritz Lach'), (SELECT id FROM role WHERE name = 'Junioren')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Moritz Lach'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Claudia Lackinger'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Erich Lehner'), (SELECT id FROM role WHERE name = 'Ehrenmitglied')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Erich Lehner'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Roland Lehner'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Matthias List'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Melanie Ludwig'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Manfred Meindl'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Manfred Meindl'), (SELECT id FROM role WHERE name = 'Bootsführer')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Manfred Meindl'), (SELECT id FROM role WHERE name = 'Vorstand')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Michael Messner'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Clara Meusburger'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Nadine Pesl'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Nadine Pesl'), (SELECT id FROM role WHERE name = 'Junioren')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Elfriede Prinz'), (SELECT id FROM role WHERE name = 'Unterstützend')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Carmen Pusch'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Heinz Radinger'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Hermann Remplbauer'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Hermann Remplbauer'), (SELECT id FROM role WHERE name = 'Unterstützend')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Burkhard Riss'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Christiane Rückerl'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Christiane Rückerl'), (SELECT id FROM role WHERE name = 'Förderndes Mitglied')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Andrea Sageder'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Birgit Sageder'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Michael Sageder'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Michael Sageder'), (SELECT id FROM role WHERE name = 'Rennrudern')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Michael Sageder'), (SELECT id FROM role WHERE name = 'Bootsführer')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Michael Sageder'), (SELECT id FROM role WHERE name = 'Vorstand')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Niklas Sageder'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Niklas Sageder'), (SELECT id FROM role WHERE name = 'Rennrudern')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Niklas Sageder'), (SELECT id FROM role WHERE name = 'Vorstand')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Sebastian Sageder'), (SELECT id FROM role WHERE name = 'Ehrenmitglied')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Sebastian Sageder'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Siegfried Sageder'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Siegfried Sageder'), (SELECT id FROM role WHERE name = 'Bootsführer')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Lisa-Maria Schedlberger'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Max Schellenbacher'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Max Schellenbacher'), (SELECT id FROM role WHERE name = 'Unterstützend')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Klaus Schlögl'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Wolfgang Schlögl'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Andreas Schopper'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Andreas Schopper'), (SELECT id FROM role WHERE name = 'Förderndes Mitglied')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Caroline Schwendinger'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Caroline Schwendinger'), (SELECT id FROM role WHERE name = 'Rennrudern')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Caroline Schwendinger'), (SELECT id FROM role WHERE name = 'Junioren')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Kristina Schwendinger'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Kristina Schwendinger'), (SELECT id FROM role WHERE name = 'Rennrudern')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Kristina Schwendinger'), (SELECT id FROM role WHERE name = 'Junioren')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Martina Schwendinger'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Stephan Siegl'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Sandra Sollberger'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Sandra Sollberger'), (SELECT id FROM role WHERE name = 'Bootsführer')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Sandra Sollberger'), (SELECT id FROM role WHERE name = 'Vorstand')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Michael Stadler'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Michael Stadler'), (SELECT id FROM role WHERE name = 'Unterstützend')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Edith Steinacker'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Ilona Stütz'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Elisabeth Totschnig'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Atharva Tyagi'), (SELECT id FROM role WHERE name = 'Junioren')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Atharva Tyagi'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Friedrich Weber'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Friedrich Weber'), (SELECT id FROM role WHERE name = 'Förderndes Mitglied')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Elias Weitmayr'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Lukas Wessely'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Lukas Wessely'), (SELECT id FROM role WHERE name = 'Steuerleute')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Lukas Wessely'), (SELECT id FROM role WHERE name = 'Unterstützend')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Sophia Wieser'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Erich Zauner'), (SELECT id FROM role WHERE name = 'Vorstand')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Erich Zauner'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Renate Zehetner'), (SELECT id FROM role WHERE name = 'Donau Linz')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Renate Zehetner'), (SELECT id FROM role WHERE name = 'Unterstützend')); -INSERT INTO user_role (user_id, role_id) VALUES ((SELECT id FROM user where name = 'Augustin Zuljevic'), (SELECT id FROM role WHERE name = 'Donau Linz')); diff --git a/templates/admin/mail.html.tera b/templates/admin/mail.html.tera new file mode 100644 index 0000000..be16840 --- /dev/null +++ b/templates/admin/mail.html.tera @@ -0,0 +1,27 @@ +{% import "includes/macros" as macros %} +{% import "includes/forms/boat" as boat %} + +{% extends "base" %} + +{% block content %} + {% if flash %} + {{ macros::alert(message=flash.1, type=flash.0, class="sm:col-span-2 lg:col-span-3") }} + {% endif %} + +
+

Mail

+
+ + + + + +
+ +
+ +{% endblock content %}