Tenkes
Tenkes
Explore posts from servers
DTDrizzle Team
Created by Tenkes on 9/22/2024 in #help
PostgresError: foreign key constraint "product_categories_category_id_fk" cannot be implemented
wdym?
14 replies
DTDrizzle Team
Created by Tenkes on 9/22/2024 in #help
PostgresError: foreign key constraint "product_categories_category_id_fk" cannot be implemented
I can't add { onDelete: 'cascade' } if I'm using relations?
14 replies
DTDrizzle Team
Created by Tenkes on 9/22/2024 in #help
PostgresError: foreign key constraint "product_categories_category_id_fk" cannot be implemented
omg that's just amazing.. THANKS!
14 replies
DTDrizzle Team
Created by Tenkes on 9/22/2024 in #help
PostgresError: foreign key constraint "product_categories_category_id_fk" cannot be implemented
Yep, that worked! Thanks a bunch, I didn't even know relations was a thing lol
14 replies
DTDrizzle Team
Created by Tenkes on 9/22/2024 in #help
PostgresError: foreign key constraint "product_categories_category_id_fk" cannot be implemented
So my schema.ts looks something like:
const id = uuid('id').primaryKey().defaultRandom().notNull()

export const category = pgTable('category', {
id,
name: text('name').notNull()
})

export const products = pgTable('product', {
id,
// ...
})
const id = uuid('id').primaryKey().defaultRandom().notNull()

export const category = pgTable('category', {
id,
name: text('name').notNull()
})

export const products = pgTable('product', {
id,
// ...
})
14 replies
DTDrizzle Team
Created by Tenkes on 9/22/2024 in #help
PostgresError: foreign key constraint "product_categories_category_id_fk" cannot be implemented
I already did, just didn't include it here: const id = uuid('id').primaryKey().defaultRandom().notNull()
14 replies
DTDrizzle Team
Created by Tenkes on 9/22/2024 in #help
PostgresError: foreign key constraint "product_categories_category_id_fk" cannot be implemented
14 replies
KPCKevin Powell - Community
Created by Muhct on 7/11/2024 in #front-end
Px, em, or rem?
Eh I just use rem for everything 😂
15 replies
KPCKevin Powell - Community
Created by lajkmi. on 7/7/2024 in #front-end
API_KEY Problem
Also not sure if you put your API_KEY there just for demo/debugging purposes but just in case I'll warn you not to do that since everyone will be able to access it. Instead you should create ".env" file where you will store it something like this:
API_KEY=my_super_secret_api_key
API_KEY=my_super_secret_api_key
And then access it through that API_KEY variable
12 replies
KPCKevin Powell - Community
Created by lajkmi. on 7/7/2024 in #front-end
API_KEY Problem
Yeah well @lajkmi. you cannot access it like that. You have to fetch it like you already did and then log data to the console
12 replies
KPCKevin Powell - Community
Created by lajkmi. on 7/7/2024 in #front-end
API_KEY Problem
I don't get why are you getting error message like that
12 replies
KPCKevin Powell - Community
Created by lajkmi. on 7/7/2024 in #front-end
API_KEY Problem
Wait are you trying to access that page directly lol? Like you typed URL in your browser?
12 replies
KPCKevin Powell - Community
Created by empty on 7/4/2024 in #front-end
problem with input type number
Not a function. So just .valueAsNumber
8 replies
KPCKevin Powell - Community
Created by lajkmi. on 7/7/2024 in #front-end
API_KEY Problem
Well that shouldn't happen. Try refreshing, restarting server etc?
12 replies
KPCKevin Powell - Community
Created by lajkmi. on 7/7/2024 in #front-end
API_KEY Problem
Line 23. it should be headers not header
12 replies
KPCKevin Powell - Community
Created by Tenkes on 6/28/2024 in #front-end
Problem with horizontal scroll
Yess!! That's exactly what I need! Thank you so much!! 😄
10 replies
KPCKevin Powell - Community
Created by Tenkes on 6/28/2024 in #front-end
Problem with horizontal scroll
I don't think so lol
10 replies
KPCKevin Powell - Community
Created by Tenkes on 6/28/2024 in #front-end
Problem with horizontal scroll
Well I'm basically trying to recreate Instagram's story list. ONE row of stories that can overflow horizontally, and of then of course you can scroll to see other stories. Yes actually there is a reason right-hand column is placed inside middle one. The reason why is the way Next.js (which I'm using) routing works. So I basically made left column global, so it's seen on all pages and only right column is... "dynamic". You can see live version of this app on bt-snapgram.vercel.app and you'll see if you navigate to other pages left column (left sidebar) will always stay where it is. As for you solution... for some reason I see 3 rows of stories? And you have horizontal scrolling on <body> on smaller screens, which i also has problems with
10 replies
KPCKevin Powell - Community
Created by Tenkes on 6/28/2024 in #front-end
Problem with horizontal scroll
Oh and right sidebar should have flex-shrink: 0 so it doesn't shrink.
10 replies
KPCKevin Powell - Community
Created by risha on 6/12/2024 in #front-end
css question
or flex with align-items: stretch
5 replies