feat(coordinator): add prover rest api (#716)

Co-authored-by: colinlyguo <colinlyguo@scroll.io>
This commit is contained in:
georgehao
2023-08-04 20:48:17 +08:00
committed by GitHub
parent d11de12637
commit fcf34edbfb
64 changed files with 2366 additions and 15500 deletions

View File

@@ -63,7 +63,7 @@ func testResetDB(t *testing.T) {
cur, err := Current(pgDB.DB)
assert.NoError(t, err)
// total number of tables.
assert.Equal(t, 6, int(cur))
assert.Equal(t, 7, int(cur))
}
func testMigrate(t *testing.T) {

View File

@@ -0,0 +1,19 @@
-- +goose Up
-- +goose StatementBegin
create table challenge
(
id BIGSERIAL PRIMARY KEY,
challenge VARCHAR NOT NULL ,
created_at TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP(0) NOT NULL DEFAULT CURRENT_TIMESTAMP,
deleted_at TIMESTAMP(0) DEFAULT NULL,
CONSTRAINT uk_challenge UNIQUE (challenge)
);
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
drop table if exists challenge;
-- +goose StatementEnd