Skip to content

Instantly share code, notes, and snippets.

@legarnica
Created August 9, 2020 21:14
Show Gist options
  • Save legarnica/dbaaaefff6c3707d7f62a5ff1a0c0aac to your computer and use it in GitHub Desktop.
Save legarnica/dbaaaefff6c3707d7f62a5ff1a0c0aac to your computer and use it in GitHub Desktop.
esquema para el proyecto final JFS
-- descomentar línea de abajo, después de la primera ejecución.
-- DROP table arriendo_quincho; DROP table departamento; DROP table estado; DROP table hibernate_sequence;
-- arriendo_quincho definition
CREATE TABLE arriendo_quincho (
id integer not null,
fecha date_time,
departamento_id integer,
estado_id integer,
primary key (id)
);
-- departamento definition
CREATE TABLE departamento (
id integer not null,
numero integer,
primary key (id)
);
-- estado definition
CREATE TABLE estado (
id integer not null,
descripcion varchar,
primary key (id)
);
-- hibernate_sequence definition
CREATE TABLE hibernate_sequence (
next_val bigint
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment