𓁟 host1.bitchan.one

𓀐 @aLxRX4Jb: >>>Read the sticky: >GNU/Linux questions: >>>/g/fglt >Windows questions: >>>/g/fwt >Programming questions: >>>/g/dpt >Web development: >>>/g/wdg >PC building? In this market?! >>>/g/pcbg >Laptops designed for Serious Business™: >>>/g/tpg >Server questions: >>>/g/hsg >Cheap electronics: >>>/g/csg >Need to phone a friend? >>>/g/spg >Stupid questions? >>>/g/sqt

Can someone tell me where the syntax error is? Says 'Error creating table error: syntax error at or near "("' CREATE TABLE IF NOT EXISTS users ( id SERIAL PRIMARY KEY, username VARCHAR(16) UNIQUE, premium BOOLEAN, region place, steam_id INTEGER UNIQUE, gold NUMERIC, gems NUMERIC, boss_slayer BOOLEAN, chaos_slayer BOOLEAN, party TEXT[], guild_id SERIAL, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, FOREIGN_KEY(guild_id) REFERENCES guilds(id) ); CREATE TABLE IF NOT EXISTS guilds ( id SERIAL PRIMARY KEY, owner_id SERIAL references users(id), title VARCHAR(32) UNIQUE, short VARCHAR(5) UNIQUE, gold NUMERIC, members SERIAL[], created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, FOREIGN_KEY(members) REFERENCES users(id) );

⧖expiring0/1 kept2w ago

𓀐 @LAbFvEyL

⏱ 2w 👍 0

⬆ upvote 0