package com.example.dateplanner.models.entities;

import jakarta.persistence.Table;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Column;
import java.time.LocalDateTime;
import java.util.UUID;

@Data
@NoArgsConstructor
@Table(name = "organizations")
public class Organization {
    @Id
    private UUID uuid;
    private String logo;
    private String title;
    private String description; // хтмл код
    @Column("owner_uuid")
    private UUID ownerUuid;

    @Column("expires_at")
    private LocalDateTime expiresAt;

    @Column("created_at")
    private LocalDateTime createdAt;
    @Column("updated_at")
    private LocalDateTime updatedAt;
}
