export const schema = { "models" : { "Message" : { "name" : "Message" , "fields" : { "id" : { "name" : "id" , "isArray" : false , "type" : "ID" , "isRequired" : true , "attributes" : [ ] } , "content" : { "name" : "content" , "isArray" : false , "type" : "String" , "isRequired" : false , "attributes" : [ ] } , "userID" : { "name" : "userID" , "isArray" : false , "type" : "ID" , "isRequired" : false , "attributes" : [ ] } , "chatroomID" : { "name" : "chatroomID" , "isArray" : false , "type" : "ID" , "isRequired" : false , "attributes" : [ ] } , "image" : { "name" : "image" , "isArray" : false , "type" : "String" , "isRequired" : false , "attributes" : [ ] } , "audio" : { "name" : "audio" , "isArray" : false , "type" : "String" , "isRequired" : false , "attributes" : [ ] } , "status" : { "name" : "status" , "isArray" : false , "type" : { "enum" : "MessageStatus" } , "isRequired" : false , "attributes" : [ ] } , "replyToMessageID" : { "name" : "replyToMessageID" , "isArray" : false , "type" : "ID" , "isRequired" : false , "attributes" : [ ] } , "forUserId" : { "name" : "forUserId" , "isArray" : false , "type" : "ID" , "isRequired" : false , "attributes" : [ ] } , "createdAt" : { "name" : "createdAt" , "isArray" : false , "type" : "AWSDateTime" , "isRequired" : false , "attributes" : [ ] , "isReadOnly" : true } , "updatedAt" : { "name" : "updatedAt" , "isArray" : false , "type" : "AWSDateTime" , "isRequired" : false , "attributes" : [ ] , "isReadOnly" : true } } , "syncable" : true , "pluralName" : "Messages" , "attributes" : [ { "type" : "model" , "properties" : { } } , { "type" : "key" , "properties" : { "name" : "byUser" , "fields" : [ "userID" ] } } , { "type" : "key" , "properties" : { "name" : "byChatRoom" , "fields" : [ "chatroomID" ] } } , { "type" : "auth" , "properties" : { "rules" : [ { "allow" : "public" , "operations" : [ "create" , "update" , "delete" , "read" ] } ] } } ] } , "ChatRoom" : { "name" : "ChatRoom" , "fields" : { "id" : { "name" : "id" , "isArray" : false , "type" : "ID" , "isRequired" : true , "attributes" : [ ] } , "newMessages" : { "name" : "newMessages" , "isArray" : false , "type" : "Int" , "isRequired" : false , "attributes" : [ ] } , "LastMessage" : { "name" : "LastMessage" , "isArray" : false , "type" : { "model" : "Message" } , "isRequired" : false , "attributes" : [ ] , "association" : { "connectionType" : "BELONGS_TO" , "targetName" : "chatRoomLastMessageId" } } , "Messages" : { "name" : "Messages" , "isArray" : true , "type" : { "model" : "Message" } , "isRequired" : false , "attributes" : [ ] , "isArrayNullable" : true , "association" : { "connectionType" : "HAS_MANY" , "associatedWith" : "chatroomID" } } , "ChatRoomUsers" : { "name" : "ChatRoomUsers" , "isArray" : true , "type" : { "model" : "ChatRoomUser" } , "isRequired" : false , "attributes" : [ ] , "isArrayNullable" : true , "association" : { "connectionType" : "HAS_MANY" , "associatedWith" : "chatroom" } } , "Admin" : { "name" : "Admin" , "isArray" : false , "type" : { "model" : "User" } , "isRequired" : false , "attributes" : [ ] , "association" : { "connectionType" : "BELONGS_TO" , "targetName" : "chatRoomAdminId" } } , "name" : { "name" : "name" , "isArray" : false , "type" : "String" , "isRequired" : false , "attributes" : [ ] } , "imageUri" : { "name" : "imageUri" , "isArray" : false , "type" : "String" , "isRequired" : false , "attributes" : [ ] } , "createdAt" : { "name" : "createdAt" , "isArray" : false , "type" : "AWSDateTime" , "isRequired" : false , "attributes" : [ ] , "isReadOnly" : true } , "updatedAt" : { "name" : "updatedAt" , "isArray" : false , "type" : "AWSDateTime" , "isRequired" : false , "attributes" : [ ] , "isReadOnly" : true } } , "syncable" : true , "pluralName" : "ChatRooms" , "attributes" : [ { "type" : "model" , "properties" : { } } , { "type" : "auth" , "properties" : { "rules" : [ { "allow" : "public" , "operations" : [ "create" , "update" , "delete" , "read" ] } ] } } ] } , "ChatRoomUser" : { "name" : "ChatRoomUser" , "fields" : { "id" : { "name" : "id" , "isArray" : false , "type" : "ID" , "isRequired" : true , "attributes" : [ ] } , "chatroom" : { "name" : "chatroom" , "isArray" : false , "type" : { "model" : "ChatRoom" } , "isRequired" : true , "attributes" : [ ] , "association" : { "connectionType" : "BELONGS_TO" , "targetName" : "chatroomID" } } , "user" : { "name" : "user" , "isArray" : false , "type" : { "model" : "User" } , "isRequired" : true , "attributes" : [ ] , "association" : { "connectionType" : "BELONGS_TO" , "targetName" : "userID" } } , "createdAt" : { "name" : "createdAt" , "isArray" : false , "type" : "AWSDateTime" , "isRequired" : false , "attributes" : [ ] , "isReadOnly" : true } , "updatedAt" : { "name" : "updatedAt" , "isArray" : false , "type" : "AWSDateTime" , "isRequired" : false , "attributes" : [ ] , "isReadOnly" : true } } , "syncable" : true , "pluralName" : "ChatRoomUsers" , "attributes" : [ { "type" : "model" , "properties" : { "queries" : null } } , { "type" : "key" , "properties" : { "name" : "byChatRoom" , "fields" : [ "chatroomID" , "userID" ] } } , { "type" : "key" , "properties" : { "name" : "byUser" , "fields" : [ "userID" , "chatroomID" ] } } , { "type" : "auth" , "properties" : { "rules" : [ { "allow" : "public" , "operations" : [ "create" , "update" , "delete" , "read" ] } , { "allow" : "public" , "operations" : [ "create" , "update" , "delete" , "read" ] } ] } } ] } , "User" : { "name" : "User" , "fields" : { "id" : { "name" : "id" , "isArray" : false , "type" : "ID" , "isRequired" : true , "attributes" : [ ] } , "name" : { "name" : "name" , "isArray" : false , "type" : "String" , "isRequired" : true , "attributes" : [ ] } , "imageUri" : { "name" : "imageUri" , "isArray" : false , "type" : "String" , "isRequired" : false , "attributes" : [ ] } , "status" : { "name" : "status" , "isArray" : false , "type" : "String" , "isRequired" : false , "attributes" : [ ] } , "Messages" : { "name" : "Messages" , "isArray" : true , "type" : { "model" : "Message" } , "isRequired" : false , "attributes" : [ ] , "isArrayNullable" : true , "association" : { "connectionType" : "HAS_MANY" , "associatedWith" : "userID" } } , "chatrooms" : { "name" : "chatrooms" , "isArray" : true , "type" : { "model" : "ChatRoomUser" } , "isRequired" : false , "attributes" : [ ] , "isArrayNullable" : true , "association" : { "connectionType" : "HAS_MANY" , "associatedWith" : "user" } } , "lastOnlineAt" : { "name" : "lastOnlineAt" , "isArray" : false , "type" : "AWSTimestamp" , "isRequired" : false , "attributes" : [ ] } , "publicKey" : { "name" : "publicKey" , "isArray" : false , "type" : "String" , "isRequired" : false , "attributes" : [ ] } , "createdAt" : { "name" : "createdAt" , "isArray" : false , "type" : "AWSDateTime" , "isRequired" : false , "attributes" : [ ] , "isReadOnly" : true } , "updatedAt" : { "name" : "updatedAt" , "isArray" : false , "type" : "AWSDateTime" , "isRequired" : false , "attributes" : [ ] , "isReadOnly" : true } } , "syncable" : true , "pluralName" : "Users" , "attributes" : [ { "type" : "model" , "properties" : { } } , { "type" : "auth" , "properties" : { "rules" : [ { "allow" : "public" , "operations" : [ "create" , "update" , "delete" , "read" ] } ] } } ] } } , "enums" : { "MessageStatus" : { "name" : "MessageStatus" , "values" : [ "SENT" , "DELIVERED" , "READ" ] } } , "nonModels" : { } , "version" : "b79e86a6e122fd2d5af4a03d6f673ce3" } ;