mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-18 04:36:32 +02:00
feat: Implement analytics, media management, and third-party service configurations with new settings pages.
This commit is contained in:
1 parent
cb0ff8a0ea
commit
82befb2264
5 files changed
+354
-357
No files matched your search
+1
-7
@@ -113,7 +113,6 @@ export type InsertUserPagePermission = z.infer<typeof insertUserPagePermissionSc
|
||||
|
||||
export const cloudinaryConfig = pgTable("cloudinary_config", {
|
||||
id: varchar("id").primaryKey().default(sql`gen_random_uuid()`),
|
||||
userId: varchar("user_id").notNull().unique().references(() => users.id, { onDelete: "cascade" }),
|
||||
cloudName: text("cloud_name").notNull(),
|
||||
apiKey: text("api_key").notNull(),
|
||||
apiSecret: text("api_secret").notNull(),
|
||||
@@ -267,12 +266,7 @@ export const usersRelations = relations(users, ({ many, one }) => ({
|
||||
freesoundConfig: one(freesoundConfig),
|
||||
}));
|
||||
|
||||
export const cloudinaryConfigRelations = relations(cloudinaryConfig, ({ one }) => ({
|
||||
user: one(users, {
|
||||
fields: [cloudinaryConfig.userId],
|
||||
references: [users.id],
|
||||
}),
|
||||
}));
|
||||
// Pas de relation User pour CloudinaryConfig (maintenant global)
|
||||
|
||||
export const openrouterConfigRelations = relations(openrouterConfig, ({ one }) => ({
|
||||
user: one(users, {
|
||||
|
||||
Reference in new issue
Block a user