import { RATE_LIMIT_MODELS } from '#src/rate-limit/constants/model-names.js';
export function createRateLimitModels(featureRef) {
    return {
        rateLimiterFlexible: {
            name: RATE_LIMIT_MODELS.rateLimiterFlexible,
            featureRef,
            model: {
                fields: [
                    {
                        name: 'key',
                        type: 'string',
                    },
                    {
                        name: 'points',
                        type: 'int',
                    },
                    {
                        name: 'expire',
                        type: 'dateTime',
                        isOptional: true,
                    },
                ],
                primaryKeyFieldRefs: ['key'],
            },
        },
    };
}
//# sourceMappingURL=models.js.map