summaryrefslogtreecommitdiff
path: root/migrations/1_create_masses/up.sql
diff options
context:
space:
mode:
Diffstat (limited to 'migrations/1_create_masses/up.sql')
-rw-r--r--migrations/1_create_masses/up.sql12
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
+)