Skip to content

Commit

Permalink
updated models
Browse files Browse the repository at this point in the history
  • Loading branch information
Kacper Jarocki committed Oct 21, 2023
1 parent 86d7028 commit ce4487b
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 0 deletions.
21 changes: 21 additions & 0 deletions server/src/main/java/server/model/SpaceAccesses.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package server.model;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import lombok.Getter;
import lombok.Setter;

@Entity
@Getter
@Setter
public class SpaceAccesses {
@Id
private int accessId;
@Column(name = "space_id")
private int spaceId;
@Column(name = "account_id")
private int accountId;
private Boolean read;
private Boolean write;
}
25 changes: 25 additions & 0 deletions server/src/main/java/server/model/Spaces.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package server.model;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

@Entity
@Getter
@Setter
public class Spaces {
@Id
@Column(name = "space_id")
private int spaceId;
@Column(name = "space_creator_id")
private int spaceCreatorId;
private String title;
@Column(name = "modification_date")
private LocalDateTime modificationDate;
@Column(name = "url_address_id")
private int urlAddressId;
}
17 changes: 17 additions & 0 deletions server/src/main/java/server/model/UrlAddresses.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package server.model;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import lombok.Getter;
import lombok.Setter;

@Entity
@Getter
@Setter
public class UrlAddresses {
@Id
@Column(name = "url_id")
private int urlId;
private String urlAddress;
}

0 comments on commit ce4487b

Please sign in to comment.