// models/user.js module.exports = (sequelize, DataTypes) => const User = sequelize.define('User', id: type: DataTypes.UUID, primaryKey: true , username: DataTypes.STRING, kingdomLevel: type: DataTypes.INTEGER, defaultValue: 1 , gold: type: DataTypes.INTEGER, defaultValue: 0 , questProgress: DataTypes.JSONB, // questId: "completed" ); return User; ; # GraphQL schema (excerpt) type Kingdom level: Int! gold: Int! structures: [Structure!]!

If you're considering using AmKingdomCom, I recommend:

Amkingdomcom [ REAL ◉ ]

// models/user.js module.exports = (sequelize, DataTypes) => const User = sequelize.define('User', id: type: DataTypes.UUID, primaryKey: true , username: DataTypes.STRING, kingdomLevel: type: DataTypes.INTEGER, defaultValue: 1 , gold: type: DataTypes.INTEGER, defaultValue: 0 , questProgress: DataTypes.JSONB, // questId: "completed" ); return User; ; # GraphQL schema (excerpt) type Kingdom level: Int! gold: Int! structures: [Structure!]!

If you're considering using AmKingdomCom, I recommend: amkingdomcom