Skip to content

Instantly share code, notes, and snippets.

@theodesp theodesp/tables.sql
Created Dec 7, 2019

What would you like to do?
create table product
id INTEGER not null
primary key,
price INTEGER not null
create table product_translation
id INTEGER not null
primary key
translatable_id INTEGER default NULL,
name VARCHAR(255) not null,
description VARCHAR(255) not null,
locale VARCHAR(255) not null
create index IDX_1846DB702C2AC5D3
on product_translation (translatable_id);
create unique index product_translation_unique_translation
on product_translation (translatable_id, locale);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.