18 lines
470 B
MySQL
18 lines
470 B
MySQL
|
-- +goose Up
|
||
|
-- +goose StatementBegin
|
||
|
CREATE TABLE IF NOT EXISTS CardLocation (
|
||
|
Id INT AUTO_INCREMENT PRIMARY KEY,
|
||
|
CardPrintingId VARCHAR(37) NULL,
|
||
|
FOREIGN KEY (CardPrintingId) REFERENCES CardPrinting(Id),
|
||
|
StorageAreaId INT NOT NULL,
|
||
|
FOREIGN KEY (StorageAreaId) REFERENCES StorageArea(Id),
|
||
|
Position INT NULL,
|
||
|
CardtraderProductId INT NULL
|
||
|
);
|
||
|
-- +goose StatementEnd
|
||
|
|
||
|
-- +goose Down
|
||
|
-- +goose StatementBegin
|
||
|
DROP TABLE IF EXISTS CardLocation;
|
||
|
-- +goose StatementEnd
|