package com.atlassian.bitbucket.internal.mirroring.mirror.dao.v0;

import net.java.ao.Accessor;
import net.java.ao.RawEntity;
import net.java.ao.schema.*;

import static com.atlassian.bitbucket.internal.mirroring.mirror.dao.v0.AoConstantsV0.*;

@Table(AoMirroredProjectV0.TABLE)
public interface AoMirroredProjectV0 extends RawEntity<Integer> {

    String TABLE = "MIRRORED_PROJECT";

    @AutoIncrement
    @NotNull
    @PrimaryKey(ID_COLUMN)
    Integer getId();

    @Accessor(UPSTREAM_SETTINGS_COLUMN)
    @Indexed
    @NotNull
    AoUpstreamSettingsV0 getUpstreamSettings();

    @Accessor(EXTERNAL_ID_COLUMN)
    @NotNull
    String getExternalId();
}
