19 lines
507 B
SQL
19 lines
507 B
SQL
drop table if exists b_meal_dish_step;
|
|
|
|
create table b_meal_dish_step (
|
|
id bigint primary key,
|
|
family_id bigint not null,
|
|
dish_id bigint not null,
|
|
step_number int not null,
|
|
description varchar(1024) default '',
|
|
image_file_key varchar(512) default '',
|
|
sort_number int not null default 0,
|
|
create_time timestamp,
|
|
update_time timestamp,
|
|
create_by bigint,
|
|
update_by bigint
|
|
);
|
|
|
|
create index idx_b_meal_dish_step_dish
|
|
on b_meal_dish_step (family_id, dish_id, sort_number, step_number, id);
|