在线画ER图

在线画ER图 https://dbdiagram.io/d/6147f64a825b5b0146097d05

Table t_event {
id integer [pk]
event_code varchar [not null, unique]

}

Table t_integral {
id integer [pk]
integral_code varchar [not null, unique]
event_code varchar [not null, unique]

}

Table t_integral_consumer_record {
id integer [pk]
integral_code varchar [not null, unique]
consumer_integral_code type [not null]

}

Table t_integral_order {
id integer [pk]
integral_code type [not null]

}

ref {
t_event.event_code > t_integral.event_code
}

ref {
t_integral_consumer_record.integral_code > t_integral.integral_code
}

ref {
t_integral_consumer_record.consumer_integral_code > t_integral.integral_code
}

ref {
t_integral_order.integral_code > t_integral.integral_code
}

你可能感兴趣的:(java)