AI Resource Pro / website / scripts / create-initial-categories.sql
| 1 | -- Insert initial categories if they don't exist |
| 2 | INSERT INTO public.categories (name, slug, icon, description) |
| 3 | VALUES |
| 4 | ('AI Basics', 'ai-basics', 'Brain', 'Fundamental concepts and principles of Artificial Intelligence'), |
| 5 | ('Machine Learning', 'machine-learning', 'Code2', 'Machine Learning concepts, algorithms, and applications'), |
| 6 | ('Beginners', 'beginners', 'GraduationCap', 'Content suitable for those new to AI and ML'), |
| 7 | ('Development', 'development', 'Code', 'AI development and programming topics'), |
| 8 | ('Tools', 'tools', 'Wrench', 'AI tools and utilities'), |
| 9 | ('News', 'news', 'Newspaper', 'Latest updates in AI') |
| 10 | ON CONFLICT (name) DO NOTHING; |