package com.sourcefellows.patterns.outbox;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.Id;

@Entity
public class Message {

    @Id
    @GeneratedValue
    private long id;

    @Column(nullable = false)
    private String text;

    public Message(String text) {
        this.text = text;
    }

    public Message() {

    }
}
