Home > database >  [database] [discussion] want to save this kind of frame layout, how to design database?
[database] [discussion] want to save this kind of frame layout, how to design database?

Time:10-10

This is a small item management program, I also want to do a similar function (in Java development, MySQL database).
On here you can customize the layout of the furniture, the default is a 2 x2 grid, to around/split up and down, merger or select multiple grid, as shown in figure, such as split into such,



So when the database to save the layout, the data table how to design?
I think a simple form at the beginning, then save row row and column column line... Later found and split combination function... So at that time don't know how to design...

I hope you can provide a train of thought?
Be very grateful!

CodePudding user response:

This problem should be considered is the front desk, if you want to exist database, can be put to an object's width, high, coordinates,

CodePudding user response:

The grid rather then a second layout, need to keep the reading, and I looked at it carefully, as if the most into 8 x 8 small grid, can choose any N * M grid combined into large lattice...
If according to the initial coordinate, wide, high is feasible to store... But it may need to verify the total number of grid conformed to the specification, rendering is difficult when read...
I try to go.
  • Related