feat: publish events for products

This commit is contained in:
Vlad Stan 2023-03-03 11:08:55 +02:00
parent f13d5ec7ff
commit 54978c847f
6 changed files with 117 additions and 24 deletions

View file

@ -37,17 +37,17 @@ async def m001_initial(db):
Initial products table.
"""
await db.execute(
f"""
"""
CREATE TABLE nostrmarket.products (
user_id TEXT NOT NULL,
id TEXT PRIMARY KEY,
stall_id TEXT NOT NULL,
name TEXT NOT NULL,
category_list TEXT DEFAULT '[]',
description TEXT,
images TEXT DEFAULT '[]',
price REAL NOT NULL,
quantity INTEGER NOT NULL
quantity INTEGER NOT NULL,
category_list TEXT DEFAULT '[]',
meta TEXT NOT NULL DEFAULT '{}'
);
"""
)