I have a schema like this
type Store @model @key(name: "storesByDate", fields: ["type", "createdAt"], queryField: "storesByDate") @auth(rules: [{allow: private, operations: [read]}, {allow: groups, groups: ["Administrators"], operations: [read, create, update, delete]}]) {
id: ID!
name: String!
type: String!
description: String
createdAt: String!
Products: [Products] @connection(keyName: "byStore", fields: ["id"])
}
I added amplify to my project and it generated models like this with these errors

I don't think I am supposed to edit these files as they are auto generated. But can't understand why it generating wrong codes?
Please help