This commit is contained in:
_Bastler 2023-12-13 11:37:48 +01:00
parent f11e2fde88
commit 30c2f4c45d
11 changed files with 21 additions and 7 deletions

View File

@ -87,6 +87,11 @@
<artifactId>webstly-wireguard</artifactId> <artifactId>webstly-wireguard</artifactId>
<version>${revision}</version> <version>${revision}</version>
</dependency> </dependency>
<dependency>
<groupId>org.mariadb.jdbc</groupId>
<artifactId>mariadb-java-client</artifactId>
<scope>runtime</scope>
</dependency>
</dependencies> </dependencies>
<!-- Database --> <!-- Database -->

View File

@ -38,7 +38,7 @@ public class BorrowItem implements UserData {
@Column(name = "name", nullable = false) @Column(name = "name", nullable = false)
private String name; private String name;
@Lob @Lob
@Column(name = "description", nullable = true) @Column(name = "description", nullable = true, length = 100000)
private String description; private String description;
@Column(name = "url", nullable = true) @Column(name = "url", nullable = true)
private String url; private String url;

View File

@ -41,10 +41,10 @@ public class BorrowRequest implements UserData {
@Column(name = "ends", nullable = false) @Column(name = "ends", nullable = false)
private Instant ends; private Instant ends;
@Lob @Lob
@Column(name = "reply", nullable = true) @Column(name = "reply", nullable = true, length = 100000)
private String reply; private String reply;
@Lob @Lob
@Column(name = "comment", nullable = true) @Column(name = "comment", nullable = true, length = 100000)
private String comment; private String comment;
@Transient @Transient
private BorrowItem borrowItem; private BorrowItem borrowItem;

View File

@ -32,7 +32,7 @@ public class UserProfileField implements UserData {
@Column(name = "value", nullable = true) @Column(name = "value", nullable = true)
private String value; private String value;
@Lob @Lob
@Column(name = "blob_value", nullable = true) @Column(name = "blob_value", nullable = true, length = 100000)
private String blob; private String blob;
@Column(name = "type", nullable = false) @Column(name = "type", nullable = false)
private ProfileFieldType type; private ProfileFieldType type;

View File

@ -33,6 +33,7 @@ public class Invite implements UserData {
private Instant starts; private Instant starts;
private Instant expires; private Instant expires;
@Lob @Lob
@Column(length = 100000)
private String message; private String message;
private String note; private String note;
private boolean redeemed; private boolean redeemed;

View File

@ -37,17 +37,22 @@ public class JitsiRoom implements UserData {
private Instant expires; private Instant expires;
@Lob @Lob
@JsonIgnore @JsonIgnore
@Column(length = 100000)
private String token; private String token;
@Lob @Lob
@JsonIgnore @JsonIgnore
@Column(length = 100000)
private String moderationToken; private String moderationToken;
@Lob @Lob
@Column(length = 100000)
private String url; private String url;
@Lob @Lob
@Column(length = 100000)
private String moderationUrl; private String moderationUrl;
@Reference @Reference
private String code; private String code;
@Lob @Lob
@Column(length = 100000)
private String orgUrl; private String orgUrl;
/** /**

View File

@ -24,7 +24,7 @@ public class MinetestAccount implements UserData {
@Column(name = "owner") @Column(name = "owner")
private Long owner; private Long owner;
@Lob @Lob
@Column(name = "skin") @Column(name = "skin", length = 100000)
private String skin; private String skin;
/** /**

View File

@ -25,6 +25,7 @@ public class ParteyUserReport {
private Long reporter; private Long reporter;
private Long user; private Long user;
@Lob @Lob
@Column(length = 100000)
private String comment; private String comment;
private String world; private String world;
private Instant created; private Instant created;

View File

@ -43,8 +43,8 @@ public class Timeslot implements UserData {
private Visibility visibility; private Visibility visibility;
@Column(name = "title", nullable = true) @Column(name = "title", nullable = true)
private String title; private String title;
@Column(name = "description", nullable = true)
@Lob @Lob
@Column(name = "description", nullable = true, length = 100000)
private String description; private String description;
@Column(name = "share", nullable = true) @Column(name = "share", nullable = true)
private String share; private String share;

View File

@ -14,7 +14,7 @@
<java.version>17</java.version> <java.version>17</java.version>
<querydsl.version>5.0.0</querydsl.version> <querydsl.version>5.0.0</querydsl.version>
<nimbus.version>9.37.3</nimbus.version> <nimbus.version>9.37.3</nimbus.version>
<revision>3.0.0-SNAPSHOT</revision> <revision>3.0.1-SNAPSHOT</revision>
</properties> </properties>
<parent> <parent>

View File

@ -34,6 +34,7 @@ public class ShortenedUrl implements UserData {
private String code; private String code;
private Long owner; private Long owner;
@Lob @Lob
@Column(length = 100000)
private String url; private String url;
private Instant expires; private Instant expires;
@JsonIgnore @JsonIgnore
@ -41,6 +42,7 @@ public class ShortenedUrl implements UserData {
private String passwordHash; private String passwordHash;
private String link; private String link;
@Lob @Lob
@Column(length = 100000)
private String note; private String note;
@Column(name = "addon", columnDefinition = "boolean default false") @Column(name = "addon", columnDefinition = "boolean default false")
private boolean queryParameters; private boolean queryParameters;