import { PLACEHOLDER_AUTH_MODELS } from '#src/placeholder-auth/constants/model-names.js';
export function createAuthModels({ authFeatureRef, }) {
    return {
        user: {
            name: PLACEHOLDER_AUTH_MODELS.user,
            featureRef: authFeatureRef,
            model: {
                fields: [
                    {
                        name: 'id',
                        type: 'uuid',
                        options: { genUuid: true },
                    },
                    {
                        name: 'email',
                        type: 'string',
                        isOptional: true,
                    },
                ],
                primaryKeyFieldRefs: ['id'],
                uniqueConstraints: [
                    {
                        fields: [{ fieldRef: 'email' }],
                    },
                ],
            },
            graphql: {
                objectType: {
                    enabled: true,
                    fields: ['id', 'email'],
                },
            },
        },
    };
}
//# sourceMappingURL=models.js.map