mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-06 03:47:13 +00:00
The save is stored as the client sent it in the new ugc_unsplit table, and each model split from it points back to it (ugc.unsplit_id), so the whole build can be looked at or restored later. A save is kept while any model split from it exists: deleting models removes saves no model points to any more, and deleting a character removes its saves. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
12 lines
507 B
SQL
12 lines
507 B
SQL
-- Every brick by brick save as the client sent it (sd0), before the server splits it into one model per group of
|
|
-- connected bricks; each model made from it points back to it
|
|
CREATE TABLE IF NOT EXISTS ugc_unsplit (
|
|
id BIGINT NOT NULL PRIMARY KEY,
|
|
account_id INTEGER NOT NULL REFERENCES accounts(id),
|
|
character_id BIGINT NOT NULL REFERENCES charinfo(id),
|
|
lxfml BLOB NOT NULL,
|
|
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
|
);
|
|
|
|
ALTER TABLE ugc ADD COLUMN unsplit_id BIGINT NULL DEFAULT NULL;
|