     "target_id" int8 NOT NULL,
     "actor_id" int8 NOT NULL,
     "type_constant" varchar(100) NOT NULL COLLATE "default",
-    "updated_at" timestamp(6) WITH TIME ZONE
+    "updated_at" timestamp(6) WITH TIME ZONE NOT NULL DEFAULT now()
 )
 WITH (OIDS=FALSE);
 -- ALTER TABLE "api"."activity" OWNER TO "socialapplication";
-GRANT SELECT, INSERT, DELETE ON "api"."activity" OWNER TO "socialapplication";
+GRANT SELECT, INSERT, DELETE ON "api"."activity" TO "socialapplication";
 
 -- ----------------------------
 --  Table structure for notification_subscription

    "account_id" int8 NOT NULL,
    "notification_content_id" int8 NOT NULL,
    "type_constant" varchar(100) NOT NULL COLLATE "default",
    "added_at" timestamp(6) WITH TIME ZONE
)
WITH (OIDS=FALSE);
-- ALTER TABLE "api"."notification_subscription" OWNER TO "socialapplication";

CREATE TABLE "api"."notification_content" (
    "id" int8 NOT NULL DEFAULT nextval('notification_content_id_seq'::regclass),
    "target_id" int8 NOT NULL,
    "type_constant" varchar(100) NOT NULL COLLATE "default",
    "created_at" timestamp(6) WITH TIME ZONE NOT NULL DEFAULT now()
)
WITH (OIDS=FALSE);
-- ALTER TABLE "api"."notification_content" OWNER TO "socialapplication";
