Merged in feature/FS-13-contest-gallery (pull request #1)
feat: ContestGallery model
This commit is contained in:
commit
cb0387ca0a
@ -0,0 +1,62 @@
|
||||
package io.salmonllama.fashionscapeapi.model;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
|
||||
@Entity
|
||||
@Table(name = "contest_gallery")
|
||||
public class ContestGallery {
|
||||
private int id;
|
||||
private String contestName;
|
||||
private Timestamp created;
|
||||
private Timestamp contestClose;
|
||||
private int entryLimit;
|
||||
private boolean canReplaceEntries;
|
||||
|
||||
public ContestGallery() {}
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.UUID)
|
||||
@Column(name = "id")
|
||||
public int getId() { return id; }
|
||||
public ContestGallery setId(int id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Column(name = "contest_name")
|
||||
public String getContestName() { return contestName; }
|
||||
public ContestGallery setContestName(String contestName) {
|
||||
this.contestName = contestName;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Column(name = "created")
|
||||
public Timestamp getCreated() { return created; }
|
||||
public ContestGallery setCreated(Timestamp created) {
|
||||
this.created = created;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Column(name = "contest_close")
|
||||
public Timestamp getContestClose() { return contestClose; }
|
||||
public ContestGallery setContestClose(Timestamp contestClose) {
|
||||
this.contestClose = contestClose;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Column(name = "entry_limit")
|
||||
public int getEntryLimit() { return entryLimit; }
|
||||
public ContestGallery setEntryLimit(int entryLimit) {
|
||||
this.entryLimit = entryLimit;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Column(name = "can_replace_entries")
|
||||
public boolean canReplaceEntries() { return canReplaceEntries; }
|
||||
public ContestGallery setReplaceEntries(boolean canReplaceEntries) {
|
||||
this.canReplaceEntries = canReplaceEntries;
|
||||
return this;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user