feat: track contributor lines

This commit is contained in:
Tim
2025-08-10 01:29:41 +08:00
parent 68c7b12cb0
commit 2dfbf0d904
7 changed files with 148 additions and 0 deletions

View File

@@ -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;
}

View File

@@ -3,5 +3,6 @@ package com.openisle.model;
public enum MedalType {
COMMENT,
POST,
CONTRIBUTOR,
SEED
}