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>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>org.mariadb.jdbc</groupId>
<artifactId>mariadb-java-client</artifactId>
<scope>runtime</scope>
</dependency>
</dependencies>
<!-- Database -->

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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