diff options
Diffstat (limited to 'migrations/1_create_masses/up.sql')
-rw-r--r-- | migrations/1_create_masses/up.sql | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/migrations/1_create_masses/up.sql b/migrations/1_create_masses/up.sql new file mode 100644 index 0000000..c0b6890 --- /dev/null +++ b/migrations/1_create_masses/up.sql @@ -0,0 +1,12 @@ +-- Your SQL goes here +CREATE TABLE masses ( + id SERIAL PRIMARY KEY, + name VARCHAR NOT NULL, + pos_x FLOAT NOT NULL, + pos_y DOUBLE PRECISION NOT NULL, + pos_z DOUBLE PRECISION NOT NULL, + vel_x DOUBLE PRECISION NOT NULL, + vel_y DOUBLE PRECISION NOT NULL, + vel_z DOUBLE PRECISION NOT NULL, + type_data JSONB NOT NULL +) |