完成匹配、跟价、权限部分
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
CREATE TABLE IF NOT EXISTS biz_price_track_shop_candidate (
|
||||
id BIGINT PRIMARY KEY AUTO_INCREMENT COMMENT 'primary key',
|
||||
user_id BIGINT NOT NULL COMMENT 'user id',
|
||||
shop_name VARCHAR(255) NOT NULL COMMENT 'normalized shop name',
|
||||
created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'created time',
|
||||
UNIQUE KEY uk_user_shop (user_id, shop_name),
|
||||
KEY idx_user_id (user_id)
|
||||
) COMMENT='price track candidate shops';
|
||||
|
||||
CREATE TABLE IF NOT EXISTS biz_price_track_country_pref (
|
||||
user_id BIGINT NOT NULL PRIMARY KEY COMMENT 'user id',
|
||||
country_codes_json VARCHAR(256) NOT NULL COMMENT 'country code order json',
|
||||
updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'updated time'
|
||||
) COMMENT='price track country preference';
|
||||
Reference in New Issue
Block a user