package com.moac.android.opensecretsanta.model;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.field.ForeignCollectionField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName = Group.TABLE_NAME)
public class Group extends PersistableObject {

    public static final String TABLE_NAME =  "groups";

    public static interface Columns extends PersistableObject.Columns {
        public static final String NAME_COLUMN = "NAME";
        public static final String MESSAGE_COLUMN = "MESSAGE";
    }

    @DatabaseField(columnName = Columns.NAME_COLUMN, unique = true, canBeNull = false)
    private String mName;

    @DatabaseField(columnName = Columns.MESSAGE_COLUMN)
    private String mMessage = "";

    @ForeignCollectionField(eager = false)
    private java.util.Collection<Member> mMembers;

    public String getName() { return mName; }
    public void setName(String _name) { mName = _name; }

    public void setMessage(String _message) { mMessage = _message; }
    public String getMessage() { return mMessage; }

}

@@ -532,14 +532,76 @@
 E%22;%0A
+        public static final String CREATED_AT = %22CREATED_AT%22;%0A
     %7D%0A
-
 %0A   
@@ -798,24 +798,107 @@
 sage = %22%22;%0A%0A
+    @DatabaseField(columnName =  Columns.CREATED_AT)%0A    private long mCreatedAt;%0A%0A
     @Foreign
@@ -1022,24 +1022,24 @@
 rn mName; %7D%0A
-
     public v
@@ -1080,24 +1080,154 @@
 = _name; %7D%0A%0A
+    public long getCreatedAt() %7B return mCreatedAt; %7D%0A    public void setCreatedAt(long _createdAt) %7B mCreatedAt = _createdAt; %7D%0A%0A
     public v

Add CREATED_AT to Group table