mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-02-20 22:11:01 +08:00
feat: track contributor lines
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
package com.openisle.model;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
@Entity
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
@Table(name = "contributor_configs")
|
||||
public class ContributorConfig {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Long id;
|
||||
|
||||
@Column(nullable = false, unique = true)
|
||||
private String userIname;
|
||||
|
||||
@Column(nullable = false, unique = true)
|
||||
private String githubId;
|
||||
|
||||
@Column(nullable = false)
|
||||
private long contributionLines = 0;
|
||||
}
|
||||
|
||||
@@ -3,5 +3,6 @@ package com.openisle.model;
|
||||
public enum MedalType {
|
||||
COMMENT,
|
||||
POST,
|
||||
CONTRIBUTOR,
|
||||
SEED
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user