added age
This commit is contained in:
@ -22,7 +22,7 @@ apply plugin: 'java'
|
||||
apply plugin: 'maven-publish'
|
||||
|
||||
group = 'de.jottyfan'
|
||||
version = '5'
|
||||
version = '6'
|
||||
|
||||
description = """bicolib"""
|
||||
|
||||
|
@ -5,6 +5,7 @@ package de.jottyfan.bico.db.camp;
|
||||
|
||||
|
||||
import de.jottyfan.bico.db.DefaultCatalog;
|
||||
import de.jottyfan.bico.db.camp.tables.TAge;
|
||||
import de.jottyfan.bico.db.camp.tables.TRegistration;
|
||||
import de.jottyfan.bico.db.camp.tables.VParticipant;
|
||||
|
||||
@ -29,6 +30,11 @@ public class Camp extends SchemaImpl {
|
||||
*/
|
||||
public static final Camp CAMP = new Camp();
|
||||
|
||||
/**
|
||||
* The table <code>camp.t_age</code>.
|
||||
*/
|
||||
public final TAge T_AGE = TAge.T_AGE;
|
||||
|
||||
/**
|
||||
* The table <code>camp.t_registration</code>.
|
||||
*/
|
||||
@ -55,6 +61,7 @@ public class Camp extends SchemaImpl {
|
||||
@Override
|
||||
public final List<Table<?>> getTables() {
|
||||
return Arrays.asList(
|
||||
TAge.T_AGE,
|
||||
TRegistration.T_REGISTRATION,
|
||||
VParticipant.V_PARTICIPANT
|
||||
);
|
||||
|
@ -4,9 +4,12 @@
|
||||
package de.jottyfan.bico.db.camp;
|
||||
|
||||
|
||||
import de.jottyfan.bico.db.camp.tables.TAge;
|
||||
import de.jottyfan.bico.db.camp.tables.TRegistration;
|
||||
import de.jottyfan.bico.db.camp.tables.records.TAgeRecord;
|
||||
import de.jottyfan.bico.db.camp.tables.records.TRegistrationRecord;
|
||||
|
||||
import org.jooq.ForeignKey;
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.UniqueKey;
|
||||
import org.jooq.impl.DSL;
|
||||
@ -24,5 +27,15 @@ public class Keys {
|
||||
// UNIQUE and PRIMARY KEY definitions
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
public static final UniqueKey<TAgeRecord> T_AGE_AGE_KEY = Internal.createUniqueKey(TAge.T_AGE, DSL.name("t_age_age_key"), new TableField[] { TAge.T_AGE.AGE }, true);
|
||||
public static final UniqueKey<TAgeRecord> T_AGE_NAME_KEY = Internal.createUniqueKey(TAge.T_AGE, DSL.name("t_age_name_key"), new TableField[] { TAge.T_AGE.NAME }, true);
|
||||
public static final UniqueKey<TAgeRecord> T_AGE_PKEY = Internal.createUniqueKey(TAge.T_AGE, DSL.name("t_age_pkey"), new TableField[] { TAge.T_AGE.PK_AGE }, true);
|
||||
public static final UniqueKey<TRegistrationRecord> T_REGISTRATION_CAMP_FORENAME_SURNAME_KEY = Internal.createUniqueKey(TRegistration.T_REGISTRATION, DSL.name("t_registration_camp_forename_surname_key"), new TableField[] { TRegistration.T_REGISTRATION.CAMP, TRegistration.T_REGISTRATION.FORENAME, TRegistration.T_REGISTRATION.SURNAME }, true);
|
||||
public static final UniqueKey<TRegistrationRecord> T_REGISTRATION_PKEY = Internal.createUniqueKey(TRegistration.T_REGISTRATION, DSL.name("t_registration_pkey"), new TableField[] { TRegistration.T_REGISTRATION.PK_REGISTRATION }, true);
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// FOREIGN KEY definitions
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
public static final ForeignKey<TRegistrationRecord, TAgeRecord> T_REGISTRATION__T_REGISTRATION_FK_AGE_FKEY = Internal.createForeignKey(TRegistration.T_REGISTRATION, DSL.name("t_registration_fk_age_fkey"), new TableField[] { TRegistration.T_REGISTRATION.FK_AGE }, Keys.T_AGE_PKEY, new TableField[] { TAge.T_AGE.PK_AGE }, true);
|
||||
}
|
||||
|
@ -4,6 +4,7 @@
|
||||
package de.jottyfan.bico.db.camp;
|
||||
|
||||
|
||||
import de.jottyfan.bico.db.camp.tables.TAge;
|
||||
import de.jottyfan.bico.db.camp.tables.TRegistration;
|
||||
import de.jottyfan.bico.db.camp.tables.VParticipant;
|
||||
|
||||
@ -14,6 +15,11 @@ import de.jottyfan.bico.db.camp.tables.VParticipant;
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class Tables {
|
||||
|
||||
/**
|
||||
* The table <code>camp.t_age</code>.
|
||||
*/
|
||||
public static final TAge T_AGE = TAge.T_AGE;
|
||||
|
||||
/**
|
||||
* The table <code>camp.t_registration</code>.
|
||||
*/
|
||||
|
311
src/main/java/de/jottyfan/bico/db/camp/tables/TAge.java
Normal file
311
src/main/java/de/jottyfan/bico/db/camp/tables/TAge.java
Normal file
@ -0,0 +1,311 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.bico.db.camp.tables;
|
||||
|
||||
|
||||
import de.jottyfan.bico.db.camp.Camp;
|
||||
import de.jottyfan.bico.db.camp.Keys;
|
||||
import de.jottyfan.bico.db.camp.tables.TRegistration.TRegistrationPath;
|
||||
import de.jottyfan.bico.db.camp.tables.records.TAgeRecord;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.ForeignKey;
|
||||
import org.jooq.Identity;
|
||||
import org.jooq.InverseForeignKey;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.Path;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.Record;
|
||||
import org.jooq.SQL;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
import org.jooq.Stringly;
|
||||
import org.jooq.Table;
|
||||
import org.jooq.TableField;
|
||||
import org.jooq.TableOptions;
|
||||
import org.jooq.UniqueKey;
|
||||
import org.jooq.impl.DSL;
|
||||
import org.jooq.impl.DefaultDataType;
|
||||
import org.jooq.impl.SQLDataType;
|
||||
import org.jooq.impl.TableImpl;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class TAge extends TableImpl<TAgeRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* The reference instance of <code>camp.t_age</code>
|
||||
*/
|
||||
public static final TAge T_AGE = new TAge();
|
||||
|
||||
/**
|
||||
* The class holding records for this type
|
||||
*/
|
||||
@Override
|
||||
public Class<TAgeRecord> getRecordType() {
|
||||
return TAgeRecord.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>camp.t_age.created</code>.
|
||||
*/
|
||||
public final TableField<TAgeRecord, LocalDateTime> CREATED = createField(DSL.name("created"), SQLDataType.LOCALDATETIME(6).defaultValue(DSL.field(DSL.raw("CURRENT_TIMESTAMP"), SQLDataType.LOCALDATETIME)), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>camp.t_age.pk_age</code>.
|
||||
*/
|
||||
public final TableField<TAgeRecord, Integer> PK_AGE = createField(DSL.name("pk_age"), SQLDataType.INTEGER.nullable(false).identity(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>camp.t_age.name</code>.
|
||||
*/
|
||||
public final TableField<TAgeRecord, String> NAME = createField(DSL.name("name"), SQLDataType.CLOB.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* @deprecated Unknown data type. If this is a qualified, user-defined type,
|
||||
* it may have been excluded from code generation. If this is a built-in
|
||||
* type, you can define an explicit {@link org.jooq.Binding} to specify how
|
||||
* this type should be handled. Deprecation can be turned off using
|
||||
* {@literal <deprecationOnUnknownTypes/>} in your code generator
|
||||
* configuration.
|
||||
*/
|
||||
@Deprecated
|
||||
public final TableField<TAgeRecord, Object> AGE = createField(DSL.name("age"), DefaultDataType.getDefaultDataType("\"pg_catalog\".\"int4range\"").nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>camp.t_age.price</code>.
|
||||
*/
|
||||
public final TableField<TAgeRecord, BigDecimal> PRICE = createField(DSL.name("price"), SQLDataType.NUMERIC(4, 2).nullable(false), this, "");
|
||||
|
||||
private TAge(Name alias, Table<TAgeRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
|
||||
private TAge(Name alias, Table<TAgeRecord> aliased, Field<?>[] parameters, Condition where) {
|
||||
super(alias, null, aliased, parameters, DSL.comment(""), TableOptions.table(), where);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>camp.t_age</code> table reference
|
||||
*/
|
||||
public TAge(String alias) {
|
||||
this(DSL.name(alias), T_AGE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>camp.t_age</code> table reference
|
||||
*/
|
||||
public TAge(Name alias) {
|
||||
this(alias, T_AGE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a <code>camp.t_age</code> table reference
|
||||
*/
|
||||
public TAge() {
|
||||
this(DSL.name("t_age"), null);
|
||||
}
|
||||
|
||||
public <O extends Record> TAge(Table<O> path, ForeignKey<O, TAgeRecord> childPath, InverseForeignKey<O, TAgeRecord> parentPath) {
|
||||
super(path, childPath, parentPath, T_AGE);
|
||||
}
|
||||
|
||||
/**
|
||||
* A subtype implementing {@link Path} for simplified path-based joins.
|
||||
*/
|
||||
public static class TAgePath extends TAge implements Path<TAgeRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
public <O extends Record> TAgePath(Table<O> path, ForeignKey<O, TAgeRecord> childPath, InverseForeignKey<O, TAgeRecord> parentPath) {
|
||||
super(path, childPath, parentPath);
|
||||
}
|
||||
private TAgePath(Name alias, Table<TAgeRecord> aliased) {
|
||||
super(alias, aliased);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TAgePath as(String alias) {
|
||||
return new TAgePath(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TAgePath as(Name alias) {
|
||||
return new TAgePath(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TAgePath as(Table<?> alias) {
|
||||
return new TAgePath(alias.getQualifiedName(), this);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Camp.CAMP;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Identity<TAgeRecord, Integer> getIdentity() {
|
||||
return (Identity<TAgeRecord, Integer>) super.getIdentity();
|
||||
}
|
||||
|
||||
@Override
|
||||
public UniqueKey<TAgeRecord> getPrimaryKey() {
|
||||
return Keys.T_AGE_PKEY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UniqueKey<TAgeRecord>> getUniqueKeys() {
|
||||
return Arrays.asList(Keys.T_AGE_AGE_KEY, Keys.T_AGE_NAME_KEY);
|
||||
}
|
||||
|
||||
private transient TRegistrationPath _tRegistration;
|
||||
|
||||
/**
|
||||
* Get the implicit to-many join path to the
|
||||
* <code>camp.t_registration</code> table
|
||||
*/
|
||||
public TRegistrationPath tRegistration() {
|
||||
if (_tRegistration == null)
|
||||
_tRegistration = new TRegistrationPath(this, null, Keys.T_REGISTRATION__T_REGISTRATION_FK_AGE_FKEY.getInverseKey());
|
||||
|
||||
return _tRegistration;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TAge as(String alias) {
|
||||
return new TAge(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TAge as(Name alias) {
|
||||
return new TAge(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TAge as(Table<?> alias) {
|
||||
return new TAge(alias.getQualifiedName(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TAge rename(String name) {
|
||||
return new TAge(DSL.name(name), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TAge rename(Name name) {
|
||||
return new TAge(name, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Rename this table
|
||||
*/
|
||||
@Override
|
||||
public TAge rename(Table<?> name) {
|
||||
return new TAge(name.getQualifiedName(), null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TAge where(Condition condition) {
|
||||
return new TAge(getQualifiedName(), aliased() ? this : null, null, condition);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TAge where(Collection<? extends Condition> conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TAge where(Condition... conditions) {
|
||||
return where(DSL.and(conditions));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TAge where(Field<Boolean> condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TAge where(SQL condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TAge where(@Stringly.SQL String condition) {
|
||||
return where(DSL.condition(condition));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TAge where(@Stringly.SQL String condition, Object... binds) {
|
||||
return where(DSL.condition(condition, binds));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
@PlainSQL
|
||||
public TAge where(@Stringly.SQL String condition, QueryPart... parts) {
|
||||
return where(DSL.condition(condition, parts));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TAge whereExists(Select<?> select) {
|
||||
return where(DSL.exists(select));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an inline derived table from this table
|
||||
*/
|
||||
@Override
|
||||
public TAge whereNotExists(Select<?> select) {
|
||||
return where(DSL.notExists(select));
|
||||
}
|
||||
}
|
@ -8,17 +8,24 @@ import de.jottyfan.bico.db.camp.Camp;
|
||||
import de.jottyfan.bico.db.camp.Keys;
|
||||
import de.jottyfan.bico.db.camp.enums.EnumCamp;
|
||||
import de.jottyfan.bico.db.camp.enums.EnumSex;
|
||||
import de.jottyfan.bico.db.camp.tables.TAge.TAgePath;
|
||||
import de.jottyfan.bico.db.camp.tables.records.TRegistrationRecord;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
import org.jooq.Condition;
|
||||
import org.jooq.Field;
|
||||
import org.jooq.ForeignKey;
|
||||
import org.jooq.Identity;
|
||||
import org.jooq.InverseForeignKey;
|
||||
import org.jooq.Name;
|
||||
import org.jooq.Path;
|
||||
import org.jooq.PlainSQL;
|
||||
import org.jooq.QueryPart;
|
||||
import org.jooq.Record;
|
||||
import org.jooq.SQL;
|
||||
import org.jooq.Schema;
|
||||
import org.jooq.Select;
|
||||
@ -88,6 +95,41 @@ public class TRegistration extends TableImpl<TRegistrationRecord> {
|
||||
*/
|
||||
public final TableField<TRegistrationRecord, EnumSex> SEX = createField(DSL.name("sex"), SQLDataType.VARCHAR.nullable(false).asEnumDataType(EnumSex.class), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>camp.t_registration.barrier_free</code>.
|
||||
*/
|
||||
public final TableField<TRegistrationRecord, Boolean> BARRIER_FREE = createField(DSL.name("barrier_free"), SQLDataType.BOOLEAN.defaultValue(DSL.field(DSL.raw("false"), SQLDataType.BOOLEAN)), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>camp.t_registration.nutrition</code>.
|
||||
*/
|
||||
public final TableField<TRegistrationRecord, String> NUTRITION = createField(DSL.name("nutrition"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>camp.t_registration.driver_provide_places</code>.
|
||||
*/
|
||||
public final TableField<TRegistrationRecord, Integer> DRIVER_PROVIDE_PLACES = createField(DSL.name("driver_provide_places"), SQLDataType.INTEGER, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>camp.t_registration.want_place_in_car</code>.
|
||||
*/
|
||||
public final TableField<TRegistrationRecord, Boolean> WANT_PLACE_IN_CAR = createField(DSL.name("want_place_in_car"), SQLDataType.BOOLEAN, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>camp.t_registration.diseases</code>.
|
||||
*/
|
||||
public final TableField<TRegistrationRecord, String> DISEASES = createField(DSL.name("diseases"), SQLDataType.CLOB, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>camp.t_registration.require_payment</code>.
|
||||
*/
|
||||
public final TableField<TRegistrationRecord, Boolean> REQUIRE_PAYMENT = createField(DSL.name("require_payment"), SQLDataType.BOOLEAN, this, "");
|
||||
|
||||
/**
|
||||
* The column <code>camp.t_registration.fk_age</code>.
|
||||
*/
|
||||
public final TableField<TRegistrationRecord, Integer> FK_AGE = createField(DSL.name("fk_age"), SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
private TRegistration(Name alias, Table<TRegistrationRecord> aliased) {
|
||||
this(alias, aliased, (Field<?>[]) null, null);
|
||||
}
|
||||
@ -117,6 +159,39 @@ public class TRegistration extends TableImpl<TRegistrationRecord> {
|
||||
this(DSL.name("t_registration"), null);
|
||||
}
|
||||
|
||||
public <O extends Record> TRegistration(Table<O> path, ForeignKey<O, TRegistrationRecord> childPath, InverseForeignKey<O, TRegistrationRecord> parentPath) {
|
||||
super(path, childPath, parentPath, T_REGISTRATION);
|
||||
}
|
||||
|
||||
/**
|
||||
* A subtype implementing {@link Path} for simplified path-based joins.
|
||||
*/
|
||||
public static class TRegistrationPath extends TRegistration implements Path<TRegistrationRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
public <O extends Record> TRegistrationPath(Table<O> path, ForeignKey<O, TRegistrationRecord> childPath, InverseForeignKey<O, TRegistrationRecord> parentPath) {
|
||||
super(path, childPath, parentPath);
|
||||
}
|
||||
private TRegistrationPath(Name alias, Table<TRegistrationRecord> aliased) {
|
||||
super(alias, aliased);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TRegistrationPath as(String alias) {
|
||||
return new TRegistrationPath(DSL.name(alias), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TRegistrationPath as(Name alias) {
|
||||
return new TRegistrationPath(alias, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TRegistrationPath as(Table<?> alias) {
|
||||
return new TRegistrationPath(alias.getQualifiedName(), this);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Schema getSchema() {
|
||||
return aliased() ? null : Camp.CAMP;
|
||||
@ -132,6 +207,28 @@ public class TRegistration extends TableImpl<TRegistrationRecord> {
|
||||
return Keys.T_REGISTRATION_PKEY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UniqueKey<TRegistrationRecord>> getUniqueKeys() {
|
||||
return Arrays.asList(Keys.T_REGISTRATION_CAMP_FORENAME_SURNAME_KEY);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ForeignKey<TRegistrationRecord, ?>> getReferences() {
|
||||
return Arrays.asList(Keys.T_REGISTRATION__T_REGISTRATION_FK_AGE_FKEY);
|
||||
}
|
||||
|
||||
private transient TAgePath _tAge;
|
||||
|
||||
/**
|
||||
* Get the implicit join path to the <code>camp.t_age</code> table.
|
||||
*/
|
||||
public TAgePath tAge() {
|
||||
if (_tAge == null)
|
||||
_tAge = new TAgePath(this, Keys.T_REGISTRATION__T_REGISTRATION_FK_AGE_FKEY, null);
|
||||
|
||||
return _tAge;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TRegistration as(String alias) {
|
||||
return new TRegistration(DSL.name(alias), this);
|
||||
|
156
src/main/java/de/jottyfan/bico/db/camp/tables/pojos/TAge.java
Normal file
156
src/main/java/de/jottyfan/bico/db/camp/tables/pojos/TAge.java
Normal file
@ -0,0 +1,156 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.bico.db.camp.tables.pojos;
|
||||
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class TAge implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private final LocalDateTime created;
|
||||
private final Integer pkAge;
|
||||
private final String name;
|
||||
private final Object age;
|
||||
private final BigDecimal price;
|
||||
|
||||
public TAge(TAge value) {
|
||||
this.created = value.created;
|
||||
this.pkAge = value.pkAge;
|
||||
this.name = value.name;
|
||||
this.age = value.age;
|
||||
this.price = value.price;
|
||||
}
|
||||
|
||||
public TAge(
|
||||
LocalDateTime created,
|
||||
Integer pkAge,
|
||||
String name,
|
||||
Object age,
|
||||
BigDecimal price
|
||||
) {
|
||||
this.created = created;
|
||||
this.pkAge = pkAge;
|
||||
this.name = name;
|
||||
this.age = age;
|
||||
this.price = price;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>camp.t_age.created</code>.
|
||||
*/
|
||||
public LocalDateTime getCreated() {
|
||||
return this.created;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>camp.t_age.pk_age</code>.
|
||||
*/
|
||||
public Integer getPkAge() {
|
||||
return this.pkAge;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>camp.t_age.name</code>.
|
||||
*/
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Unknown data type. If this is a qualified, user-defined type,
|
||||
* it may have been excluded from code generation. If this is a built-in
|
||||
* type, you can define an explicit {@link org.jooq.Binding} to specify how
|
||||
* this type should be handled. Deprecation can be turned off using
|
||||
* {@literal <deprecationOnUnknownTypes/>} in your code generator
|
||||
* configuration.
|
||||
*/
|
||||
@Deprecated
|
||||
public Object getAge() {
|
||||
return this.age;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>camp.t_age.price</code>.
|
||||
*/
|
||||
public BigDecimal getPrice() {
|
||||
return this.price;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj)
|
||||
return true;
|
||||
if (obj == null)
|
||||
return false;
|
||||
if (getClass() != obj.getClass())
|
||||
return false;
|
||||
final TAge other = (TAge) obj;
|
||||
if (this.created == null) {
|
||||
if (other.created != null)
|
||||
return false;
|
||||
}
|
||||
else if (!this.created.equals(other.created))
|
||||
return false;
|
||||
if (this.pkAge == null) {
|
||||
if (other.pkAge != null)
|
||||
return false;
|
||||
}
|
||||
else if (!this.pkAge.equals(other.pkAge))
|
||||
return false;
|
||||
if (this.name == null) {
|
||||
if (other.name != null)
|
||||
return false;
|
||||
}
|
||||
else if (!this.name.equals(other.name))
|
||||
return false;
|
||||
if (this.age == null) {
|
||||
if (other.age != null)
|
||||
return false;
|
||||
}
|
||||
else if (!this.age.equals(other.age))
|
||||
return false;
|
||||
if (this.price == null) {
|
||||
if (other.price != null)
|
||||
return false;
|
||||
}
|
||||
else if (!this.price.equals(other.price))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
final int prime = 31;
|
||||
int result = 1;
|
||||
result = prime * result + ((this.created == null) ? 0 : this.created.hashCode());
|
||||
result = prime * result + ((this.pkAge == null) ? 0 : this.pkAge.hashCode());
|
||||
result = prime * result + ((this.name == null) ? 0 : this.name.hashCode());
|
||||
result = prime * result + ((this.age == null) ? 0 : this.age.hashCode());
|
||||
result = prime * result + ((this.price == null) ? 0 : this.price.hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder("TAge (");
|
||||
|
||||
sb.append(created);
|
||||
sb.append(", ").append(pkAge);
|
||||
sb.append(", ").append(name);
|
||||
sb.append(", ").append(age);
|
||||
sb.append(", ").append(price);
|
||||
|
||||
sb.append(")");
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -26,6 +26,13 @@ public class TRegistration implements Serializable {
|
||||
private final String forename;
|
||||
private final String surname;
|
||||
private final EnumSex sex;
|
||||
private final Boolean barrierFree;
|
||||
private final String nutrition;
|
||||
private final Integer driverProvidePlaces;
|
||||
private final Boolean wantPlaceInCar;
|
||||
private final String diseases;
|
||||
private final Boolean requirePayment;
|
||||
private final Integer fkAge;
|
||||
|
||||
public TRegistration(TRegistration value) {
|
||||
this.created = value.created;
|
||||
@ -35,6 +42,13 @@ public class TRegistration implements Serializable {
|
||||
this.forename = value.forename;
|
||||
this.surname = value.surname;
|
||||
this.sex = value.sex;
|
||||
this.barrierFree = value.barrierFree;
|
||||
this.nutrition = value.nutrition;
|
||||
this.driverProvidePlaces = value.driverProvidePlaces;
|
||||
this.wantPlaceInCar = value.wantPlaceInCar;
|
||||
this.diseases = value.diseases;
|
||||
this.requirePayment = value.requirePayment;
|
||||
this.fkAge = value.fkAge;
|
||||
}
|
||||
|
||||
public TRegistration(
|
||||
@ -44,7 +58,14 @@ public class TRegistration implements Serializable {
|
||||
EnumCamp camp,
|
||||
String forename,
|
||||
String surname,
|
||||
EnumSex sex
|
||||
EnumSex sex,
|
||||
Boolean barrierFree,
|
||||
String nutrition,
|
||||
Integer driverProvidePlaces,
|
||||
Boolean wantPlaceInCar,
|
||||
String diseases,
|
||||
Boolean requirePayment,
|
||||
Integer fkAge
|
||||
) {
|
||||
this.created = created;
|
||||
this.pkRegistration = pkRegistration;
|
||||
@ -53,6 +74,13 @@ public class TRegistration implements Serializable {
|
||||
this.forename = forename;
|
||||
this.surname = surname;
|
||||
this.sex = sex;
|
||||
this.barrierFree = barrierFree;
|
||||
this.nutrition = nutrition;
|
||||
this.driverProvidePlaces = driverProvidePlaces;
|
||||
this.wantPlaceInCar = wantPlaceInCar;
|
||||
this.diseases = diseases;
|
||||
this.requirePayment = requirePayment;
|
||||
this.fkAge = fkAge;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -104,6 +132,55 @@ public class TRegistration implements Serializable {
|
||||
return this.sex;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>camp.t_registration.barrier_free</code>.
|
||||
*/
|
||||
public Boolean getBarrierFree() {
|
||||
return this.barrierFree;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>camp.t_registration.nutrition</code>.
|
||||
*/
|
||||
public String getNutrition() {
|
||||
return this.nutrition;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>camp.t_registration.driver_provide_places</code>.
|
||||
*/
|
||||
public Integer getDriverProvidePlaces() {
|
||||
return this.driverProvidePlaces;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>camp.t_registration.want_place_in_car</code>.
|
||||
*/
|
||||
public Boolean getWantPlaceInCar() {
|
||||
return this.wantPlaceInCar;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>camp.t_registration.diseases</code>.
|
||||
*/
|
||||
public String getDiseases() {
|
||||
return this.diseases;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>camp.t_registration.require_payment</code>.
|
||||
*/
|
||||
public Boolean getRequirePayment() {
|
||||
return this.requirePayment;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>camp.t_registration.fk_age</code>.
|
||||
*/
|
||||
public Integer getFkAge() {
|
||||
return this.fkAge;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj)
|
||||
@ -155,6 +232,48 @@ public class TRegistration implements Serializable {
|
||||
}
|
||||
else if (!this.sex.equals(other.sex))
|
||||
return false;
|
||||
if (this.barrierFree == null) {
|
||||
if (other.barrierFree != null)
|
||||
return false;
|
||||
}
|
||||
else if (!this.barrierFree.equals(other.barrierFree))
|
||||
return false;
|
||||
if (this.nutrition == null) {
|
||||
if (other.nutrition != null)
|
||||
return false;
|
||||
}
|
||||
else if (!this.nutrition.equals(other.nutrition))
|
||||
return false;
|
||||
if (this.driverProvidePlaces == null) {
|
||||
if (other.driverProvidePlaces != null)
|
||||
return false;
|
||||
}
|
||||
else if (!this.driverProvidePlaces.equals(other.driverProvidePlaces))
|
||||
return false;
|
||||
if (this.wantPlaceInCar == null) {
|
||||
if (other.wantPlaceInCar != null)
|
||||
return false;
|
||||
}
|
||||
else if (!this.wantPlaceInCar.equals(other.wantPlaceInCar))
|
||||
return false;
|
||||
if (this.diseases == null) {
|
||||
if (other.diseases != null)
|
||||
return false;
|
||||
}
|
||||
else if (!this.diseases.equals(other.diseases))
|
||||
return false;
|
||||
if (this.requirePayment == null) {
|
||||
if (other.requirePayment != null)
|
||||
return false;
|
||||
}
|
||||
else if (!this.requirePayment.equals(other.requirePayment))
|
||||
return false;
|
||||
if (this.fkAge == null) {
|
||||
if (other.fkAge != null)
|
||||
return false;
|
||||
}
|
||||
else if (!this.fkAge.equals(other.fkAge))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -169,6 +288,13 @@ public class TRegistration implements Serializable {
|
||||
result = prime * result + ((this.forename == null) ? 0 : this.forename.hashCode());
|
||||
result = prime * result + ((this.surname == null) ? 0 : this.surname.hashCode());
|
||||
result = prime * result + ((this.sex == null) ? 0 : this.sex.hashCode());
|
||||
result = prime * result + ((this.barrierFree == null) ? 0 : this.barrierFree.hashCode());
|
||||
result = prime * result + ((this.nutrition == null) ? 0 : this.nutrition.hashCode());
|
||||
result = prime * result + ((this.driverProvidePlaces == null) ? 0 : this.driverProvidePlaces.hashCode());
|
||||
result = prime * result + ((this.wantPlaceInCar == null) ? 0 : this.wantPlaceInCar.hashCode());
|
||||
result = prime * result + ((this.diseases == null) ? 0 : this.diseases.hashCode());
|
||||
result = prime * result + ((this.requirePayment == null) ? 0 : this.requirePayment.hashCode());
|
||||
result = prime * result + ((this.fkAge == null) ? 0 : this.fkAge.hashCode());
|
||||
return result;
|
||||
}
|
||||
|
||||
@ -183,6 +309,13 @@ public class TRegistration implements Serializable {
|
||||
sb.append(", ").append(forename);
|
||||
sb.append(", ").append(surname);
|
||||
sb.append(", ").append(sex);
|
||||
sb.append(", ").append(barrierFree);
|
||||
sb.append(", ").append(nutrition);
|
||||
sb.append(", ").append(driverProvidePlaces);
|
||||
sb.append(", ").append(wantPlaceInCar);
|
||||
sb.append(", ").append(diseases);
|
||||
sb.append(", ").append(requirePayment);
|
||||
sb.append(", ").append(fkAge);
|
||||
|
||||
sb.append(")");
|
||||
return sb.toString();
|
||||
|
@ -0,0 +1,160 @@
|
||||
/*
|
||||
* This file is generated by jOOQ.
|
||||
*/
|
||||
package de.jottyfan.bico.db.camp.tables.records;
|
||||
|
||||
|
||||
import de.jottyfan.bico.db.camp.tables.TAge;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import org.jooq.Record1;
|
||||
import org.jooq.impl.UpdatableRecordImpl;
|
||||
|
||||
|
||||
/**
|
||||
* This class is generated by jOOQ.
|
||||
*/
|
||||
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
|
||||
public class TAgeRecord extends UpdatableRecordImpl<TAgeRecord> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Setter for <code>camp.t_age.created</code>.
|
||||
*/
|
||||
public TAgeRecord setCreated(LocalDateTime value) {
|
||||
set(0, value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>camp.t_age.created</code>.
|
||||
*/
|
||||
public LocalDateTime getCreated() {
|
||||
return (LocalDateTime) get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>camp.t_age.pk_age</code>.
|
||||
*/
|
||||
public TAgeRecord setPkAge(Integer value) {
|
||||
set(1, value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>camp.t_age.pk_age</code>.
|
||||
*/
|
||||
public Integer getPkAge() {
|
||||
return (Integer) get(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>camp.t_age.name</code>.
|
||||
*/
|
||||
public TAgeRecord setName(String value) {
|
||||
set(2, value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>camp.t_age.name</code>.
|
||||
*/
|
||||
public String getName() {
|
||||
return (String) get(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Unknown data type. If this is a qualified, user-defined type,
|
||||
* it may have been excluded from code generation. If this is a built-in
|
||||
* type, you can define an explicit {@link org.jooq.Binding} to specify how
|
||||
* this type should be handled. Deprecation can be turned off using
|
||||
* {@literal <deprecationOnUnknownTypes/>} in your code generator
|
||||
* configuration.
|
||||
*/
|
||||
@Deprecated
|
||||
public TAgeRecord setAge(Object value) {
|
||||
set(3, value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Unknown data type. If this is a qualified, user-defined type,
|
||||
* it may have been excluded from code generation. If this is a built-in
|
||||
* type, you can define an explicit {@link org.jooq.Binding} to specify how
|
||||
* this type should be handled. Deprecation can be turned off using
|
||||
* {@literal <deprecationOnUnknownTypes/>} in your code generator
|
||||
* configuration.
|
||||
*/
|
||||
@Deprecated
|
||||
public Object getAge() {
|
||||
return get(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>camp.t_age.price</code>.
|
||||
*/
|
||||
public TAgeRecord setPrice(BigDecimal value) {
|
||||
set(4, value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>camp.t_age.price</code>.
|
||||
*/
|
||||
public BigDecimal getPrice() {
|
||||
return (BigDecimal) get(4);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public Record1<Integer> key() {
|
||||
return (Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached TAgeRecord
|
||||
*/
|
||||
public TAgeRecord() {
|
||||
super(TAge.T_AGE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised TAgeRecord
|
||||
*/
|
||||
public TAgeRecord(LocalDateTime created, Integer pkAge, String name, Object age, BigDecimal price) {
|
||||
super(TAge.T_AGE);
|
||||
|
||||
setCreated(created);
|
||||
setPkAge(pkAge);
|
||||
setName(name);
|
||||
setAge(age);
|
||||
setPrice(price);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised TAgeRecord
|
||||
*/
|
||||
public TAgeRecord(de.jottyfan.bico.db.camp.tables.pojos.TAge value) {
|
||||
super(TAge.T_AGE);
|
||||
|
||||
if (value != null) {
|
||||
setCreated(value.getCreated());
|
||||
setPkAge(value.getPkAge());
|
||||
setName(value.getName());
|
||||
setAge(value.getAge());
|
||||
setPrice(value.getPrice());
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
}
|
@ -127,6 +127,111 @@ public class TRegistrationRecord extends UpdatableRecordImpl<TRegistrationRecord
|
||||
return (EnumSex) get(6);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>camp.t_registration.barrier_free</code>.
|
||||
*/
|
||||
public TRegistrationRecord setBarrierFree(Boolean value) {
|
||||
set(7, value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>camp.t_registration.barrier_free</code>.
|
||||
*/
|
||||
public Boolean getBarrierFree() {
|
||||
return (Boolean) get(7);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>camp.t_registration.nutrition</code>.
|
||||
*/
|
||||
public TRegistrationRecord setNutrition(String value) {
|
||||
set(8, value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>camp.t_registration.nutrition</code>.
|
||||
*/
|
||||
public String getNutrition() {
|
||||
return (String) get(8);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>camp.t_registration.driver_provide_places</code>.
|
||||
*/
|
||||
public TRegistrationRecord setDriverProvidePlaces(Integer value) {
|
||||
set(9, value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>camp.t_registration.driver_provide_places</code>.
|
||||
*/
|
||||
public Integer getDriverProvidePlaces() {
|
||||
return (Integer) get(9);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>camp.t_registration.want_place_in_car</code>.
|
||||
*/
|
||||
public TRegistrationRecord setWantPlaceInCar(Boolean value) {
|
||||
set(10, value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>camp.t_registration.want_place_in_car</code>.
|
||||
*/
|
||||
public Boolean getWantPlaceInCar() {
|
||||
return (Boolean) get(10);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>camp.t_registration.diseases</code>.
|
||||
*/
|
||||
public TRegistrationRecord setDiseases(String value) {
|
||||
set(11, value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>camp.t_registration.diseases</code>.
|
||||
*/
|
||||
public String getDiseases() {
|
||||
return (String) get(11);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>camp.t_registration.require_payment</code>.
|
||||
*/
|
||||
public TRegistrationRecord setRequirePayment(Boolean value) {
|
||||
set(12, value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>camp.t_registration.require_payment</code>.
|
||||
*/
|
||||
public Boolean getRequirePayment() {
|
||||
return (Boolean) get(12);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>camp.t_registration.fk_age</code>.
|
||||
*/
|
||||
public TRegistrationRecord setFkAge(Integer value) {
|
||||
set(13, value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>camp.t_registration.fk_age</code>.
|
||||
*/
|
||||
public Integer getFkAge() {
|
||||
return (Integer) get(13);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
@ -150,7 +255,7 @@ public class TRegistrationRecord extends UpdatableRecordImpl<TRegistrationRecord
|
||||
/**
|
||||
* Create a detached, initialised TRegistrationRecord
|
||||
*/
|
||||
public TRegistrationRecord(LocalDateTime created, Integer pkRegistration, String registrator, EnumCamp camp, String forename, String surname, EnumSex sex) {
|
||||
public TRegistrationRecord(LocalDateTime created, Integer pkRegistration, String registrator, EnumCamp camp, String forename, String surname, EnumSex sex, Boolean barrierFree, String nutrition, Integer driverProvidePlaces, Boolean wantPlaceInCar, String diseases, Boolean requirePayment, Integer fkAge) {
|
||||
super(TRegistration.T_REGISTRATION);
|
||||
|
||||
setCreated(created);
|
||||
@ -160,6 +265,13 @@ public class TRegistrationRecord extends UpdatableRecordImpl<TRegistrationRecord
|
||||
setForename(forename);
|
||||
setSurname(surname);
|
||||
setSex(sex);
|
||||
setBarrierFree(barrierFree);
|
||||
setNutrition(nutrition);
|
||||
setDriverProvidePlaces(driverProvidePlaces);
|
||||
setWantPlaceInCar(wantPlaceInCar);
|
||||
setDiseases(diseases);
|
||||
setRequirePayment(requirePayment);
|
||||
setFkAge(fkAge);
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
|
||||
@ -177,6 +289,13 @@ public class TRegistrationRecord extends UpdatableRecordImpl<TRegistrationRecord
|
||||
setForename(value.getForename());
|
||||
setSurname(value.getSurname());
|
||||
setSex(value.getSex());
|
||||
setBarrierFree(value.getBarrierFree());
|
||||
setNutrition(value.getNutrition());
|
||||
setDriverProvidePlaces(value.getDriverProvidePlaces());
|
||||
setWantPlaceInCar(value.getWantPlaceInCar());
|
||||
setDiseases(value.getDiseases());
|
||||
setRequirePayment(value.getRequirePayment());
|
||||
setFkAge(value.getFkAge());
|
||||
resetChangedOnNotNull();
|
||||
}
|
||||
}
|
||||
|
27
src/main/resources/v6.sql
Normal file
27
src/main/resources/v6.sql
Normal file
@ -0,0 +1,27 @@
|
||||
create table camp.t_age(
|
||||
created timestamp without time zone default current_timestamp,
|
||||
pk_age int not null primary key generated always as identity,
|
||||
name text not null unique,
|
||||
age int4range not null unique,
|
||||
price numeric(4, 2) not null
|
||||
);
|
||||
|
||||
insert into camp.t_age(name, age, price) values
|
||||
('Erwachsene', '[21, 120)', 53.50),
|
||||
('Jugendliche 18-20 J.', '[18, 20]', 50.50),
|
||||
('Jugendliche 15-17 J.', '[15, 27]', 42.00),
|
||||
('Teens 12-14 J.', '[12, 14]', 37.00),
|
||||
('Kinder 6-11 J.', '[6, 11]', 29.50),
|
||||
('Kinder 2-5 J.', '[2, 5]', 23.00),
|
||||
('Babies', '[0, 1]', 0.00);
|
||||
|
||||
alter table camp.t_registration add column barrier_free boolean default false;
|
||||
alter table camp.t_registration add column nutrition text;
|
||||
alter table camp.t_registration add column driver_provide_places int;
|
||||
alter table camp.t_registration add column want_place_in_car boolean;
|
||||
alter table camp.t_registration add column diseases text;
|
||||
alter table camp.t_registration add column require_payment boolean;
|
||||
alter table camp.t_registration add column fk_age int not null references camp.t_age(pk_age);
|
||||
|
||||
create or replace view v_version as
|
||||
select 6 as version;
|
Reference in New Issue
Block a user