fat: add create product logic
This commit is contained in:
parent
5ad070684d
commit
5328ce170c
10 changed files with 446 additions and 17 deletions
|
|
@ -39,12 +39,13 @@ async def m001_initial(db):
|
|||
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,
|
||||
categories TEXT,
|
||||
category_list TEXT DEFAULT '[]',
|
||||
description TEXT,
|
||||
images TEXT NOT NULL DEFAULT '[]',
|
||||
images TEXT DEFAULT '[]',
|
||||
price REAL NOT NULL,
|
||||
quantity INTEGER NOT NULL
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue