import ImageVisibilityType from '../models/type/image_visibility.js';

const initializeImageTypes = async () => {
    const visibilities = [
        'everyone',
        'friends',
        'adults',
        'friends-and-adults',
        'selected-users',
    ];
    for (const visibility of visibilities) {
        await ImageVisibilityType.findOrCreate({
            where: { description: visibility },
            defaults: { description: visibility }
        });
    }
}

export default initializeImageTypes;
