Skip to content

Instantly share code, notes, and snippets.

@joedayz
Created July 19, 2018 05:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save joedayz/7c36d812349607492384e88d0b3c0414 to your computer and use it in GitHub Desktop.
Save joedayz/7c36d812349607492384e88d0b3c0414 to your computer and use it in GitHub Desktop.
entity Reserva{
codigo String,
fechaHoraInicio ZonedDateTime,
fechaHoraFin ZonedDateTime,
espacioAsignado Integer,
estadoEspacioAsignado String,
estadoReserva String
}
entity Tarifa{
tarifaAntigua BigDecimal,
tarifaNueva BigDecimal,
observacionTarifa String maxlength(200),
tiempoVigenciaTarifaActualizada Integer,
estado Boolean,
fechaCreacion Instant,
fechaActualizacion Instant,
}
entity Playa{
codigo String required maxlength(5),
direccion String,
distrito String,
longitud String,
latitud String,
espacio1 Integer,
espacio2 Integer,
espacio3 Integer,
espacio4 Integer,
espacio5 Integer,
espacio6 Integer,
espacio7 Integer,
espacio8 Integer,
espacio9 Integer,
espacio10 Integer,
espacio11 Integer,
espacio12 Integer,
espacio13 Integer,
espacio14 Integer,
espacio15 Integer,
}
entity Afluencia{
codigo String required maxlength(10),
fechaMovimiento Instant,
permanencia15Minutos Integer,
permanencia30Minutos Integer,
permanencia45Minutos Integer,
permanencia1Hora Integer,
permanencia2Hora Integer,
permanencia3Hora Integer,
permanencia4Hora Integer,
}
entity Marca{
codigo String required maxlength(5),
marca String required maxlength(200),
estado Boolean
}
entity Modelo{
codigo String required maxlength(5),
modelo String required maxlength(200),
estado Boolean
}
entity Vehiculo {
placa String required maxlength(7),
anho Integer,
estado Boolean
}
entity TipoVehiculo{
codigo String required maxlength(5),
tipo String required maxlength(200),
estado Boolean
}
entity Conductor{
dni String required maxlength(8),
password String,
nombre String,
fechaNacimiento LocalDate,
email String,
celular String
}
relationship OneToOne {
Vehiculo{marca(marca)} to Marca,
Vehiculo{modelo(modelo)} to Modelo
}
relationship ManyToOne {
Reserva{vehiculo(placa)} to Vehiculo,
Reserva{playa(codigo)} to Playa,
Tarifa{playa(codigo)} to Playa,
Vehiculo{tipo(tipo)} to TipoVehiculo,
Afluencia{playa(codigo)} to Playa
}
relationship OneToMany{
Conductor{vehiculo} to Vehiculo{duenho(nombre) required}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment