Last active
May 22, 2019 06:53
-
-
Save vmarcinko/023cb3ca74dc516da9ebdd40042ed89c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Entity | |
@Table(name = "sms_message", indexes = @Index(name = "idx_sms_msg_queue_polling_fields", columnList = "next_attempt_time")) | |
public class SmsMessage { | |
@Id | |
@Column(name = "id", nullable = false) | |
@GeneratedValue | |
private Long id; | |
@Column(name = "uid", nullable = false, unique = true) | |
private String uid; // app-assigned unique ID | |
@Column(name = "from_address", nullable = false) | |
private String fromAddress; | |
@Column(name = "to_address", nullable = false) | |
private String toAddress; | |
@Column(name = "text", nullable = false) | |
private String text; | |
private QueueingState sendingState = new QueueingState(); | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment