Add models based on Db tables

This commit is contained in:
2025-06-06 12:19:14 +03:30
parent 86ca58481f
commit e9a6789dfa
10 changed files with 381 additions and 1 deletions
@@ -0,0 +1,29 @@
package org.to.telegramfinalproject.Models;
import java.time.LocalDateTime;
import java.util.UUID;
public class ChannelSubscribe {
private UUID channel_id;
private UUID user_id;
private LocalDateTime join_at;
public ChannelSubscribe(UUID channel_id, UUID user_id, String role){
this.channel_id = channel_id;
this.user_id = user_id;
this.join_at = LocalDateTime.now();
}
public void setChannel_id(UUID group_id){this.channel_id = group_id;}
public void setUser_id(UUID user_id){this.user_id = user_id;}
public void setJoin_at(LocalDateTime join_at){this.join_at = join_at;}
public UUID getChannel_id(){return this.channel_id;}
public UUID getUser_id(){return this.user_id;}
public LocalDateTime getJoin_at(){return this.join_at;}
}