Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package io.pakland.mdas.githubstats.domain.model;

import javax.persistence.*;

@Entity
@Table(name = "historic_queries")
public class HistoricQueries {
@Id
@Column(updatable = false, nullable = false)
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "team_id")
private Team teamId;

@Column(name = "name", nullable = false)
private String name;

@Column(name = "from", nullable = false)
private String from;

@Column(name = "to", nullable = false)
private String to;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package io.pakland.mdas.githubstats.domain.ports;

import io.pakland.mdas.githubstats.domain.model.HistoricQueries;
import org.springframework.data.jpa.repository.JpaRepository;

public interface HistoricQueriesRepository extends JpaRepository<HistoricQueries, Long> {
}