Improvements upon front lead to improvements here
This commit is contained in:
parent
3414b5c334
commit
34ae028698
6 changed files with 395 additions and 169 deletions
|
|
@ -1,4 +1,4 @@
|
|||
from psycopg.sql import SQL, Identifier, Literal, Composed
|
||||
from psycopg.sql import SQL, Identifier
|
||||
from based.columns import (
|
||||
IntegerColumnDefinition,
|
||||
)
|
||||
|
|
@ -12,7 +12,7 @@ class UserRefColumnDefinition(IntegerColumnDefinition):
|
|||
return SQL("{} INTEGER NOT NULL").format(Identifier(self.name))
|
||||
|
||||
def serialize(self):
|
||||
return f"{self.name}:asset"
|
||||
return f"{self.name}:int-user"
|
||||
|
||||
|
||||
class AssetRefColumnDefinition(IntegerColumnDefinition):
|
||||
|
|
@ -23,4 +23,4 @@ class AssetRefColumnDefinition(IntegerColumnDefinition):
|
|||
return SQL("{} INTEGER NOT NULL").format(Identifier(self.name))
|
||||
|
||||
def serialize(self):
|
||||
return f"{self.name}:asset"
|
||||
return f"{self.name}:int-asset"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue