mirror of https://github.com/skygpu/skynet.git
Zoltan's review comments
parent
120d97f478
commit
1e05357a72
|
@ -213,7 +213,7 @@ def status(node_url: str, request_id: int):
|
||||||
|
|
||||||
@skynet.command()
|
@skynet.command()
|
||||||
@click.option(
|
@click.option(
|
||||||
'--account', '-a', default='telegram1')
|
'--account', '-a', default='telegram')
|
||||||
@click.option(
|
@click.option(
|
||||||
'--permission', '-p', default='active')
|
'--permission', '-p', default='active')
|
||||||
@click.option(
|
@click.option(
|
||||||
|
@ -244,7 +244,7 @@ def dequeue(
|
||||||
|
|
||||||
@skynet.command()
|
@skynet.command()
|
||||||
@click.option(
|
@click.option(
|
||||||
'--account', '-a', default='telegram1')
|
'--account', '-a', default='telos.gpu')
|
||||||
@click.option(
|
@click.option(
|
||||||
'--permission', '-p', default='active')
|
'--permission', '-p', default='active')
|
||||||
@click.option(
|
@click.option(
|
||||||
|
@ -278,7 +278,7 @@ def config(
|
||||||
|
|
||||||
@skynet.command()
|
@skynet.command()
|
||||||
@click.option(
|
@click.option(
|
||||||
'--account', '-a', default='telegram1')
|
'--account', '-a', default='telegram')
|
||||||
@click.option(
|
@click.option(
|
||||||
'--permission', '-p', default='active')
|
'--permission', '-p', default='active')
|
||||||
@click.option(
|
@click.option(
|
||||||
|
|
|
@ -42,22 +42,22 @@ CREATE TABLE IF NOT EXISTS skynet.user_config(
|
||||||
seed NUMERIC,
|
seed NUMERIC,
|
||||||
guidance DECIMAL NOT NULL,
|
guidance DECIMAL NOT NULL,
|
||||||
strength DECIMAL NOT NULL,
|
strength DECIMAL NOT NULL,
|
||||||
upscaler VARCHAR(128)
|
upscaler VARCHAR(128),
|
||||||
|
CONSTRAINT fk_config
|
||||||
|
FOREIGN KEY(id)
|
||||||
|
REFERENCES skynet.user(id)
|
||||||
);
|
);
|
||||||
ALTER TABLE skynet.user_config
|
|
||||||
ADD FOREIGN KEY(id)
|
|
||||||
REFERENCES skynet.user(id);
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS skynet.user_requests(
|
CREATE TABLE IF NOT EXISTS skynet.user_requests(
|
||||||
id BIGSERIAL NOT NULL,
|
id BIGSERIAL NOT NULL,
|
||||||
user_id BIGSERIAL NOT NULL,
|
user_id BIGSERIAL NOT NULL,
|
||||||
sent TIMESTAMP NOT NULL,
|
sent TIMESTAMP NOT NULL,
|
||||||
status TEXT NOT NULL,
|
status TEXT NOT NULL,
|
||||||
status_msg BIGSERIAL PRIMARY KEY NOT NULL
|
status_msg BIGSERIAL PRIMARY KEY NOT NULL,
|
||||||
|
CONSTRAINT fk_user_req
|
||||||
|
FOREIGN KEY(user_id)
|
||||||
|
REFERENCES skynet.user(id)
|
||||||
);
|
);
|
||||||
ALTER TABLE skynet.user_requests
|
|
||||||
ADD FOREIGN KEY(user_id)
|
|
||||||
REFERENCES skynet.user(id);
|
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue